From f10159d145c23e7fb7babb39551859d5b6822268 Mon Sep 17 00:00:00 2001 From: s1n Date: Tue, 30 Jul 2019 19:47:29 +0200 Subject: re-upload main files --- src/js/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/js/main.js (limited to 'src/js/main.js') diff --git a/src/js/main.js b/src/js/main.js new file mode 100644 index 0000000..f2b20ac --- /dev/null +++ b/src/js/main.js @@ -0,0 +1,12 @@ +var space = " "; +var speed = "60"; +var pos = 0; +var msg = "// s1n.ical "; /*Enter the scrolling title as the msg variable's value.*/ + +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(); \ No newline at end of file -- cgit v1.2.3