From: Elijah Cohen Date: Fri, 29 Jan 2021 03:14:30 +0000 (-0600) Subject: done? X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;h=8ed3b4531e2b66c0daafde35c1ff2ce70864a223;p=comics done? --- diff --git a/comics.js b/comics.js index 9aa6340..22800e9 100644 --- a/comics.js +++ b/comics.js @@ -6,7 +6,7 @@ function onload() { //imgtag.src = "https://qwantz.com/comics/comic2-3900.png" - drawcomic("https://qwantz.com/comics/comic2-675.png") + //drawcomic("https://qwantz.com/comics/comic2-675.png") num = window.location.search.substring(window.location.search.indexOf('=')+1) @@ -17,12 +17,13 @@ function getimageurl(number) { number = (number == "") ? 0 : number // takes the comic no (from the ?comic=<>) and gets the url we want // returns a promise? - console.log(number) + //console.log(number) //fetch("https://qwantz.com/index.php?comic=" + number, {mode: "cors"}) fetch("https://comics.eli173.com/id/" + number) .then(req => req.text()) .then(text => { - console.log(text) + //console.log(text) + drawcomic("https://qwantz.com/" + text) }) }