Skip to content

Instantly share code, notes, and snippets.

@Rheola
Created December 14, 2018 05:52
Show Gist options
  • Save Rheola/7083f30406a1937f34c118c27652ed0c to your computer and use it in GitHub Desktop.
Save Rheola/7083f30406a1937f34c118c27652ed0c to your computer and use it in GitHub Desktop.
Фрейм
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>iFrame message passing test</title>
<meta name="description" content="iFrame message passing test">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<h2>Automagically resizing iFrame</h2>
<div style="margin:20px;">
<iframe scrolling="no" id="frame" allowfullscreen="" frameborder="0" width="100%" align="left"
src="https://dev.uc-itcom.ru/app/index.php/gateway/ofd/form?theme=uc_itcom">
Ваш браузер не поддерживает фреймы!
</iframe>
</div>
<!-- MDN PolyFils for IE8 (This is not normally needed if you use the jQuery version) -->
<!--[if lte IE 8]>
<script type="text/javascript" src="../js/ie8.polyfils.min.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="../js/iframeResizer.min.js"></script>
<script type="text/javascript">
$(function () {
$('#frame').iFrameResize({heightCalculationMethod: 'lowestElement'});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment