Q can be image in http
parent
aacc5d2fc6
commit
0fd0981a39
|
|
@ -17,6 +17,7 @@
|
|||
<body>
|
||||
<!--{{USER}}-->
|
||||
<form id="flash" action="">
|
||||
<h1 name="status"></h1>
|
||||
<input type="text" name="idq" readonly=true value="" style="display: none;">
|
||||
<div name="question"></div>
|
||||
<div name="clues"></div>
|
||||
|
|
@ -92,9 +93,15 @@
|
|||
todo = ["", {Q: "ALL DONE"}]
|
||||
}
|
||||
|
||||
form.children.status.innerHTML = knowledgebase.length.toString()
|
||||
|
||||
form.children.idq.value = todo[0]
|
||||
|
||||
form.children.question.innerHTML = `<h3>${todo[1].Q}</h3>`
|
||||
if (todo[1].Q.startsWith("img:")) {
|
||||
form.children.question.innerHTML = `<img src="static/${todo[1].Q.slice(4, 1000)}"/>`
|
||||
} else {
|
||||
form.children.question.innerHTML = `<h3>${todo[1].Q}</h3>`
|
||||
}
|
||||
form.children.question.value = todo[1].Q
|
||||
|
||||
let clues = ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue