Created
October 17, 2012 23:49
-
-
Save benolee/3909057 to your computer and use it in GitHub Desktop.
dummy
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
| .out { | |
| color: red; | |
| font-family: 'Inconsolata', sans-serif; | |
| } |
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 lang=en> | |
| <head> | |
| <meta charset=UTF-8> | |
| <meta name=viewport content="width=device-width, minimum-scale=1.0"> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
| <script src="/gist/3909057/dummy.js"></script> | |
| <link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'> | |
| </head> | |
| <body> | |
| <style></style> | |
| <div class="out"></div> | |
| </body> | |
| </html> |
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
| (function() { | |
| var root = this; | |
| var _escape = function(str) { | |
| return $('<div/>').text(str).html(); | |
| }; | |
| var logger = root.logger = function(str) { | |
| $('.out').append(_escape(str)); | |
| }; | |
| }).call(this); | |
| $(document).ready(function() { | |
| $.ajax({ | |
| type: "GET", | |
| url: "/gist/3909057/dummy.css", | |
| dataType: "text", | |
| success: function(data) { | |
| $('style').html(data); | |
| $('.out').text(data); | |
| } | |
| }); | |
| logger("!!! logger test <b>esc?</b>!!!"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment