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" />
<script type="text/javascript" src="../static/js/crypto-js.js"></script>
<script>
if (origin !== "null") {
// Get the current URL
if (window.location.href.endsWith('/index.html')) {
if (window.location.origin !== null) {
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
}
</script>
</head>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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