diff options
| author | s1n <[email protected]> | 2019-09-18 12:47:53 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-18 12:47:53 -0700 |
| commit | 3ef80b56f7d7b37b57bc9c2ee1e31543670a8c69 (patch) | |
| tree | 055de43b9aee812a56c647b3dc34449301441f77 /about | |
| download | cs2-simple-website-3ef80b56f7d7b37b57bc9c2ee1e31543670a8c69.tar.xz cs2-simple-website-3ef80b56f7d7b37b57bc9c2ee1e31543670a8c69.zip | |
upload main filesog
Diffstat (limited to 'about')
| -rw-r--r-- | about/index.html | 25 | ||||
| -rw-r--r-- | about/js/main.js | 14 |
2 files changed, 39 insertions, 0 deletions
diff --git a/about/index.html b/about/index.html new file mode 100644 index 0000000..6a68024 --- /dev/null +++ b/about/index.html @@ -0,0 +1,25 @@ +<!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>About</title>
+ <link rel="stylesheet" href="/home/css/main.css">
+</head>
+<body>
+ <script src="/about/js/main.js"></script>
+
+ <div class="nav">
+ <nav class="bar">
+ <a href="/home/">Home</a>
+ <a href="#">About</a>
+ <a href="https://s1n.pw/">S1N</a>
+ </nav>
+ </div>
+
+ <center>
+ <p>Proof of concept. Not setup :/</p>
+ </center>
+</body>
+</html>
\ No newline at end of file diff --git a/about/js/main.js b/about/js/main.js new file mode 100644 index 0000000..8800346 --- /dev/null +++ b/about/js/main.js @@ -0,0 +1,14 @@ +var space = " ";
+var speed = "60";
+var pos = 0;
+var msg = "// Abo.ut "; /*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();
+
+// Copyied from my GitHub repo: https://github.com/8cy/scrolling-html-title/blob/master/docs/js/main.js
\ No newline at end of file |