-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.html
85 lines (82 loc) · 4.34 KB
/
example.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 lang="en">
<head>
<meta charset="UTF-8">
<title>saveStorage - jQuery Plugin</title>
<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">
</head>
<style>
</style>
<body>
<div id="wrapper" class="mt-4 mb-4">
<div class="container">
<div class="row">
<div class="col-md-6 offset-md-3">
<div class="title text-center mb-4">
<h1 class="h2">saveStorage - jQuery Plugin</h1>
<span>Type something and refresh the page</span>
</div>
<div class="form-area">
<form id="myform">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" name="name" class="form-control" id="name">
</div>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" name="email" class="form-control" id="email">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" id="password">
</div>
<div class="form-group">
<label for="selectEx">Example select</label>
<select name="select" id="selectEx" class="form-control">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div class="form-group">
<label>Radio buttons</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="radio" id="radio-1" value="0">
<label class="form-check-label" for="radio-1">
Radio button 1
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="radio" id="radio-2" value="1">
<label class="form-check-label" for="radio-2">
Radio button 2
</label>
</div>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea name="message" id="message" rows="3" class="form-control"></textarea>
</div>
<div class="form-group">
<input type="checkbox" id="rules" name="agreement" value="0">
<label for="rules">I agree to these terms and conditions</label>
</div>
<button class="btn btn-success btn-block">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="savestorage.min.js"></script>
<script>
$('#myform').saveStorage();
</script>
</body>
</html>