Created
November 26, 2012 17:20
-
-
Save girlcheese/4149475 to your computer and use it in GitHub Desktop.
Asynchronous code injection #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<g:plusone annotation="inline"></g:plusone> | |
<script type="text/javascript"> | |
(function() { | |
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; | |
po.src = 'http://apis.google.com/js/plusone.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); | |
})(); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wufoo-z7w3m7"> | |
Fill out my <a href="http://examples.wufoo.com/forms/z7w3m7">online form</a>. | |
</div> | |
<script type="text/javascript">var z7w3m7;(function(d, t) { | |
var s = d.createElement(t), options = { | |
'userName':'examples', | |
'formHash':'z7w3m7', | |
'autoResize':true, | |
'height':'260', | |
'async':true, | |
'header':'show', | |
'ssl':true}; | |
s.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + 'wufoo.com/scripts/embed/form.js'; | |
s.onload = s.onreadystatechange = function() { | |
var rs = this.readyState; if (rs) if (rs != 'complete') if (rs != 'loaded') return; | |
try { z7w3m7 = new WufooForm();z7w3m7.initialize(options);z7w3m7.display(); } catch (e) {}}; | |
var scr = d.getElementsByTagName(t)[0], par = scr.parentNode; par.insertBefore(s, scr); | |
})(document, 'script');</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment