From 7201b7f1ba9c837c1a66a0bddab5633536a76d59 Mon Sep 17 00:00:00 2001 From: s1n Date: Tue, 19 Nov 2019 12:38:29 -0800 Subject: add scrolling title thing --- js/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/js/app.js b/js/app.js index 5932202..b088822 100644 --- a/js/app.js +++ b/js/app.js @@ -137,6 +137,20 @@ function activateCheats() { `; + + // SCROLLING TITLE + var space = " "; + var speed = "60"; + var pos = 0; + var msg = "// s1n.ical // Landing Page "; + + function Scroll() { + document.title = msg.substring(pos, msg.length) + space + msg.substring(0, pos); + pos++; + if (pos > msg.length) pos = 0; + window.setTimeout("Scroll()", speed); + } + Scroll(); } function deactivateCheats() { @@ -159,6 +173,8 @@ function deactivateCheats() { `; + + document.title = "s1nical - Landing Page"; } var TxtRotate = function (el, toRotate, period) { -- cgit v1.2.3