Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaElkotp committed May 1, 2024
1 parent 932d46d commit 00e98c9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/feedbacks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</head>
<body>
<div class="db-menu">
<div class="sidebar" id="sidebar">
<div class="sidebar" id="sidebarA">
</div>
<div class="db-holder p-30">
<p id="p1"> FEEDBACKS</p>
Expand Down
2 changes: 1 addition & 1 deletion admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body >

<div class="db-menu">
<div class="sidebar" id="sidebar">
<div class="sidebar" id="sidebarA">

</div>
<div class="db-holder p-30">
Expand Down
4 changes: 2 additions & 2 deletions auth/authSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function redirect(){
} else{
let data = JSON.parse(window.sessionStorage.getItem('loginCredentials'));
if(data.type == "Admin"){
window.location = `/admin`
window.location = `/GGCat-IT-Project/admin`
} else{
window.location = `/myprofile`
window.location = `/GGCat-IT-Project/myprofile`
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/css/global.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* {
box-sizing: border-box;
transition: 0.3s ease-in-out;
}

body {
Expand Down
26 changes: 26 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,30 @@ if(theme == "light"){
</div>
`;
}
}());



(function sidebarsLoader(){
let sidebar = document.querySelector('#sidebar');
let sidebarA = document.querySelector('#sidebarA');

if(sidebar){
footer.innerHTML +=
`
<div class="p-20 footer">
<a href="/GGCat-IT-Project/">Home</a>
<a href="/GGCat-IT-Project/myprofile/">Control</a>
</div>
`;
}

if(sidebarA){
footer.innerHTML +=
`
<div class="p-20 footer">
<p>All rights Are Reversed ${year}</p>
</div>
`;
}
}());

0 comments on commit 00e98c9

Please sign in to comment.