-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearch.html
More file actions
84 lines (74 loc) · 2.67 KB
/
Search.html
File metadata and controls
84 lines (74 loc) · 2.67 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
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/index.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/signup.css" media="screen">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title> </title>
<script src="js/validator.js"></script>
<script>
window.onload = function(){
var searchForm = document.getElementById('sForm');
searchForm.addEventListener('submit', function (event) {
var isInputNotEmpty = !validator.isEmpty(document.getElementById('search').value);
event.preventDefault();
if (!isInputNotEmpty)
document.getElementById('sForm').className = 'invalid';
else
document.getElementById('sForm').className = 'valid';
});
}
</script>
</head>
<body>
<div class="header">
<h1>Tom Narainpursat</h1>
<h4>
Modern Front End Developer
</br>
<span class='quote'>"Where ever you go that's where you are"</span>
</h4>
</div>
<div class ='space'>
<div class='nav'>
<h3>Menu</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Button.html">Button</a></li>
<li><a href="SideBar.html">Profile Card</a></li>
<li><a href="Signup.html">Signup</a></li>
<li><a href="Search.html">Search</a></li>
<li><a href="Questionairre.html">Questionaire</a></li>
<li><a href="Login.html">Login</a></li>
<li><a href="Colours.html">Colour Builder</a></li>
<li><a href="ShippingBilling.html">Shipping & Billing</a></li>
<li><a href="CreditDebitCard.html">Payment Info</a></li>
<li><a href="Calculator.html">Calculator</a></li>
<li><a href="ProductListing.html">Products</a></li>
</ul>
</div>
<div id='content'>
<div class='form_main'>
<h1>Search Form</h1>
<!--Signup Form Markup -->
<div class="form">
<form id="sForm">
<fieldset>
<label for="search"><span>Enter Search Field <span class="required">*</span></span><input type="text" class="input-field" name="search" id='search'/></label>
<label for="category"><span>Category</span>
<select name="category" class="select-field">
<option value="Category1">Category One</option>
<option value="Category2">Category Two</option>
<option value="Category3">Category Three</option>
<option value="Category4">Category Four</option>
<option value="Category5">Category Five</option>
</select>
</label>
<label><input type="submit" value="Submit" /></label>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</body>
</html>