-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (93 loc) · 3.44 KB
/
index.html
File metadata and controls
110 lines (93 loc) · 3.44 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!doctype html>
<html lang="en">
<head>
<title>HTML5 LocalStorage</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<script type="text/javascript" src="js/modernizr.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.0.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<!-- Header -->
<div id="header">
<!-- header text -->
<div id="header-text">
<h2>HTML5 Local Storage Experiment</h2>
</div>
<!-- about section -->
<div id="about">
<div class="margin-left-20">
<h4>About (Click me)</h4>
</div>
</div>
<!-- about drop down -->
<div id="aboutDropDown">
<strong>This is an experiment with using HTML5's local storage to store text in your browser.</strong><br>
This web application allows you build an item using the "Add" button at the bottom.<br>
You then name the item you're adding. Then add text to that item with the text box on the right.<br>
You can then save using the button on the bottom as well. <br>
This will save the text to your browser's local storage and will survive
page reloads and even closing your browser. <br>
Just come back to this webpage and your content should still be here.
(Unless you clear your browser cache. This will delete your content.)<br>
<a href="http://diveintohtml5.info/storage.html">Click here to learn more about HTML5 LocalStorage!</a>
</div>
</div>
<!-- Content -->
<div id="content">
<!-- Context container -->
<div class="container-fluid">
<!-- Content header -->
<div class="row-fluid">
<div class="span2">
<h4>List of items </h4>
</div>
<!-- Content -->
<div class="span10">
<h4>Item Content</h4>
</div>
</div>
<!-- Content Area -->
<div class="row-fluid">
<!-- Content Item List -->
<div id="itemList"class="span2">
</div>
<!-- Content -->
<div class="span10">
<div class="margin-right-20">
<textarea name="contentText" id="contentText"></textarea>
</div>
</div>
</div>
<!-- Controls -->
<div class="row-fluid">
<div class="offset2 span10">
<button id="addButton" class="btn btn-primary" onclick="$('#addModal').modal('show');">Add</button>
<button id="deleteButton" class="btn btn-danger">Delete</button>
<button id="saveButton" class="btn btn-primary">Save</button>
</div>
</div>
</div>
</div>
<div id="addModal" class="modal hide fade" role="dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Add Item</h3>
</div>
<div class="modal-body">
<strong>Item Name: </strong><br>
<input id="addNameInput" type="text" placeholder="Type something…">
</div>
<div class="modal-footer">
<a data-dismiss="modal" class="btn">Close</a>
<a class="btn btn-primary" onclick="addItem();">Save changes</a>
</div>
</div>
<div id="footer"></div>
</body>
</html>