generated from akshatvg/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
loginHardik.html
153 lines (138 loc) · 7.18 KB
/
loginHardik.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
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta Tags for SEO -->
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="VIT themed client side puzzle with mini-tasks and questions for each person for the online farewell of Star Seniors.">
<meta name="keywords" content="VTOP, VIT, Farewell, Clubs, Star Seniors, Online">
<meta name="author" content="Akshat Gupta">
<meta name="copyright" content="Akshat Gupta">
<meta name="language" content="en">
<meta name="category" content="Farewell">
<meta name="coverage" content="Worldwide">
<meta name="rating" content="General">
<meta name="og:email" content="akshatvg23@gmail.com">
<meta name="og:phone_number" content="+919600093179">
<meta name="og:country-name" content="India">
<meta name="og:region" content="Tamil Nadu">
<meta name="og:site_name" content="VIT Puzzle">
<meta property="og:type" content="website">
<meta property="og:title" content="VIT Puzzle">
<meta property="og:description"
content="VIT themed client side puzzle with mini-tasks and questions for each person for the online farewell of Star Seniors.">
<meta property="og:site_name" content="VIT Puzzle">
<meta name="twitter:card" content="website">
<meta name="twitter:site" content="VIT Puzzle">
<meta name="twitter:title" content="VIT Puzzle">
<meta name="twitter:description"
content="VIT themed client side puzzle with mini-tasks and questions for each person for the online farewell of Star Seniors.">
<meta name="twitter:creator" content="@akshatvg">
<meta itemprop="name" content="Akshat Gupta">
<meta itemprop="description"
content="VIT themed client side puzzle with mini-tasks and questions for each person for the online farewell of Star Seniors.">
<meta name="url" content="https://vit-puzzle.akshatvg.com/loginHardik">
<meta property="og:url" content="https://vit-puzzle.akshatvg.com/loginHardik">
<link rel="canonical" href="https://vit-puzzle.akshatvg.com/loginHardik">
<!-- Linking Favicon, Apple Touch Icon, Font Awesome, AOS, Materialize & CSS -->
<link rel="icon" href="assets/img/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="assets/img/apple-touch-icon.png" type="image/png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
defer>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="assets/css/spacing.css">
<link rel="stylesheet" href="assets/css/index.css">
<link rel="stylesheet" href="assets/css/tables.css">
<!-- Title -->
<title>VIT Puzzle || Login Page</title>
<!-- No Script -->
<noscript>Please enable JavaScript to open this page.</noscript>
</head>
<body class="grey lighten-4">
<!-- Top Nav -->
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper center">
<a href="/" class="center brand">VIT Puzzle
</a>
</div>
</nav>
</div>
<!-- Main Content -->
<div class="container">
<!-- Login Form -->
<div class="row mt-5 mb-5">
<div class="w-100 w-md-50 mx-auto">
<div class="card white card-top-lightblue">
<div class="card-content">
<span class="card-title black-text">Hardik's Login</span>
<div name="loginStud">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
<input id="regNo" name="regNo" type="text" class="validate"
pattern="[1-2][5-9][A-Za-z]{3}[0-9]{4}" required
title="Invalid Registration Number">
<label for="regNo">Registration Number</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">lock</i>
<input id="studPass" name="studPass" type="password" class="validate" required>
<label for="studPass">Password</label>
</div>
<div class="center">
<button name="loginStudBtn"
class="btn btn-puzzle-lightblue z-depth-0 waves-effect mb-n4" id="loginStudBtn"
value="Login">Login</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Loader -->
<div id="loader" class="show fullscreen"><svg class="circular" width="48px" height="48px">
<circle class="path-bg" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke="#eeeeee" />
<circle class="path" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke-miterlimit="10"
stroke="#107BE5" /></svg></div>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src=" https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"
crossorigin="anonymous"></script>
<script src="assets/js/index.js"></script>
<script>
$("#loginStudBtn").click(function () {
var regNo = document.getElementById("regNo").value;
var password = document.getElementById("studPass").value;
if (regNo.match(/[1-2][5-9][A-Za-z]{3}[0-9]{4}/)) {
if (password === "") {
M.toast({ html: 'Password cannot be empty' });
}
else {
window.location.href = "hardik/hardikFirst.html";
}
}
else {
M.toast({ html: 'Invalid Registration Number' });
}
});
$(document).keypress(function (event) {
var keycode = (event.keyCode ? event.keyCode : event.which);
if (keycode == '13') {
$("#loginStudBtn").trigger('click');
}
});
</script>
</body>
</html>