I really can't code can i
This commit is contained in:
parent
491378bbd2
commit
0914ba630a
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
15
index.html
15
index.html
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in New Issue