Submodule pull

This commit is contained in:
MrFry 2020-03-07 14:26:24 +01:00
commit 2a2eabc97c
4 changed files with 6 additions and 29 deletions

View file

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

View file

@ -78,7 +78,7 @@
<%=scount%> tárgy és <%=qcount%> kérdés
</h2>
</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>
</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 3d1399c13b54b4c881c3c7af95003b0397d36290
Subproject commit 194fc22d06adc664aa1a8a3a02a81edae613f888