-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
72 lines (69 loc) · 3.88 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Formsaver Demo</title>
<meta name="theme-color" content="#2196F3">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/wingcss/0.1.9/wing.min.css
">
<style>select {background-color: transparent;height: 40px;}</style><!-- https://github.com/KingPixil/wing/pull/5 -->
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12"><h1>🚒 Formsaver</h1></div>
</div>
<div class="row">
<div class="col-6">
<h2>👓 What it does</h2>
<p style="text-align: justify;">
Remember when you just filled out a form and you just closed your browser and your whole form data is gone?<br>
So some browsers already can restore form values, but this doesn't work anytime. So with Formsaver it saves all values in your browsers <a href="https://developer.mozilla.org/docs/Web/API/Window/localStorage">localStorage</a> - where data has no expiration time.<br>
You can turn off your computer and the data is still saved in your browser.<br>Just load the page and Formsaver will load the data in the fields.
</p>
<h2>📒 Notes</h2>
<p>
This is just a one day project. Don't expect this will work in Internet Explorer 🙈
</p>
</div>
<div class="col-6">
<h2>✍🏼 Demo Form</h2>
<form action="" method="post" accept-charset="utf-8" style="max-width: 500px;">
<label>Your Name: <input type="text" name="name" required></label>
<label>Your Email: <input type="email" name="tel" required></label>
<label>Category of your story:
<select name="category" required>
<option>Bedtime</option>
<option>Adventure/Action</option>
<option>Love</option>
<option>Funny</option>
<option>Drama</option>
</select>
</label>
<label></label>
<label>Your story:
<textarea name="story" required></textarea>
</label>
<label>
<input type="checkbox" name="mystory" required> I'm the author of this story.
</label>
<br>
<input type="submit" value="Submit your story" class="pull-right" style="background: #2196F3">
<input type="reset" value="Reset" class="btn pull-right" style="background: #C62828">
</form>
</div>
</div>
<div class="row">
<div class="col-12">
<footer class="text-center" style="font-size: 12px;color: #777;">
Styled with <a href="http://usewing.ml/">Wing</a> ❤️
</footer>
</div>
</div>
</div>
<script src="formsaver.js" type="text/javascript" charset="utf-8"></script>
<script src="app.js" type="text/javascript" charset="utf-8"></script>
<script src="https://cdn.rawgit.com/CodeBrauer/ebf5d310e4703b1186e7384ca1e1405d/raw/c5c1e53a82ae8370979007f8db345870e1782b78/githubcorner.js"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-59784112-5', 'auto');ga('set', 'anonymizeIp', true);ga('send', 'pageview');</script>
</body>
</html>