summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors1n <[email protected]>2019-11-19 12:38:29 -0800
committerGitHub <[email protected]>2019-11-19 12:38:29 -0800
commit7201b7f1ba9c837c1a66a0bddab5633536a76d59 (patch)
tree8246f29a30efee0dbd44f40dab4a0bd2664d5101
parentmake links have autoplay!!! (diff)
downloads1n.pw-admin-7201b7f1ba9c837c1a66a0bddab5633536a76d59.tar.xz
s1n.pw-admin-7201b7f1ba9c837c1a66a0bddab5633536a76d59.zip
add scrolling title thing
-rw-r--r--js/app.js16
1 files changed, 16 insertions, 0 deletions
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() {
<img src="/assets/imgs/clairo2.gif" alt="" width="30px" onclick="deactivateCheats()">
</div>
`;
+
+ // 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() {
<img src="/assets/imgs/clairo2.gif" alt="" width="30px" onclick="activateCheats()">
</div>
`;
+
+ document.title = "s1nical - Landing Page";
}
var TxtRotate = function (el, toRotate, period) {