summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-13 16:48:19 -0700
committers1nical <[email protected]>2019-08-13 16:48:19 -0700
commit6dda54ddc87d0bee2acec67a4fe61f0906a27eb1 (patch)
treed7390380caa24177970ccee989c6bc94fad3a29d
parentfixed dependency issue (diff)
downloads1n.pw-admin-6dda54ddc87d0bee2acec67a4fe61f0906a27eb1.tar.xz
s1n.pw-admin-6dda54ddc87d0bee2acec67a4fe61f0906a27eb1.zip
formatting fix, loader for directory, console log on load
-rw-r--r--directory/css/main.css469
-rw-r--r--directory/games/index.html16
-rw-r--r--directory/games/js/main.js5
-rw-r--r--directory/index.html12
-rw-r--r--directory/js/main.js6
-rw-r--r--index.html2
6 files changed, 505 insertions, 5 deletions
diff --git a/directory/css/main.css b/directory/css/main.css
index 6be4afb..881a7e7 100644
--- a/directory/css/main.css
+++ b/directory/css/main.css
@@ -5,3 +5,472 @@ table {
.title {
text-align: center
}
+
+/* LOADING ANIMATION */
+.loader-wrapper {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ background: #fdfdfd;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-pack: center;
+ -ms-flex-pack: center;
+ justify-content: center;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+}
+
+.loader {
+ width: 100px;
+ height: 100px;
+ display: inline-table;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ position: relative;
+ border-spacing: 0.3em;
+}
+
+.ascii-spinner-1 {
+ opacity: 0;
+ position: absolute;
+ margin-left: 65px;
+ margin-right: auto;
+ left: 0;
+ right: 0;
+ color: #999;
+ animation: loading-1 800ms ease-in infinite;
+ -webkit-animation: loading-1 800ms ease-in infinite;
+ -moz-animation: loading-1 800ms ease-in infinite;
+ -o-animation: loading-1 800ms ease-in infinite;
+}
+
+.ascii-spinner-2 {
+ opacity: 0;
+ position: absolute;
+ margin-left: 65px;
+ margin-right: auto;
+ left: 0;
+ right: 0;
+ color: #999;
+ -webkit-animation: loading-2 800ms ease-in infinite;
+ -moz-animation: loading-2 800ms ease-in infinite;
+ -o-animation: loading-2 800ms ease-in infinite;
+ animation: loading-2 800ms ease-in infinite;
+}
+
+.ascii-spinner-3 {
+ opacity: 0;
+ position: absolute;
+ margin-left: 65px;
+ margin-right: auto;
+ left: 0;
+ right: 0;
+ color: #999;
+ -webkit-animation: loading-3 800ms ease-in infinite;
+ -moz-animation: loading-3 800ms ease-in infinite;
+ -o-animation: loading-3 800ms ease-in infinite;
+ animation: loading-3 800ms ease-in infinite;
+}
+
+.ascii-spinner-4 {
+ opacity: 0;
+ position: absolute;
+ margin-left: 65px;
+ margin-right: auto;
+ left: 0;
+ right: 0;
+ color: #999;
+ -webkit-animation: loading-4 800ms ease-in infinite;
+ -moz-animation: loading-4 800ms ease-in infinite;
+ -o-animation: loading-4 800ms ease-in infinite;
+ animation: loading-4 800ms ease-in infinite;
+}
+
+@-webkit-keyframes loading-1 {
+ 0% {
+ opacity: 0;
+ }
+
+ 1% {
+ opacity: 1;
+ }
+
+ 24% {
+ opacity: 1;
+ }
+
+ 25% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-moz-keyframes loading-1 {
+ 0% {
+ opacity: 0;
+ }
+
+ 1% {
+ opacity: 1;
+ }
+
+ 24% {
+ opacity: 1;
+ }
+
+ 25% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-o-keyframes loading-1 {
+ 0% {
+ opacity: 0;
+ }
+
+ 1% {
+ opacity: 1;
+ }
+
+ 24% {
+ opacity: 1;
+ }
+
+ 25% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@keyframes loading-1 {
+ 0% {
+ opacity: 0;
+ }
+
+ 1% {
+ opacity: 1;
+ }
+
+ 24% {
+ opacity: 1;
+ }
+
+ 25% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-webkit-keyframes loading-2 {
+ 0% {
+ opacity: 0;
+ }
+
+ 24% {
+ opacity: 0;
+ }
+
+ 25% {
+ opacity: 1;
+ }
+
+ 49% {
+ opacity: 1;
+ }
+
+ 50% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-moz-keyframes loading-2 {
+ 0% {
+ opacity: 0;
+ }
+
+ 24% {
+ opacity: 0;
+ }
+
+ 25% {
+ opacity: 1;
+ }
+
+ 49% {
+ opacity: 1;
+ }
+
+ 50% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-o-keyframes loading-2 {
+ 0% {
+ opacity: 0;
+ }
+
+ 24% {
+ opacity: 0;
+ }
+
+ 25% {
+ opacity: 1;
+ }
+
+ 49% {
+ opacity: 1;
+ }
+
+ 50% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@keyframes loading-2 {
+ 0% {
+ opacity: 0;
+ }
+
+ 24% {
+ opacity: 0;
+ }
+
+ 25% {
+ opacity: 1;
+ }
+
+ 49% {
+ opacity: 1;
+ }
+
+ 50% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-webkit-keyframes loading-3 {
+ 0% {
+ opacity: 0;
+ }
+
+ 49% {
+ opacity: 0;
+ }
+
+ 50% {
+ opacity: 1;
+ }
+
+ 74% {
+ opacity: 1;
+ }
+
+ 75% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-moz-keyframes loading-3 {
+ 0% {
+ opacity: 0;
+ }
+
+ 49% {
+ opacity: 0;
+ }
+
+ 50% {
+ opacity: 1;
+ }
+
+ 74% {
+ opacity: 1;
+ }
+
+ 75% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-o-keyframes loading-3 {
+ 0% {
+ opacity: 0;
+ }
+
+ 49% {
+ opacity: 0;
+ }
+
+ 50% {
+ opacity: 1;
+ }
+
+ 74% {
+ opacity: 1;
+ }
+
+ 75% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@keyframes loading-3 {
+ 0% {
+ opacity: 0;
+ }
+
+ 49% {
+ opacity: 0;
+ }
+
+ 50% {
+ opacity: 1;
+ }
+
+ 74% {
+ opacity: 1;
+ }
+
+ 75% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-webkit-keyframes loading-4 {
+ 0% {
+ opacity: 0;
+ }
+
+ 74% {
+ opacity: 0;
+ }
+
+ 75% {
+ opacity: 1;
+ }
+
+ 99% {
+ opacity: 1;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-moz-keyframes loading-4 {
+ 0% {
+ opacity: 0;
+ }
+
+ 74% {
+ opacity: 0;
+ }
+
+ 75% {
+ opacity: 1;
+ }
+
+ 99% {
+ opacity: 1;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@-o-keyframes loading-4 {
+ 0% {
+ opacity: 0;
+ }
+
+ 74% {
+ opacity: 0;
+ }
+
+ 75% {
+ opacity: 1;
+ }
+
+ 99% {
+ opacity: 1;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
+
+@keyframes loading-4 {
+ 0% {
+ opacity: 0;
+ }
+
+ 74% {
+ opacity: 0;
+ }
+
+ 75% {
+ opacity: 1;
+ }
+
+ 99% {
+ opacity: 1;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
diff --git a/directory/games/index.html b/directory/games/index.html
index 3b0b05c..8168bce 100644
--- a/directory/games/index.html
+++ b/directory/games/index.html
@@ -5,12 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>s1nical - /Games</title>
+ <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="/directory/css/main.css">
+ <script src="/directory/games/js/main.js"></script>
</head>
<body>
- <script>
- console.log("You actually checked it out, enjoy!")
- </script>
<div class="container">
@@ -76,5 +75,16 @@
<td align="right">12.9K</td>
</tr>
</div>
+
+ <!-- Loading Animation -->
+ <div class="loader-wrapper">
+ <div class="loader">
+ <span class="">Label:</span>
+ <span class="ascii-spinner-1">|</span>
+ <span class="ascii-spinner-2">/</span>
+ <span class="ascii-spinner-3">--</span>
+ <span class="ascii-spinner-4">\</span>
+ </div>
+ </div>
</body>
</html> \ No newline at end of file
diff --git a/directory/games/js/main.js b/directory/games/js/main.js
new file mode 100644
index 0000000..8469316
--- /dev/null
+++ b/directory/games/js/main.js
@@ -0,0 +1,5 @@
+$(document).ready(function () {
+ $('.loader-wrapper').fadeOut("slow"); /*FadeOut after page loaded*/
+
+ console.log("You actually checked it out, enjoy!");
+}); \ No newline at end of file
diff --git a/directory/index.html b/directory/index.html
index f0c2633..d3895e9 100644
--- a/directory/index.html
+++ b/directory/index.html
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>s1nical - Directory</title>
+ <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="/directory/css/main.css">
<script src="/directory/js/main.js"></script>
</head>
@@ -43,5 +44,16 @@
<td align="right">5.9K</td>
</tr>
</div>
+
+ <!-- Loading Animation -->
+ <div class="loader-wrapper">
+ <div class="loader">
+ <span class="">Label:</span>
+ <span class="ascii-spinner-1">|</span>
+ <span class="ascii-spinner-2">/</span>
+ <span class="ascii-spinner-3">--</span>
+ <span class="ascii-spinner-4">\</span>
+ </div>
+ </div>
</body>
</html> \ No newline at end of file
diff --git a/directory/js/main.js b/directory/js/main.js
index bccf254..2036068 100644
--- a/directory/js/main.js
+++ b/directory/js/main.js
@@ -1 +1,5 @@
-console.log("Thanks for using my directory, check out the games!"); \ No newline at end of file
+$(document).ready(function () {
+ $('.loader-wrapper').fadeOut("slow"); /*FadeOut after page loaded*/
+
+ console.log("Thanks for using my directory, check out the games!");
+}); \ No newline at end of file
diff --git a/index.html b/index.html
index 4f31694..d891524 100644
--- a/index.html
+++ b/index.html
@@ -90,7 +90,7 @@
</div>
</main>
- <!--Loading Animation-->
+ <!-- Loading Animation -->
<div class="loader-wrapper">
<div class="loader">
<row>