deputat/iframe-resizer-master/test/jqueryNoConflict.html
2023-04-25 13:25:59 +02:00

50 lines
1.2 KiB
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>QUnit LoadHide</title>
<link rel="stylesheet" href="resources/qunit.css" />
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
<div style="width:600px;">
<iframe
src="resources/frame.content.html"
width="100%"
scrolling="no"
></iframe>
</div>
</div>
<script src="resources/qunit.js"></script>
<script src="resources/jquery.js"></script>
<script>
//var myOwnJquery = jQuery.noConflict(true);
</script>
<script src="../js/iframeResizer.min.js"></script>
<script>
'use strict'
var msgId = '[iFrameSizerTest]:'
asyncTest('init with jQuery.noConflict', function() {
try {
$('iframe').iFrameResize({
//log:true,
bodyBackground: 'wheat',
heightCalculationMethod: 'max',
onInit: function(iframe) {
ok(true, 'Receive init message back from iFrame.')
start()
}
})
} catch (e) {
console.log(e)
ok(false)
start()
}
})
</script>
</body>
</html>