forked from getify/getify.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowme.js
More file actions
14 lines (13 loc) · 919 Bytes
/
showme.js
File metadata and controls
14 lines (13 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(function(){var t="undefined"!=typeof window?window:exports,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=function(){try{document.createElement("$")}catch(t){return t}}();t.btoa||(t.btoa=function(t){for(var o,e,a=0,c=r,f="";t.charAt(0|a)||(c="=",a%1);f+=c.charAt(63&o>>8-8*(a%1))){if(e=t.charCodeAt(a+=.75),e>255)throw n;o=o<<8|e}return f}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),1==t.length%4)throw n;for(var o,e,a=0,c=0,f="";e=t.charAt(c++);~e&&(o=a%4?64*o+e:e,a++%4)?f+=String.fromCharCode(255&o>>(6&-2*a)):0)e=r.indexOf(e);return f})})();
(function(global){
var str;
if (document.location.search) {
str = decodeURIComponent(document.location.search.replace(/^\?/,""));
if (str.match(/^data:text\/html.*?base64,/)) {
str = str.replace(/^data:text\/html.*?base64,/,"");
str = atob(str);
$("#showcode code").text(str);
document.write(str);
}
}
})(window);