Allqr downloadable txt

This commit is contained in:
MrFry 2020-03-07 14:19:03 +01:00
parent 81e524978c
commit 75ba9905b4
5 changed files with 7 additions and 30 deletions

View file

@ -179,10 +179,10 @@ app.get('/menuClick', function (req, res) {
}) })
// all questions readable // all questions readable
app.get('/allqr', function (req, res) { app.get('/allqr.txt', function (req, res) {
res.render('allqr', { res.set('Content-Type', 'text/plain')
d: data.toString().split('\n') res.send(data.toString())
}) res.end()
logger.LogReq(req) logger.LogReq(req)
}) })

View file

@ -78,7 +78,7 @@
<%=scount%> tárgy és <%=qcount%> kérdés <%=scount%> tárgy és <%=qcount%> kérdés
</h2> </h2>
</p> </p>
<a href="<%=siteurl%>/allqr"> Letöltés </a> <a href="<%=siteurl%>/allqr.txt"> Letöltés </a> (ctrl-s ha nem tölti le file-ba)
<button class="openall" onclick="openall()"> Összes kinyitása </button> <button class="openall" onclick="openall()"> Összes kinyitása </button>
</center> </center>

View file

@ -1,23 +0,0 @@
<html>
<body bgcolor="#212127">
<head>
<title>All questions</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.8" />
<style>
body {
font: normal 14px Verdana;
color: #999999;
}
</style>
</head>
<% for (var i = 0; i < d.length; i++) { %>
<%= d[i] %>
</br>
<% } %>
</body>
</html>

@ -1 +1 @@
Subproject commit 1e8154802cf4c17a6c8e71a577c6fa9f4957c2b1 Subproject commit fe74436ab119a31fdb35f7a3bbae50a572b0fb21

@ -1 +1 @@
Subproject commit 40f187881337f2c3f3fe50a3799d7f46d4c6361c Subproject commit e84ff4451251f3e8403ebb8b31ebd13d7830e44a