aboutsummaryrefslogtreecommitdiff
path: root/cs2-simple-website/about
diff options
context:
space:
mode:
authors1n <[email protected]>2020-01-28 14:46:42 -0800
committerGitHub <[email protected]>2020-01-28 14:46:42 -0800
commit12565cca2e43049882691ab6130786fa86e4a9e1 (patch)
tree510c1c000ba322e9f16e09e3f5fa37db0e8a1e94 /cs2-simple-website/about
parentInitial commit (diff)
downloadcs2-12565cca2e43049882691ab6130786fa86e4a9e1.tar.xz
cs2-12565cca2e43049882691ab6130786fa86e4a9e1.zip
Add files via upload
Diffstat (limited to 'cs2-simple-website/about')
-rw-r--r--cs2-simple-website/about/index.html26
-rw-r--r--cs2-simple-website/about/js/main.js14
2 files changed, 40 insertions, 0 deletions
diff --git a/cs2-simple-website/about/index.html b/cs2-simple-website/about/index.html
new file mode 100644
index 0000000..bdb7ee7
--- /dev/null
+++ b/cs2-simple-website/about/index.html
@@ -0,0 +1,26 @@
+<!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 href="https://www.favicon.cc/favicon/130/914/favicon.png" rel="icon" type="image/x-icon" />
+ <link rel="stylesheet" href="/cs2-simple-website/home/css/main.css">
+</head>
+<body>
+ <script src="/cs2-simple-website/about/js/main.js"></script>
+
+ <div class="nav">
+ <nav class="bar">
+ <a href="/cs2-simple-website/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>
diff --git a/cs2-simple-website/about/js/main.js b/cs2-simple-website/about/js/main.js
new file mode 100644
index 0000000..8800346
--- /dev/null
+++ b/cs2-simple-website/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