Sfoglia il codice sorgente

Merge pull request #4487 from Jaskar/master

Playground : Temporary fix old playground link
David Catuhe 7 anni fa
parent
commit
8880cdfc41
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      Playground/js/index.js

+ 8 - 1
Playground/js/index.js

@@ -282,7 +282,14 @@
                                 var query = queryString.replace("?", "");
                                 index = parseInt(query);
                                 if (!isNaN(index)) {
-                                    loadScriptFromIndex(index);
+                                    // Old examples
+                                    //loadScriptFromIndex(index);
+                                    var newPG = "";
+                                    switch(index) {
+                                        case 17 : newPG="#J19GYK#0"; break;
+                                        default: newPG=""; break;
+                                    }
+                                    window.location.href = location.protocol + "//" + location.host + location.pathname + "#" + newPG;
                                 } else if (query.indexOf("=") === -1) {
                                     loadScript("scripts/" + query + ".js", query);
                                 } else {