aboutsummaryrefslogtreecommitdiff
path: root/src/js/main.js
diff options
context:
space:
mode:
authors1n <[email protected]>2019-07-30 19:47:29 +0200
committerGitHub <[email protected]>2019-07-30 19:47:29 +0200
commitf10159d145c23e7fb7babb39551859d5b6822268 (patch)
treeca7d4c95b8393a2ae6e73fc7ea2596cceb833570 /src/js/main.js
parentDelete index.html (diff)
downloadscrolling-html-title-f10159d145c23e7fb7babb39551859d5b6822268.tar.xz
scrolling-html-title-f10159d145c23e7fb7babb39551859d5b6822268.zip
re-upload main files
Diffstat (limited to 'src/js/main.js')
-rw-r--r--src/js/main.js12
1 files changed, 12 insertions, 0 deletions
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