We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dcc8ba commit 5490c13Copy full SHA for 5490c13
2 files changed
showme.html
@@ -3,8 +3,10 @@
3
<head>
4
<title>Show Me</title>
5
<script src="jquery.js"></script>
6
+<style>#showcode{background-color:#eee;border:1px solid #000;font-weight:bold;font-size:16px;}</style>
7
</head>
8
<body>
9
+<pre id="showcode"></pre>
10
<script src="showme.js"></script>
11
</body>
12
</html>
showme.js
@@ -6,7 +6,9 @@
str = document.location.hash.replace(/^#/,"");
if (str.match(/^data:text\/html.*?base64,/)) {
str = str.replace(/^data:text\/html.*?base64,/,"");
- document.write(atob(str));
+ str = atob(str);
+ $("#showcode").text(str);
+ document.write(str);
}
13
14
})(window);
0 commit comments