make it auto update and look cool

stable
Marcus 2021-02-21 23:15:54 -05:00
parent 59156e8226
commit 9d4697d8d6
1 changed files with 15 additions and 0 deletions

View File

@ -120,10 +120,25 @@ app.get('/logs/:time', (req, res) => {
tr { tr {
vertical-align: top; vertical-align: top;
} }
html {
background: #0E1419;
color: #F8F8F2;
}
</style> </style>
<pre> <pre>
${docs.map(logItem => logItem.message).join('').replace(/\u001B\[.*?[A-Za-z]/g, '')} ${docs.map(logItem => logItem.message).join('').replace(/\u001B\[.*?[A-Za-z]/g, '')}
</pre> </pre>
<br><br><br><br><br><br>
<script>
requestAnimationFrame(_ => {
requestAnimationFrame(_ => {
window.scrollTo(0,document.body.scrollHeight);
});
});
setTimeout(_ => {
location.reload();
}, 2000);
</script>
</body> </body>
</html> </html>
`); `);