-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6aa8a42
commit e1b158e
Showing
3 changed files
with
79 additions
and
27 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
|
||
<script> | ||
let loaded = document.cookie; | ||
let code = document.cookie; | ||
if (loaded == 1) { | ||
document.write(code) | ||
document.cookie = "loaded=0" | ||
}else { | ||
fetch('https://trapjawws.github.io/funnyemulatorjs/index.html') | ||
.then(function (response) { | ||
switch (response.status) { | ||
// status "OK" | ||
case 200: | ||
return response.text(); | ||
// status "Not Found" | ||
case 404: | ||
throw response; | ||
} | ||
}) | ||
.then(function (template) { | ||
document.cookie = "loaded=1; code=" + template; | ||
location.reload(); | ||
}) | ||
.catch(function (response) { | ||
// "Not Found" | ||
alert(response.statusText); | ||
}); | ||
fetch('https://trapjawws.github.io/funnyemulatorjs/index.html') | ||
.then(function (response) { | ||
switch (response.status) { | ||
// status "OK" | ||
case 200: | ||
return response.text(); | ||
// status "Not Found" | ||
case 404: | ||
throw response; | ||
} | ||
}) | ||
.then(function (template) { | ||
|
||
} | ||
window.location.replace("https://clever.com/in/stratfordschools"); | ||
|
||
var W = window.open(); // create a new window | ||
|
||
W.document.open(); // create a write-stream to this window | ||
|
||
W.document.write(template); // add some HTML | ||
|
||
W.document.close(); // close it off | ||
|
||
}) | ||
.catch(function (response) { | ||
// "Not Found" | ||
alert(response.statusText); | ||
}); | ||
</script> |