Difference between revisions of "MediaWiki:Liquiflow.js"
From QWiki
m |
m |
||
Line 5: | Line 5: | ||
var myElement = document.getElementById('gfm'); | var myElement = document.getElementById('gfm'); | ||
myElement.innerHTML = "<iframe class='gfm-media-widget' image='1' coinfo='1' width='100%' height='100%' frameborder='1' id='quakeworld-duel-2018'></iframe><script src='http://funds.gofundme.com/js/5.0/media-widget.js'></script>"; | myElement.innerHTML = "<iframe class='gfm-media-widget' image='1' coinfo='1' width='100%' height='100%' frameborder='1' id='quakeworld-duel-2018'></iframe><script src='http://funds.gofundme.com/js/5.0/media-widget.js'></script>"; | ||
− | + | $( document ).ready(function() { | |
+ | mw.loader.load( 'http://funds.gofundme.com/js/5.0/media-widget.js&action=raw&ctype=text/javascript' ); | ||
+ | }); | ||
}()); | }()); |
Revision as of 21:44, 18 September 2018
/* Any JavaScript here will be loaded for users using the LiquiFlow skin */ $(function () { var myElement = document.getElementById('gfm'); myElement.innerHTML = "<iframe class='gfm-media-widget' image='1' coinfo='1' width='100%' height='100%' frameborder='1' id='quakeworld-duel-2018'></iframe><script src='http://funds.gofundme.com/js/5.0/media-widget.js'></script>"; $( document ).ready(function() { mw.loader.load( 'http://funds.gofundme.com/js/5.0/media-widget.js&action=raw&ctype=text/javascript' ); }); }());