Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kc0bfv/ticky_tacky_dark.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/head.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a018bc7..ab4b3e5 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -55,9 +55,9 @@
<script>
function randomImg(dest_elem, images) {
- let img_ind = Math.ceil(Math.random() * images.length) - 1;
- let sel_url = images[img_ind]
- let img = new Image();
+ const img_ind = Math.ceil(Math.random() * images.length) - 1;
+ const sel_url = images[img_ind]
+ const img = new Image();
img.onload = function() {
function set_img() {
const element = document.getElementById(dest_elem);