-
Notifications
You must be signed in to change notification settings - Fork 4
/
login.html
63 lines (49 loc) · 1.64 KB
/
login.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
<html>
<head>
<title> Login </title>
<link rel="stylesheet" href="./mdl/material.min.css">
<script src="./mdl/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body background="./images/bg.jpg">
<center>
<div class="demo-card-wide mdl-card mdl-shadow--2dp">
<div class="mdl-card__title">
<h2 class="mdl-card__title-text">Welcome</h2>
</div>
<div class="mdl-card__supporting-text">
World Congress 2017 for Technology Enthiusiasts
</div>
<form name="login">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id = "login" name="id" >
<label class="mdl-textfield__label" for="sample3">User ID</label>
</div><br/>
<input type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect" value="Login" onClick="pasuser(this.form)">
</form>
</div>
</center>
</body>
</html>
<script language="javascript">
function pasuser(form) {
if(form.id.value=="s01" || form.id.value=="a01" || form.id.value=="s02" || form.id.value=="a02"){
window.location="Agenda.html";
}else {
alert("Invalid UserID")
}
}
</script>
<style>
.demo-card-wide.mdl-card {
width: 512px;
}
.demo-card-wide > .mdl-card__title {
color: #fff;
height: 176px;
background: url('./images/conference4.jpg') center / cover;
}
.demo-card-wide > .mdl-card__menu {
color: #fff;
}
</style>