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,16 +9,13 @@
<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;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', ''); var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl; window.location.href = newUrl;
} }
}
</script> </script>
</head> </head>

View File

@ -8,16 +8,13 @@
<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;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', ''); var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl; window.location.href = newUrl;
} }
}
</script> </script>
</head> </head>

View File

@ -10,16 +10,13 @@
<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;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', ''); var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl; window.location.href = newUrl;
} }
}
</script> </script>
</head> </head>

View File

@ -20,16 +20,13 @@
} }
</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;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', ''); var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl; window.location.href = newUrl;
} }
}
</script> </script>
</head> </head>

View File

@ -6,16 +6,13 @@
<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;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', ''); var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl; window.location.href = newUrl;
} }
}
</script> </script>
<head> <head>
Logging out.. Logging out..

View File

@ -8,16 +8,13 @@
<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;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', ''); var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl; window.location.href = newUrl;
} }
}
</script> </script>
</head> </head>

View File

@ -20,16 +20,13 @@
} }
</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;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', ''); var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl; window.location.href = newUrl;
} }
}
</script> </script>
</head> </head>