commit 8df3450c8640dce2a0604876804bb853400021c0
parent 1374429ab4c7418a5db59240afbbd0f169a88537
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Wed, 14 Aug 2024 18:53:06 +0200
fix: do not automatically redirect after reload
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/reload.php b/reload.php
@@ -5,11 +5,13 @@
<!DOCTYPE html>
<html>
<head>
- <meta http-equiv="Refresh" content="0; url='/'" />
+ <!--<meta http-equiv="Refresh" content="0; url='/'" />-->
+ <link rel="stylesheet" type="text/css" href="/assets/css/simple.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/assets/css/custom.css"/>
</head>
<body>
- <pre>
- <?php passthru("Rscript ./yt.R"); ?>
- </pre>
+ <h1><a href="#done">Scroll down to check logs and go back</a></h1>
+ <pre><?php passthru("Rscript ./yt.R"); ?></pre>
+ <a id="done" href="/" class="button" style="width:100%;">Done!</a>
</body>
</html>
diff --git a/yt.R b/yt.R
@@ -202,7 +202,7 @@ bottom <- paste0("</body></html>")
# print files -------------------------------------------------------------------
html_output <- file("index.html", open = "wt", encoding = "UTF-8")
-sink(html_output, split = TRUE)
+sink(html_output)
cat(
template, "\n",
top, "\n",