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
function get(url) { | |
return new Promise((resolve, reject) => { | |
try { | |
var startswith = false | |
var request = new XMLHttpRequest() | |
request.open('GET', url, true) | |
request.onload = function() { | |
if (this.status >= 200 && this.status < 400) { | |
var data = this.response | |
var html = document.createElement('html') |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Punch Stream II</title> | |
<script src="http://wrasse.pw/~joel/tools/html2canvas.min.js"></script> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> |
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
<!-- Code injected by live-server --> | |
<script type="text/javascript"> | |
// <![CDATA[ <-- For SVG support | |
if ('WebSocket' in window) { | |
(function() { | |
function refreshCSS() { | |
var sheets = [].slice.call(document.getElementsByTagName("link")); | |
var head = document.getElementsByTagName("head")[0]; | |
let target = sheets.length | |
for (var i = 0; i < target; ++i) { |
NewerOlder