diff options
| author | s1nical <[email protected]> | 2019-08-11 01:15:32 -0700 |
|---|---|---|
| committer | s1nical <[email protected]> | 2019-08-11 01:15:32 -0700 |
| commit | 3275bc90c995568b7be72c10a2795b808ac6c92b (patch) | |
| tree | baa779da650e2063b99f251cee8680ab2b441132 | |
| parent | fixed favicon issue (diff) | |
| download | s1n.pw-admin-3275bc90c995568b7be72c10a2795b808ac6c92b.tar.xz s1n.pw-admin-3275bc90c995568b7be72c10a2795b808ac6c92b.zip | |
replace "./" with absolute paths, added mobile redirects, added path reference
| -rw-r--r-- | 404/alternate/index.html | 2 | ||||
| -rw-r--r-- | 404/js/main.js | 2 | ||||
| -rw-r--r-- | cars/index.html | 10 | ||||
| -rw-r--r-- | cars/js/main.js | 2 | ||||
| -rw-r--r-- | dino/index.html | 6 | ||||
| -rw-r--r-- | doge/index.html | 4 | ||||
| -rw-r--r-- | index.html | 22 | ||||
| -rw-r--r-- | js/app.js | 2 | ||||
| -rw-r--r-- | konami/index.html | 8 | ||||
| -rw-r--r-- | konami/js/main.js | 5 | ||||
| -rw-r--r-- | mobile/index.html | 8 | ||||
| -rw-r--r-- | mobile/js/app.js | 2 | ||||
| -rw-r--r-- | resources/paths.txt | 6 |
13 files changed, 42 insertions, 37 deletions
diff --git a/404/alternate/index.html b/404/alternate/index.html index 24325d7..a1435ed 100644 --- a/404/alternate/index.html +++ b/404/alternate/index.html @@ -5,7 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>s1nical - Hidden 404</title> - <link rel="stylesheet" href="./css/main.css"> + <link rel="stylesheet" href="/404/css/main.css"> </head> <body> <div class="flexbox"> diff --git a/404/js/main.js b/404/js/main.js index 417011a..2f18f0d 100644 --- a/404/js/main.js +++ b/404/js/main.js @@ -7,5 +7,5 @@ $(document).mousemove(function (event) { // CHECKS IF USER IS ON MOBILE
if (screen.width <= 480) {
- location.href = './404/alternate';
+ location.href = '/404/alternate';
}
\ No newline at end of file diff --git a/cars/index.html b/cars/index.html index 3a3070a..793f559 100644 --- a/cars/index.html +++ b/cars/index.html @@ -7,16 +7,16 @@ <script src="./cars_files/css_reload-5619dc0905a68b2e6298901de54f73cefe4e079f65a75406858d92924b4938bf.js.download"></script>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<meta name="robots" content="noindex">
- <link rel="stylesheet" href="css/main.css">
+ <link rel="stylesheet" href="/cars/css/main.css">
<title>s1nical - Cars</title>
</head>
<body>
- <script src="./cars_files/stopExecutionOnTimeout-de7e2ef6bfefd24b79a3f68b414b87b8db5b08439cac3f1012092b2290c719cd.js.download"></script>
- <script src="./cars_files/p5.min.js.download"></script>
- <script src="./cars_files/matter.min.js.download"></script>
- <script src="js/main.js"></script>
+ <script src="/cars/cars_files/stopExecutionOnTimeout-de7e2ef6bfefd24b79a3f68b414b87b8db5b08439cac3f1012092b2290c719cd.js.download"></script>
+ <script src="/cars/cars_files/p5.min.js.download"></script>
+ <script src="/cars/cars_files/matter.min.js.download"></script>
+ <script src="/cars/js/main.js"></script>
<canvas id="defaultCanvas0" width="1536" height="937" style="width: 1536.68px; height: 937px;"></canvas>
diff --git a/cars/js/main.js b/cars/js/main.js index 336766f..010a278 100644 --- a/cars/js/main.js +++ b/cars/js/main.js @@ -1,6 +1,6 @@ // CHECKS IF USER IS ON MOBILE if (screen.width <= 480) { - location.href = '/mobile/'; + location.href = '/mobile'; } // rendered-js diff --git a/dino/index.html b/dino/index.html index 2ed2ed4..5234bf6 100644 --- a/dino/index.html +++ b/dino/index.html @@ -5,8 +5,8 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>s1nical - Dino Game</title>
- <link rel="stylesheet" href="css/main.css">
- <link rel="shortcut icon" href="favicon.png" type="image/x-icon">
+ <link rel="stylesheet" href="/dino/css/main.css">
+ <link rel="shortcut icon" href="/dino/favicon.png" type="image/x-icon">
</head>
<body id="t" class="offline">
<div id="main-frame-error" class="interstitial-wrapper">
@@ -24,7 +24,7 @@ </div>
</div>
- <script src="js/main.js"></script>
+ <script src="/dino/js/main.js"></script>
<div class="footer">
<link rel="stylesheet" type="text/css" href="//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" />Made with <i class="icon ion-heart"></i> by <a href='https://twitter.com/s1nical' target='_blank' rel='noopener noreferrer'>s1n</a>
diff --git a/doge/index.html b/doge/index.html index d0f02bc..f7703e3 100644 --- a/doge/index.html +++ b/doge/index.html @@ -5,8 +5,8 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>s1nical - Doge in space</title>
- <link rel="stylesheet" href="css/main.css">
- <link rel="shortcut icon" href="favicon.png" type="image/x-icon">
+ <link rel="stylesheet" href="/doge/css/main.css">
+ <link rel="shortcut icon" href="/favicon.png" type="image/x-icon">
</head>
<body>
<div class="rotate-container rotate-container-1">
@@ -9,13 +9,7 @@ <link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic' rel='stylesheet' type='text/css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.3.1/trianglify.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
- <script>
- function setStyleSheet(url) {
- var stylesheet = document.getElementById("stylesheet");
- stylesheet.setAttribute('href', url);
- }
- </script>
- <link id="stylesheet" rel="stylesheet" type="text/css" href="./css/main.css" />
+ <link id="stylesheet" rel="stylesheet" type="text/css" href="/css/main.css" />
<meta name="description" content="s1nical is a full stack developer.">
<meta property="og:description" content="s1nical is a full stack developer.">
<meta property="og:title" content="s1nical">
@@ -26,8 +20,8 @@ <script src="https://www.googletagmanager.com/gtag/js?id=UA-30692517-4"></script>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<link rel="image_src" href="https://secure.gravatar.com/avatar/f9c6903a50d1d861a47a614862b00b89.png?s=375">
- <link rel="apple-touch-icon" sizes="128x128" href="./favicon.ico">
- <link rel="icon" type="image/ico" href="./favicon.ico" sizes="128x128">
+ <link rel="apple-touch-icon" sizes="128x128" href="/favicon.ico">
+ <link rel="icon" type="image/ico" href="/favicon.ico" sizes="128x128">
<link rel="canonical" href="https://s1n.pw/">
<script type="application/ld+json">{
"name": "s1nical",
@@ -64,16 +58,16 @@ </script>
</head>
<body>
- <script src="./js/app.js"></script>
+ <script src="/js/app.js"></script>
<!-- Navigation Bar -->
<div class="navigation-bar">
<nav class="nav">
<a href="#" class="nav-item" active-color="orange">Home</a> <!-- Had `is-active` after it but removed it due to not highlighting. -->
- <a href="./404.html" class="nav-item" active-color="green">About</a> <!-- About -->
- <a href="./dino/" class="nav-item" active-color="blue">Dino</a> <!-- Testimonials -->
- <a href="./doge" class="nav-item" active-color="red">Doge</a> <!-- Blog -->
- <a href="./cars/" class="nav-item" active-color="rebeccapurple">Cars</a> <!-- Contact -->
+ <a href="/404.html" class="nav-item" active-color="green">About</a> <!-- About -->
+ <a href="/dino/" class="nav-item" active-color="blue">Dino</a> <!-- Testimonials -->
+ <a href="/doge" class="nav-item" active-color="red">Doge</a> <!-- Blog -->
+ <a href="/cars/" class="nav-item" active-color="rebeccapurple">Cars</a> <!-- Contact -->
<a href="https://nani.s1n.pw" class="nav-item" active-color="rebeccapurple">Nani?!</a>
<span class="nav-indicator"></span>
</nav>
@@ -11,7 +11,7 @@ $(window).on("load", function () { // CHECKS IF USER IS ON MOBILE
if( screen.width <= 480 ) {
- location.href = './mobile/';
+ location.href = '/mobile';
}
// BACKGROUND SPARKLES
diff --git a/konami/index.html b/konami/index.html index 93b87cc..1fc4fea 100644 --- a/konami/index.html +++ b/konami/index.html @@ -11,7 +11,7 @@ rel='stylesheet' type='text/css'> <script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.3.1/trianglify.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> - <link rel="stylesheet" href="./css/main.css"> + <link rel="stylesheet" href="/konami/css/main.css"> <script src="./js/main.js"></script> <meta name="description" content="s1nical is a full stack developer."> <meta property="og:description" content="s1nical is a full stack developer."> @@ -22,8 +22,8 @@ <script src="/cdn-cgi/apps/head/_vFlzwEWzfnxN-k3KPkfOrUdyXo.js"></script> <script src="https://www.googletagmanager.com/gtag/js?id=UA-30692517-4"></script> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> - <link rel="apple-touch-icon" sizes="128x128" href="./assets/images/small-spinning-globe3.gif"> - <link rel="icon" type="image/gif" href="./assets/images/small-spinning-globe3.gif" sizes="128x128"> + <link rel="apple-touch-icon" sizes="128x128" href="/konami/assets/images/small-spinning-globe3.gif"> + <link rel="icon" type="image/gif" href="/konami/assets/images/small-spinning-globe3.gif" sizes="128x128"> <link rel="canonical" href="https://s1n.pw/"> <script type="application/ld+json"> { @@ -113,7 +113,7 @@ Full Credits: https://s1n.pw/konami/assets/midi/midi.txt --> - <audio src="./assets/midi/midi.mp3" autoplay id="music"> + <audio src="/konami/assets/midi/midi.mp3" autoplay id="music"> <p>If you are reading this, it is because your browser does not support the audio element. </p> <script> var audio = document.getElementById("music"); diff --git a/konami/js/main.js b/konami/js/main.js index 601a191..47e21f7 100644 --- a/konami/js/main.js +++ b/konami/js/main.js @@ -12,6 +12,11 @@ function Scroll() { } Scroll(); +// CHECKS IF USER IS ON MOBILE +if (screen.width <= 480) { + location.href = '/mobile'; +} + // KONAMI CODE FOR TOASTY // a key map of allowed keys diff --git a/mobile/index.html b/mobile/index.html index f75b0c0..47a1d7b 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -9,7 +9,7 @@ <link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic' rel='stylesheet' type='text/css'> <script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.3.1/trianglify.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> - <link rel="stylesheet" href="css/main.css"> + <link rel="stylesheet" href="/mobile/css/main.css"> <meta name="description" content="s1nical is a full stack developer."> <meta property="og:description" content="s1nical is a full stack developer."> <meta property="og:title" content="s1nical"> @@ -20,8 +20,8 @@ <script src="https://www.googletagmanager.com/gtag/js?id=UA-30692517-4"></script> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> <link rel="image_src" href="https://secure.gravatar.com/avatar/f9c6903a50d1d861a47a614862b00b89.png?s=375"> - <link rel="apple-touch-icon" sizes="128x128" href="favicon.ico"> - <link rel="icon" type="image/ico" href="favicon.ico" sizes="128x128"> + <link rel="apple-touch-icon" sizes="128x128" href="/favicon.ico"> + <link rel="icon" type="image/ico" href="/favicon.ico" sizes="128x128"> <link rel="canonical" href="https://s1n.pw/"> <script type="application/ld+json">{ "name": "s1nical", @@ -58,7 +58,7 @@ </script> </head> <body> - <script src="js/app.js"></script> + <script src="/mobile/js/app.js"></script> <!-- Core Site Function, Site Primer/ Base --> <main> diff --git a/mobile/js/app.js b/mobile/js/app.js index df6b42b..ae22283 100644 --- a/mobile/js/app.js +++ b/mobile/js/app.js @@ -5,7 +5,7 @@ $(window).on("load", function () { // CHECKS IF USER IS ON DESKTOP if( screen.width > 480 ) { - location.href = '../index.html'; + location.href = '/index.html'; } // BACKGROUND SPARKLES diff --git a/resources/paths.txt b/resources/paths.txt new file mode 100644 index 0000000..1c667d9 --- /dev/null +++ b/resources/paths.txt @@ -0,0 +1,6 @@ +Here is all you need to know about relative file paths: + +- Starting with "/" returns to the root directory and starts there +- Starting with "../" moves one directory backwards and starts there +- Starting with "../../" moves two directories backwards and starts there (and so on...) +- To move forward, just start with the first subdirectory and keep moving forward
\ No newline at end of file |