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

View File

@ -8,15 +8,12 @@
<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
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;
if (window.location.href.endsWith('/index.html')) {
if (window.location.origin !== null) {
var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
window.location.href = newUrl;
}
}
</script>
</head>

View File

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

View File

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

View File

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

View File

@ -8,15 +8,12 @@
<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
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;
if (window.location.href.endsWith('/index.html')) {
if (window.location.origin !== null) {
var currentUrl = window.location.href;
var newUrl = currentUrl.replace('/index.html', '');
window.location.href = newUrl;
}
}
</script>
</head>

View File

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