GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — simple/src/editor.html at master · Jack2code/simple Expand file tree/ Copy patheditor.htmlMore file actions 85 lines (84 loc) · 2.86 KB / Copy patheditor.htmlFile metadata and controls85 lines (84 loc) · 2.86 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 <!doctype html> <html> <head> <meta charset=utf-8> <title>simple editor</title> <link rel="stylesheet" type="text/css" href="template/css/entry.css"> <link rel="stylesheet" type="text/css" href="template/css/prism.css"> <style> #md { width: 50%; height: 100%; float: left; display: block; margin: 0; border: 0; resize: none; padding: 16px; border-right: 1px solid #d9d9d9; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } #html { width: 50%; height: 100%; float: right; display: block; margin: 0; background-color: #fcfaf2; overflow-y: auto; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html, body, .main { height: 100%; } </style> </head> <body> <div class="main"> <textarea id="md"> #Hello World! ##test ###test2 $x^2=1$ [Google](http://google.com) ~~~~{python} print 'hello world' ~~~~ test `test`</textarea> <div id="html" class="entry"> </div> </div> <script src="lib/jquery.js"></script> <script src="lib/showdown.js"></script> <script src="template/js/prism.js"></script> <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ["\\(","\\)"]], processEscapes: true}}); </script> <script> function reescape(data) { return data.replace(/>/g, ">").replace(/</g, "<"); } function mdupdate() { var converter = new Showdown.converter(); var tmp = $("#md").val(); tmp = tmp.replace(/~~~~\{(.*)\}\n([\s\S]*?)~~~~\n/mg, function(a1, a2, a3) {return "<pre><code class=\"language-"+a2+"\">"+reescape(a3)+"</code></pre>";}); tmp = tmp.replace(/~~~~\n([\s\S]*?)~~~~\n/mg, function(a1, a2) {return "<pre><code>"+reescape(a2)+"</code></pre>"}); tmp = converter.makeHtml(tmp); $("#html").html(tmp); Prism.highlightAll(); MathJax.Hub.Queue(["Typeset", MathJax.Hub, "html"]); } $(document).ready(function() { $("#md").on("keyup", function() { mdupdate(); }); mdupdate(); }); </script> </body> </html> |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |