Repository navigation
Expand file tree
/
Copy pathverify.html
More file actions
137 lines (126 loc) · 4.74 KB
/
Copy pathverify.html
File metadata and controls
137 lines (126 loc) · 4.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Certificate Verification | Deepak IT & Web Services</title>
<style>
:root {
--primary: #2c3e50;
--success: #27ae60;
--error: #e74c3c;
--light: #f4f7f6;
}
body {
font-family: 'Segoe UI', Arial, sans-serif;
background-color: var(--light);
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
}
.verify-card {
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
max-width: 500px;
width: 100%;
text-align: center;
}
.logo { color: var(--primary); font-weight: bold; font-size: 1.5rem; margin-bottom: 5px; }
.sub-text { color: #666; font-size: 0.9rem; margin-bottom: 30px; }
input {
width: 80%;
padding: 12px;
margin-bottom: 20px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 1rem;
text-transform: uppercase;
}
button {
background: var(--primary);
color: white;
border: none;
padding: 12px 30px;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: 0.3s;
}
button:hover { background: #1a252f; }
#result {
margin-top: 30px;
padding: 20px;
border-radius: 8px;
display: none; /* Hidden by default */
}
.valid { background: #e8f6ed; border: 1px solid var(--success); color: #1e5631; }
.invalid { background: #fdeaea; border: 1px solid var(--error); color: #8a2a2a; }
.student-info { text-align: left; margin-top: 15px; font-size: 0.95rem; }
.student-info div { margin-bottom: 8px; border-bottom: 1px dashed #ccc; padding-bottom: 4px; }
</style>
</head>
<body>
<div class="verify-card">
<div class="logo">Deepak IT & Web Services</div>
<div class="sub-text">Credential Verification Portal (MSME NIC 62011)</div>
<h3>Enter Certificate ID</h3>
<input type="text" id="certID" placeholder="Ex: DIT-2026-001">
<br>
<button onclick="verifyCertificate()">Verify Credential</button>
<div id="result">
</div>
<p style="margin-top: 40px; font-size: 0.8rem; color: #999;">
For manual verification, contact: diws2026@outlook.com
</p>
</div>
<script>
// --- THIS IS YOUR STUDENT DATABASE ---
// You can add more students to this list as you train them.
const studentData = {
"DIT-2026-001": {
name: "John Doe",
course: "6-Month Professional IT Internship",
completion: "March 2026",
status: "Certified",
specialization: "Web Dev & Hardware Troubleshooting"
},
"DIT-2026-002": {
name: "Jane Smith",
course: "3-Month IT Support Fast-Track",
completion: "April 2026",
status: "Certified",
specialization: "Networking & OS Deployment"
}
};
function verifyCertificate() {
const id = document.getElementById('certID').value.toUpperCase().trim();
const resultDiv = document.getElementById('result');
if (studentData[id]) {
const student = studentData[id];
resultDiv.style.display = "block";
resultDiv.className = "valid";
resultDiv.innerHTML = `
<strong style="color: var(--success);">✅ VERIFIED CREDENTIAL</strong>
<div class="student-info">
<div><strong>Name:</strong> ${student.name}</div>
<div><strong>Course:</strong> ${student.course}</div>
<div><strong>Completion Date:</strong> ${student.completion}</div>
<div><strong>Specialization:</strong> ${student.specialization}</div>
<div><strong>Status:</strong> ${student.status}</div>
</div>
`;
} else {
resultDiv.style.display = "block";
resultDiv.className = "invalid";
resultDiv.innerHTML = `
<strong>❌ RECORD NOT FOUND</strong>
<p style="font-size: 0.85rem;">The Certificate ID entered is not valid or has not been issued yet.</p>
`;
}
}
</script>
</body>
</html>