We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e9fbff commit afb2223Copy full SHA for afb2223
2 files changed
buildme.js
@@ -5,7 +5,7 @@
5
function buildit() {
6
var src = $source.val();
7
src = btoa(src);
8
- $showmeurl.val("http://getify.github.io/showme.html#data:text/html;charset=utf-8;base64," + src);
+ $showmeurl.val("http://getify.github.io/showme.html?" + encodeURIComponent("data:text/html;charset=utf-8;base64," + src));
9
}
10
11
var $source, $showmeurl;
showme.js
@@ -2,8 +2,8 @@
2
3
(function(global){
4
var str;
- if (document.location.hash) {
- str = document.location.hash.replace(/^#/,"");
+ 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);
0 commit comments