-
Notifications
You must be signed in to change notification settings - Fork 87
/
index.html
87 lines (69 loc) · 3 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
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Stretchy: Form element autosizing, the way it should be.</title>
<link rel="icon" href="logo.svg#cat">
<link rel="stylesheet" href="style.css" />
<script type="module" src="https://md-block.verou.me/md-block.js"></script>
</head>
<body>
<header>
<h1><iframe src="logo.svg#beige"></iframe></h1>
<div>
<p>Form element autosizing,<br /> the way it should be.</p>
<nav>
<ul>
<li><a href="#features">Features</a></li>
<li><a href="#examples">Examples</a></li>
<li><a href="#usage">Usage</a></li>
<li><a href="test.html">Testsuite</a></li>
<li><a href="https://github.com/leaverou/stretchy" target="_blank">Github</a></li>
</ul>
</nav>
</div>
</header>
<section id="examples">
<h1>Examples</h1>
<label>Textarea:
<textarea placeholder="Type here too"></textarea>
</label>
<label>Input with placeholder:
<input placeholder="Type some text" />
</label>
<label>Input with intial value:
<input value="Some text" />
</label>
<label>Number input:
<input type="number" value="-10" step="10" />
</label>
<label>Select:
<select>
<option>CSS</option>
<option>JavaScript</option>
<option>HTML</option>
<option>SVG</option>
<option>WAI-ARIA</option>
</select>
</label>
<p>More examples in the <a href="test.html">testsuite</a>.</p>
</section>
<md-block src="README.md" hlinks>
[Documentation on GitHub](https://github.com/leaverou/stretchy/#readme)
</md-block>
<footer>
Made with ♥ by <a href="http://lea.verou.me">Lea Verou</a>
• <a href="http://lea.verou.me/2015/07/stretchy-form-element-autosizing-the-way-it-should-be">About</a>
• <a href="javascript:(function(script){script.src='https://leaverou.github.io/stretchy/stretchy.min.js';document.body.appendChild(script);})(document.createElement('script'))">Use as a bookmarklet!</a>
<a href="https://github.com/LeaVerou/stretchy" class="github-ribbon">Fork me on GitHub</a>
<div class="social-media">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="LeaVerou">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<iframe src="https://ghbtns.com/github-btn.html?user=leaverou&repo=stretchy&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="97" height="20"></iframe>
<iframe style='vertical-align: middle' src="https://ghbtns.com/github-btn.html?user=leaverou&repo=stretchy&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
</div>
</footer>
<script async src="https://cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=leaveroume" id="_carbonads_js"></script>
<script src="dist/stretchy.iife.js" async></script>
</body>
</html>