-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthnticator.html
More file actions
197 lines (182 loc) · 5.75 KB
/
Copy pathauthnticator.html
File metadata and controls
197 lines (182 loc) · 5.75 KB
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Programmers Paradise - Certificate Authentication</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url("logos/background9.jpeg");
/*background: linear-gradient(135deg, #e0f7fa 25%, #80deea 75%);*/
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
width: 90%;
max-width: 600px;
background: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
padding: 20px;
text-align: center;
}
h1 {
color: #007bff;
margin-bottom: 20px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: #333;
}
.form-group input {
width: 100%;
padding: 10px;
font-size: 1em;
border: 1px solid #ddd;
border-radius: 5px;
}
.form-group button {
background-color: #007bff;
color: white;
padding: 10px 15px;
font-size: 1em;
border: none;
border-radius: 5px;
cursor: pointer;
}
.form-group button:hover {
background-color: #0056b3;
}
.result {
margin-top: 20px;
font-size: 1.2em;
color: #333;
}
.result.verified {
color: #28a745;
}
.result.invalid {
color: #dc3545;
}
@media screen and (max-width: 768px) {
.container {
padding: 10px;
}
.form-group input,
.form-group button {
padding: 8px;
font-size: 0.9em;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Certificate Authentication</h1>
<div class="form-group">
<label for="certificateId">Enter Certificate ID</label>
<input type="text" id="certificateId" placeholder="Certificate ID">
</div>
<div class="form-group">
<button onclick="authenticateCertificate()">Authenticate</button>
</div>
<div id="result" class="result"></div>
</div>
<script>
// Example certificates data. Replace with actual data.
certificates = {
"PPHWC2BQ7": "Harsh Sharma",
"PPHWC3ZD5": "Sharad Singh Thakur",
"PPHWC5QD4": "Sanya Ahmed",
"PPHWC6TG2": "Abhinav Anand",
"PPHWC7IT6": "Shristi sahu",
"PPHWC8QI6": "Satyam Patel",
"PPHWC9AW3": "Hridyesh Kumar",
"PPHWC10CF5": "Subhansh Malviya",
"PPHWC11NN5": "Ritik Kumar",
"PPHWC12VW1": "Veerannagari Ruthvik Reddy",
"PPHWC13UW7": "Sonu Kumar",
"PPHWC14BH8": "Om Gupta",
"PPHWC15GH7": "Shreyansh Patel",
"PPHWC16EW4": "Lakshya Sori",
"PPHWC17HT5": "Shruti Dubey",
"PPHWC18ZB5": "Harshita Gavel",
"PPHWC19RP5": "Faiz ali",
"PPHWC20FZ2": "Gajendra mandal",
"PPHWC21DD0": "Bhoomi",
"PPHWC22GG6": "Dathukorra",
"PPHWC23UW5": "Tripti Patel",
"PPHWC24ER2": "Nidhi Bhardwaj",
"PPHWC25VB7": "Kshitij sinha",
"PPHWC26EO1": "Rishabh Tiwari",
"PPHWC27XC8": "Ruchi Shukla",
"PPHWC28FB5": "Aryan Gupta",
"PPHWC29AA8": "Rupali Chandrakar",
"PPHWC30ZX6": "Garima Sahu",
"PPHWC31BF9": "Kuldeep Lahare",
"PPHWC32RS9": "Mohit Chandravanshi",
"PPHWC33BT1": "Abhijeet Pandey",
"PPHWC34XA3": "Rahul Sahu",
"PPHWC35LL2": "Dhiraj Kumar",
"PPHWC36OJ5": "Peehu Agrawal",
"PPHWC37UL1": "Priyanshu Mishra",
"PPHWC38CC9": "Ayush Dhruw",
"PPHWC39XD1": "Deepak Tandi",
"PPHWC40MM6": "Aditi Sahu",
"PPHWC41WB8": "Madhurima Rawat",
"PPHWC42WK8": "Ayush dhruw",
"PPHWC43JK7": "Nukesh Verma",
"PPHWC44CH2": "Harish sahu",
"PPHWC45VD6": "Sanjay singh",
"PPHWC46KC0": "Raj Bhalerao",
"PPHWC47AE0": "Satyam Jha",
"PPHWC48NK3": "Anoushka Chatterjee",
"PPHWC49PC1": "REVANTH REDDY",
"PPHWC50HN9": "tejas mishra",
"PPHWC51DT1": "Bhagyashri sahu",
"PPHWC52FF7": "Anandita Mukherjee",
"PPHWC54UF7": "Shivam choudhary",
"PPHWC55IR1": "Kishlay Kumar",
"PPHWC56ZO7": "Bhumika Shriwas",
"PPHWC57FX8": "Dileep Kushwaha",
"PPHWC59UU4": "ARNAV JHA",
"PPHWC60AZ6": "Moksh Patel",
"PPHWC61JM1": "Dhaneshwar Sahu",
"PPHWC62SA4": "Alka Dhaked",
"PPHWC63VH6": "Ketan Dinkar",
"PPHWC64KK3": "Vinay Kumar Rathour",
"PPHWC65YD5": "Deepak Kumar",
"PPHWC66QQ2": "Shivani singh",
"PPHWC67ML2": "Shivangi",
"PPHWC68PQ5": "Madhurima Rawat",
"PPHWC69RP8": "Mrityunjay Sharma",
"PPHWC70NU0": "Shampy Thakur",
"PPHWC71CC7": "Tanishq sahu",
"PPHWC72XM8": "Rishabh Kumar Singh",
"PPHWC73IF6": "Vikash Mishra"
};
function authenticateCertificate() {
const certificateId = document.getElementById('certificateId').value.trim();
const resultDiv = document.getElementById('result');
if (certificates[certificateId]) {
resultDiv.textContent = `${certificates[certificateId]} - Verified`;
resultDiv.classList.add('verified');
resultDiv.classList.remove('invalid');
} else {
resultDiv.textContent = 'Invalid Certificate ID';
resultDiv.classList.add('invalid');
resultDiv.classList.remove('verified');
}
}
</script>
</body>
</html>