-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
106 lines (101 loc) · 3.54 KB
/
contact.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
<!DOCTYPE html>
<html>
<head>
<title>Jazz Calendar - Local Live Jazz Music Events</title>
<link rel="stylesheet" type="text/css" href="style/reset.css" />
<link rel="stylesheet" type="text/css" href="style/contact.css" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<script type="text/javascript">
function html5_storage_support() {
//check to see if this browser support local storage: return true if so, false if not
try {
return 'localStorage' in window && window['localStorage'] !== null;
} catch (e) {
return false;
}
}
function save() {
if (html5_storage_support()) {
//get the user-entered values from the two text fields:
var name1 = document.getElementById("name1").value;
var name2 = document.getElementById("name2").value;
//create two local-storage keys (name1, name2) and assign
//each the respective value from the text fields:
localStorage.setItem('name1',name1);
localStorage.setItem('name2',name2);
}
}
function set() {
if (html5_storage_support()) {
//set the value of each text field from the stored values:
document.getElementById('name1').value = localStorage.getItem('name1');
document.getElementById('name2').value = localStorage.getItem('name2');
}
}
</script>
</head>
<body>
<div id="container">
<div id="main">
<header>
<img src="images/logo.gif" alt="Jazz Calendar" />
<h3 id="tagline">Local jazz info</h3>
</header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="performances.html">Performances</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="gameandmedia.html">Media</a></li>
<li><a href="concertfinder.html">Concerts</a></li>
</ul>
</nav>
<div id="maincontent">
<article>
<h2>Register</h2>
<p>Use the form below to register as a <em>Jazz Calendar</em> user.</p>
<form action="forms.html" method="post">
<label for="name">Name</label><br>
<input type="text" name="name" id="name" placeholder="Jane Doe"><br>
<br>
<label for="phone">Phone</label><br>
<input type="tel" name="phone" id="phone"><br>
<br>
<label for="email">Email</label><br>
<input type="email" name="email" id="email"><br>
<br>
<label for="website">Website URL</label><br>
<input type="url" name="website" id="website"><br>
<br>
<label for="DOB">Date of Birth</label><br>
<input type="date" name="DOB" id="DOB"><br>
<br>
<input type="submit">
</form>
</article>
<br> <hr>
<article>
<h2>Store Your Name using Storage feature</h2>
<label for="name1">Name 1</label><br>
<input type="text" name="name1" id="name1"><br>
<br>
<label for="name2">Name 2</label><br>
<input type="text" name="name2" id="name2"><br>
<br>
<button onclick="save()">Save</button>
<button onclick="set()">Update from Saved</button>
</article>
</div>
<aside id="sidebar">
<h3>Signup</h3>
<p>Become a member of Jazz Calendar now! <a href="#">Email us</a> to receive frequent notices on upcoming live shows.</p>
</aside>
<footer id="contactinfo">
<p>Jazz Calendar
<br />123 Fake Street, Sometown, USA | 555-123-4567</p>
</footer>
</div>
</div>
</body>
</html>