Commit 9b1ad82a authored by Mihajlo Srebrenoski's avatar Mihajlo Srebrenoski
Browse files

Merge branch 'front-end-routes' into 'dev'

some small changes with routes

See merge request !3
parents 693c00ec 686483ba
Showing with 6 additions and 6 deletions
+6 -6
......@@ -19,13 +19,13 @@ if(localStorage.getItem('user') !== null && localStorage.getItem('user_role') ==
}else{
location.assign("http://127.0.0.1:5500//public/index.html");
location.assign("http://127.0.0.1:5500/brainster-second-project/library/public/index.html");
}
$("#log_out").click(function(e){
localStorage.clear();
location.assign("http://127.0.0.1:5500//public/index.html");
location.assign("http://127.0.0.1:5500/brainster-second-project/library/public/index.html");
})
......
......@@ -33,12 +33,12 @@ if (user.role == 0){
localStorage.clear()
localStorage.setItem('user',user.id)
localStorage.setItem('user_role',user.role)
location.assign("http://127.0.0.1:5500//public/adminPanel.html");
location.assign("http://127.0.0.1:5500/brainster-second-project/library/public/adminPanel.html");
}else{
localStorage.clear()
localStorage.setItem('user',user.id)
localStorage.setItem('user_role',user.role)
location.assign("http://127.0.0.1:5500//public/index.html");
location.assign("http://127.0.0.1:5500/brainster-second-project/library/public/index.html");
}
......
......@@ -19,7 +19,7 @@ $('#profile_panel').click(function(e){
$("#log_out").click(function(e){
localStorage.clear();
location.assign("http://127.0.0.1:5500//public/index.html");
location.assign("http://127.0.0.1:5500/brainster-second-project/library/public/index.html");
})
......
......@@ -14,7 +14,7 @@
<script>
if(localStorage.getItem('user') === null){
location.assign("http://127.0.0.1:5500//public/library.html");
location.assign("index.html");
}
</script>
<div class="grid grid-cols-12 ">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment