//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)
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)
})
}