diff options
| author | s1n <[email protected]> | 2019-11-19 12:38:29 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-19 12:38:29 -0800 |
| commit | 7201b7f1ba9c837c1a66a0bddab5633536a76d59 (patch) | |
| tree | 8246f29a30efee0dbd44f40dab4a0bd2664d5101 | |
| parent | make links have autoplay!!! (diff) | |
| download | s1n.pw-admin-7201b7f1ba9c837c1a66a0bddab5633536a76d59.tar.xz s1n.pw-admin-7201b7f1ba9c837c1a66a0bddab5633536a76d59.zip | |
add scrolling title thing
| -rw-r--r-- | js/app.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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) {
|