aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors1n <[email protected]>2019-07-30 19:48:55 +0200
committerGitHub <[email protected]>2019-07-30 19:48:55 +0200
commit00338094ac508a4c9ce97e4eb74026ed1f461393 (patch)
tree4bb66c9e22684ea1e44ee6f6aaf24efc89e9dce9
parentDelete main.js (diff)
downloadscrolling-html-title-00338094ac508a4c9ce97e4eb74026ed1f461393.tar.xz
scrolling-html-title-00338094ac508a4c9ce97e4eb74026ed1f461393.zip
re-re-upload main files
-rw-r--r--docs/index.html30
-rw-r--r--docs/js/main.js12
2 files changed, 42 insertions, 0 deletions
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000..22071bd
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>s1nical - Scrolling Title</title>
+ <!--<script language="JavaScript">
+ 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();
+ </script>-->
+ <script src="js/main.js"></script>
+ </head>
+
+ <body>
+
+ </body>
+
+</html> \ No newline at end of file
diff --git a/docs/js/main.js b/docs/js/main.js
new file mode 100644
index 0000000..f2b20ac
--- /dev/null
+++ b/docs/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