-
Notifications
You must be signed in to change notification settings - Fork 13
/
Users.html
151 lines (135 loc) · 4.66 KB
/
Users.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta meta name="viewport" content="width=device-width, user-scalable=no" />
<title>Helpdesk</title>
</head>
<link rel="stylesheet" type="text/css" href="style.css?v=2" />
<script src="script.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB"
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
/>
</div>
</div>
<body>
<header class="navbar navbar-expand-md d-flex flex-wrap justify-content-center p-3 mb-2 border-bottom">
<div class="container-fluid">
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none">
<img src="logo.png" id="imglogo">
<span class="fs-4 mr-5 lo" ><h2 class="bold-text">Helpdesk</h2></span>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="nav nav-pills navbar-nav ms-auto" id="myNav">
<li class="nav-item"><a href="dbms.html" class="nav-link">DBMS</a></li>
<li class="nav-item"><a href="mech_updated.html" class="nav-link">Mechanics</a></li>
<li class="nav-item dropdown" id="myDropdown">
<a class="nav-link dropdown-toggle show" data-bs-toggle="dropdown" aria-expanded="false">OOPS</a>
<ul class="dropdown-menu" data-bs-popper="static">
<li><a class="nav-link dropdown-item" href="object_updated.html">Code</a></li>
<li><a class="nav-link dropdown-item" href="oops notes_updated.html">Notes</a></li>
</ul>
</li>
<li class="nav-item"><a href="daa_updated.html" class="nav-link">DAA</a></li>
</ul>
</div>
</div>
<script>
fetch("json/users.json")
.then(function(response) {
if (!response.ok) {
throw new Error("Network response was not ok");
}
return response.json();
})
.then(function(datas) {
let thedata = document.querySelector("#list");
let out = "";
for (let data of datas) {
out += ` <tr> ${data.Sno}.${data.Name} </tr><br>`;
}
thedata.innerHTML = out;
})
.catch(function(error) {
console.error('Error during fetch:', error);
});
</script>
</header>
<div id="body">
<style>
#contributors {
color: black;
font-size: 3.5rem;
margin-top: 10rem;
width: 80% !important;
}
table {
width: 100% !important;
height: 100% !important;
}
/* Media query for smaller screens */
@media screen and (max-width: 600px) {
#contributors {
width: 90% !important;
font-size: 1.3rem !important;
}
img{
width: 90% !important;
}
}
/* Media query for even smaller screens */
@media screen and (max-width: 450px) {
#contributors {
width: 100%;
font-size: 1rem;
}
img{
width: 100% !important;
}
}
/* a{
height: 20rem;
width: 20rem;
} */
/* a{
display: inline;
} */
img{
width: 50%;
}
a{
align-self: center;
}
</style>
</head>
<body>
<center>
<div id="contributors">
Our Valuable Users
<br>
<br>
<div >
<table id="list">
</table>
</div>
</div>
</center>
</body>
</html>
</center></div><br><br>
</div>
</body>
</html>