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/index.html | 30 ++++++++++++++++++++++++++++++ src/js/main.js | 12 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/index.html create mode 100644 src/js/main.js diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..22071bd --- /dev/null +++ b/src/index.html @@ -0,0 +1,30 @@ + + + + + + + + s1nical - Scrolling Title + + + + + + + + + \ No newline at end of file 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