forked from kachun333/Web-Programming-Assignment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreview.html
85 lines (72 loc) · 2.63 KB
/
preview.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">
<link rel="stylesheet" href="biblio.css">
<title>Biblio - Your very own mini library website</title>
<style>
input[type=email], input[type=password] {
background: #f2f2f2;
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
.container {
background-color:white;
position: relative;
z-index: 1;
margin: 0 auto;
padding:30px 50px 30px 50px;
}
</style>
</head>
<body id="preview">
<script type="text/javascript" src="jquery-3.3.1.min.js"></script>
<header id="header">
<!--Menu Button-->
<a id="biblio" href="#">
<h2>Biblio</h2>
</a>
</header>
<main class="preview-main">
<h1 class="preview-title">BIBLIO</h1>
<h3 class="preview-descr">Your very own mini library system</h3>
<a><button class="preview-button" onclick="document.getElementById('id01').style.display='block'">LOGIN</button></a>
</main>
<div id="id01" class="modal">
<form class="signin" action="index.html">
<div class="container">
<br>
<input type="email" placeholder="Enter Email" name="uemail" required>
<br>
<input type="password" placeholder="Enter Password" name="psw" required>
<label><input type="checkbox" checked="checked" name="remember"> Remember me</label>
<br>
<button type="submit" onclick="myFunction()" class="loginbtn light">LOGIN</button>
 
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn light">CANCEL</button>
<br>
<br>
<p class="message">Not registered? <a href="signin.html">Create an account</a></p>
<br>
</div>
</form>
</div>
</div>
<script>
var modal = document.getElementById('id01');
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</body>
</html>