I really can't code can i

This commit is contained in:
Tracker-Friendly 2024-03-12 18:56:55 +00:00
parent 491378bbd2
commit 0914ba630a
7 changed files with 42 additions and 63 deletions

View File

@ -9,15 +9,12 @@
<link rel="stylesheet" type="text/css" href="../static/css/style.css" /> <link rel="stylesheet" type="text/css" href="../static/css/style.css" />
<script type="text/javascript" src="../static/js/crypto-js.js"></script> <script type="text/javascript" src="../static/js/crypto-js.js"></script>
<script> <script>
if (origin !== "null") { if (window.location.href.endsWith('/index.html')) {
// Get the current URL if (window.location.origin !== null) {
var currentUrl = window.location.href; var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
// Remove '/index.html' from the current URL window.location.href = newUrl;
var newUrl = currentUrl.replace('/index.html', ''); }
// Redirect to the new URL
window.location.href = newUrl;
} }
</script> </script>
</head> </head>

View File

@ -8,15 +8,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="../static/css/style.css" /> <link rel="stylesheet" type="text/css" href="../static/css/style.css" />
<script> <script>
if (origin !== "null") { if (window.location.href.endsWith('/index.html')) {
// Get the current URL if (window.location.origin !== null) {
var currentUrl = window.location.href; var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
// Remove '/index.html' from the current URL window.location.href = newUrl;
var newUrl = currentUrl.replace('/index.html', ''); }
// Redirect to the new URL
window.location.href = newUrl;
} }
</script> </script>
</head> </head>

View File

@ -10,15 +10,12 @@
<meta content="Burgernotes" property="og:title" /> <meta content="Burgernotes" property="og:title" />
<meta content="A simple note-taking app!" property="og:description" /> <meta content="A simple note-taking app!" property="og:description" />
<script> <script>
if (origin !== "null") { if (window.location.href.endsWith('/index.html')) {
// Get the current URL if (window.location.origin !== null) {
var currentUrl = window.location.href; var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
// Remove '/index.html' from the current URL window.location.href = newUrl;
var newUrl = currentUrl.replace('/index.html', ''); }
// Redirect to the new URL
window.location.href = newUrl;
} }
</script> </script>
</head> </head>

View File

@ -20,15 +20,12 @@
} }
</style> </style>
<script> <script>
if (origin !== "null") { if (window.location.href.endsWith('/index.html')) {
// Get the current URL if (window.location.origin !== null) {
var currentUrl = window.location.href; var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
// Remove '/index.html' from the current URL window.location.href = newUrl;
var newUrl = currentUrl.replace('/index.html', ''); }
// Redirect to the new URL
window.location.href = newUrl;
} }
</script> </script>
</head> </head>

View File

@ -6,15 +6,12 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script> <script>
if (origin !== "null") { if (window.location.href.endsWith('/index.html')) {
// Get the current URL if (window.location.origin !== null) {
var currentUrl = window.location.href; var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
// Remove '/index.html' from the current URL window.location.href = newUrl;
var newUrl = currentUrl.replace('/index.html', ''); }
// Redirect to the new URL
window.location.href = newUrl;
} }
</script> </script>
<head> <head>

View File

@ -8,15 +8,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="../static/css/style.css" /> <link rel="stylesheet" type="text/css" href="../static/css/style.css" />
<script> <script>
if (origin !== "null") { if (window.location.href.endsWith('/index.html')) {
// Get the current URL if (window.location.origin !== null) {
var currentUrl = window.location.href; var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
// Remove '/index.html' from the current URL window.location.href = newUrl;
var newUrl = currentUrl.replace('/index.html', ''); }
// Redirect to the new URL
window.location.href = newUrl;
} }
</script> </script>
</head> </head>

View File

@ -20,15 +20,12 @@
} }
</style> </style>
<script> <script>
if (origin !== "null") { if (window.location.href.endsWith('/index.html')) {
// Get the current URL if (window.location.origin !== null) {
var currentUrl = window.location.href; var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
// Remove '/index.html' from the current URL window.location.href = newUrl;
var newUrl = currentUrl.replace('/index.html', ''); }
// Redirect to the new URL
window.location.href = newUrl;
} }
</script> </script>
</head> </head>