-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_hmpg.html
88 lines (77 loc) · 3.07 KB
/
admin_hmpg.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Admin | Voyager</title>
<link rel="stylesheet" href="./assets/css/reset.css">
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,700,900" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel = "stylesheet" href = "ag_hmpg_style.css">
</head>
<body>
<div id = "scam" style = "opacity:0;">
<div id = "row1">
<div id = "promotions" style = "margin:auto; cursor:pointer;" onclick = "window.location.href ='promotions.html'">
Promotions
</div>
</div>
</div>
<div class = "nav-bar">
<div id = "logo-def">
<a id = "logo-img" href = "index.html">
<img src="images/logo2-1.png" alt="logo" width=270px>
</a>
</div>
<div id = "prof">
<div id = "arr-div" style = "margin-top:5px; margin-left:auto; border-radius:25px;display:flex;cursor:pointer;"">
<span id = "arrow" style = "font-size:40px; height:fit-content; margin-top:-5px; width:25px;">⌄</span>
<img src="images/img.jpg" width="52px" style = "border-radius:25px; margin-left:8px;">
</div>
<div id = "drop">
<span class = "drop-list"><a onclick="window.location.replace('LogOut');" style="cursor:pointer;">LogOut</a></span>
</div>
</div>
</div>
<div id="heading">
<h1 style="margin-left: 90px; margin-top: 50px;">
<span>Admin</span>
</h1>
</div>
<div id = "user-name-display" style="margin: auto; margin-top: 50px; margin-left: 540px; font-family:PoiretOne-Regular;font-size:40px;text-shadow: 2px 2px 2px orangered; color: beige;"></div>
<footer>
©Copyright Voyager pvt. ltd. All Rights Reserved
</footer>
<script src="./assets/js/main.js"></script>
<script>
var aid;
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
aid = this.responseText.split(",")[0];
if(aid){
document.getElementById("user-name-display").innerHTML= "Welcome Admin, @" + aid + "!";
}
else{
window.location.replace("login.html");
}
}
}
xhttp.open("GET", "GetSession", true);
xhttp.send();
window.onload(load());
function load(){
setTimeout(function(){fadein();}, 500);
}
function fadein(){
var ele = document.getElementById("scam");
ele.style.display = "flex";
ele.style.opacity = parseFloat(ele.style.opacity)+0.05;
if(ele.style.opacity < 1){
setTimeout(function(){fadein();}, 50);
}
}
</script>
</body>
</html>