-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (102 loc) · 2.44 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MITE CSE3</title>
<script src="s.js" defer></script>
</head>
<body>
<div id='Details'></div>
<div id="student_container" class="student-container"></div>
<div id="loading"></div>
<!--Showing output-->
<h1 id="showOutput"></h1>
<!--Style is not working on Table element and others which is dynamically created using javascript-->
<!--Problem is Identified that is in this the css is rendered fast and then javascript is rendered so that the first rendered css will be overwritten
I found out by adding background color to body when I added bg color once it apperad then it automatically vanished whhen javascript is rendered.
-->
<!--Above problem I solved it uses Async function And Also Await as this would delay single fetching of the data and then load css to it.-->
<style>
* {
box-sizing: border-box;
}
body {
background: #EFEFBB;
background: -webkit-linear-gradient(to right, #D4D3DD, #EFEFBB);
background: linear-gradient(to right, #D4D3DD, #EFEFBB);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: 'Lato';
margin: 0;
}
h1 {
letter-spacing: 3px;
}
.student-container {
display: flex;
flex-wrap: wrap;
align-items: space-between;
justify-content: center;
margin: 0 auto;
max-width: 1200px;
}
.student {
background-color: #eee;
border-radius: 20px;
box-shadow: 0 3px 15px rgba(100, 100, 100, 0.5);
margin: 10px;
padding: 20px;
text-align: center;
}
.student .img-container {
background-color: rgba(255, 255, 255, 0.6);
border-radius: 50%;
width: 120px;
height: 120px;
text-align: center;
}
.student .img-container img {
margin-top: 20px;
max-width: 90%;
}
.student .info {
margin-top: 20px;
}
.student .number {
background-color: rgba(0, 0, 0, 0.1);
border-radius: 10px;
font-size: 0.8em;
padding: 5px 10px;
}
.student .name {
margin: 15px 0 7px;
letter-spacing: 1px;
}
#loading {
width: 6rem;
height: 6rem;
border: 15px solid #f3f3f3;
border-top: 15px solid #9c41f2;
border-radius: 100%;
margin-top: 300px;
visibility: hidden;
animation: spin 1s infinite linear;
}
#loading.display {
visibility: visible;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>
</body>
</html>
</html>