Created
September 27, 2013 17:34
-
-
Save Nek/6732103 to your computer and use it in GitHub Desktop.
Inject github gist after window load event.
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <title> - jsFiddle demo</title> | |
| <script type='text/javascript' src='//code.jquery.com/jquery-2.0.2.js'></script> | |
| <script type='text/javascript' src="//rawgithub.com/krux/postscribe/master/dist/postscribe.min.js"></script> | |
| </head> | |
| <body> | |
| <p>Boring text.</p> | |
| <div id="code">Here be code.</div> | |
| <p>More boring text.</p> | |
| </body> | |
| <script type='text/javascript'> | |
| $(function(){ | |
| postscribe("#code", "<script src='https:\/\/gist.github.com/Nek/6339314.js'><\/script>"); | |
| }) | |
| </script> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment