-
Notifications
You must be signed in to change notification settings - Fork 0
/
testJS.html
75 lines (69 loc) · 2.15 KB
/
testJS.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>HTML</title>
<meta name="description" content="" />
<meta name="author" content="Chau Vu" />
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link href="testJS.css" rel="stylesheet">
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<div>
<header>
<h1>HTML</h1>
</header>
<nav>
<p>
<a href="/">Home</a>
</p>
<p>
<a href="/contact">Contact</a>
</p>
</nav>
<div id="form" style="border: 1px solid gray">
<form class="form-signin" name="signin">
<h3 class="form-signin-heading">Please sign in</h3>
<input type="text" class="input-block-level" placeholder="Email address">
<input type="password" class="input-block-level" placeholder="Password">
<label class="checkbox">
<input type="checkbox" value="remember-me" onclick ="validator()"> Remember me
</label><br>
<button class="btn btn-large btn-primary" type="submit" id="button">Sign in</button>
</form>
</div>
<form name="signIn">
Username: <input type="text" name="username"/>
Password: <input type="password" name="password"/>
<input type="submit" value="Submit!"/>
</form>
<section id = "rightbox">
<img id="loc" width="180px" src="place.jpg">
</section>
<section id="leftbox">
Your bucket
</section>
<div id="box1">
Hello tester
</div>
<footer>
<p>
</p>
</footer>
</div>
<script type="text/javascript" src="testJS.js"></script>
<script type="text/javascript">
function validator(){
if (document.signin.elements[2].checked)
{alert("Remembered!")} else {alert("Forgotten!")}
}
</script>
</body>
</html>