-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
84 lines (84 loc) · 3.33 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
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Chuanr Testing</title>
<link href='http://fonts.googleapis.com/css?family=Noto+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="./res/main.css">
</head>
<body>
<script type="text/javascript" src="./res/require.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<h1>CHUANR</h1>
<section>
<div class='wizard'>
Type in below <INPUT /> box, Chuanr will masking and formatting against <span id="btn-patterns" class='highlight patterns'>patterns</span> .
</div>
</section>
<section class='options'>
<form action="">
<fieldset>
<legend>
Demo Options
</legend>
<label for="placeholder">Use Underline as Placeholder</label> <input name="placeholder" class="small" id="chk-placeholder" type="checkbox" />
</fieldset>
</form>
</section>
<section>
<form id="form" action="http://httpbin.org/post" method="POST">
<div class="field">
<input id="firstname" name="firstname" type="text" placeholder="First Name" />
<div class="firstname tip"></div>
</div>
<div class="field">
<input id="lastname" name="lastname" type="text" placeholder="Last Name" />
<div class="lastname tip"></div>
</div>
<div class="field">
<input id="phone" name="phone" type="text" placeholder="Phone Number" value="(11) 7000-2999" />
<div class="phone tip"></div>
</div>
<div class="field">
<input id="creditcard" name="creditcard" type="text" placeholder="Credit card" />
<div class="creditcard tip"></div>
</div>
<div class="field">
<button id="btn-check">Check Validity and Submit</button>
</div>
</form>
</section>
<section class="info">
<div class="inner">
<pre id="message-box" class="message">no error</pre>
</div>
</section>
<hr class="hrz" />
<section>
<fieldset>
<legend>Playground and test field</legend>
<label for="patterns">Your patterns:</label><br />
<textarea id="patterns" class="patterns" name="patterns">
{dd}-{dddd}
~|\d{5}[1-5]
</textarea>
</fieldset>
</section>
<section>
<form class="playground">
<div class="field">
<input class="test" placeholder="Test it here" name="test" value="" />
</div>
<div class="field">
<button id="btn-check">Check Validity</button>
</div>
</form>
</section>
<hr class="hrz" />
<section>
For usage and more information, please refer to our <a class="link-to-github" href="#">Github Page</a>.
</section>
<script type="text/javascript" src="./res/init.js"></script>
<a href="#" class="link-to-github"><img style="position: absolute; top: 0; right: 30px; border: 0;" src="https://github.com/jamesflorentino/fork-ribbons/raw/master/ribbons/orange-black.png" alt="Fork me on GitHub"></a>
</body>
</html>