Fixed some old paths

Also deleted old unused content
This commit is contained in:
Sivert V. Sæther 2022-03-30 20:16:51 +00:00
parent 8d5032647d
commit 87f8348d6d
3 changed files with 5 additions and 45 deletions

View File

@ -1,18 +1,15 @@
$('#navbar').parent().html(` $('#navbar').parent().html(`
<nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="navbar"> <nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="navbar">
<a class="navbar-brand" href="/it1/">IT1 firebase stuff</a> <a class="navbar-brand" href="/old/it1/">IT1 firebase stuff</a>
<!-- <ul class="navbar-nav"> <!-- <ul class="navbar-nav">
<li class="nav-item right"> <li class="nav-item right">
<a class="nav-link" href="/it1/about.html">About</a> <a class="nav-link" href="/old/it1/about.html">About</a>
</li> </li>
</ul> --> </ul> -->
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<!-- <li class="nav-item right" id="register-btn">
<a class="nav-link" href="/register">Register</a>
</li> -->
<li class="nav-item right"> <li class="nav-item right">
<a class="nav-link" id="login-btn" href="/it1/bruker/"></a> <a class="nav-link" id="login-btn" href="/old/it1/bruker/"></a>
</li> </li>
</ul> </ul>
</nav>`) </nav>`)
@ -21,7 +18,7 @@ var signout = function() {
firebase.auth() firebase.auth()
.signOut() .signOut()
.then(function() { .then(function() {
document.location.href = '/it1/' document.location.href = '/old/it1/'
}).catch(function(error) { }).catch(function(error) {
alert('could not log out: '+error.message) alert('could not log out: '+error.message)
}) })
@ -32,7 +29,7 @@ firebase.auth().onAuthStateChanged(function(user) {
$('#login-btn').attr('href', 'javascript: signout()') $('#login-btn').attr('href', 'javascript: signout()')
$('#login-btn').html('Logout') $('#login-btn').html('Logout')
} else { } else {
$('#login-btn').attr('href', '/it1/bruker/') $('#login-btn').attr('href', '/old/it1/bruker/')
$('#login-btn').html('Login') $('#login-btn').html('Login')
} }
}) })

View File

@ -1,4 +0,0 @@
li.right > ul { /* TODO: FIX! */
align-content: right;
}

View File

@ -1,33 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Navbar for iframe</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="../navbar/navbar.css">
<!-- <script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script> -->
</head>
<body>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<a class="navbar-brand" target="_top" href="/old/it1/index.html">IT1 firebase stuff</a> <!-- href="../index.html" -->
<!-- <ul class="navbar-nav">
<li class="nav-item right">
<a class="nav-link" target="_top" href="../about.html">About</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item right">
<a class="nav-link">Simple login here later</a>
</li>
<li class="nav-item right" style="visibility: hidden">
<a class="nav-link" target="_top" href="/logout">Logout</a>
</li>
<li class="nav-item right" id="register-btn">
<a class="nav-link" target="_top" href="/register">Register</a>
</li>
<li class="nav-item right" id="login-btn">
<a class="nav-link" target="_top" href="/login">Login</a>
</li>
</ul> -->
</nav>
</body>
</html>