forked from quentint/long-press
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (56 loc) · 2.96 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>TOKI WOKI. Long Press</title>
<meta name="description" content="Long Press">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/app.css">
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<div class=content>
<h1>Long Press <small style="font-size: small;">by <a href="http://toki-woki.net">TOKI WOKI</a>.</small></h1>
<textarea class=long-press id="ta" placeholder="Hello"></textarea>
<p>Write in the above field and <strong>hold key</strong> to access alternate characters.<br />
Try ‘a’, ‘e’, ‘u’, ‘i’, ‘o’ or ‘$’ for example.</p>
<p>Pick letter by:
<ul>
<li>using mouse wheel;</li>
<li>hovering over it with your mouse;</li>
<li>using arrow keys.</li>
</ul>
Release key to confirm choice.</p>
<h2>Note</h2>
<p>I wrote this plugin because I wanted to be able to insert rare characters as easily as on Android or iOS.
I learned pretty quickly after doing it that Mountain Lion already offers such a feature. This is called reinventing the wheel...</p>
<h2>Source</h2>
<p>Available on <a href="https://github.com/quentint/long-press">GitHub</a>.</p>
<h2>Licence</h2>
<p><a href="http://opensource.org/licenses/mit-license.php">The MIT License</a>.</p>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.2.min.js"><\/script>')</script>
<script src="js/jquery.mousewheel.js"></script>
<script src="js/plugins.js"></script>
<script src="js/jquery.longpress.js"></script>
<script src="js/app.js"></script>
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-114773-6']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>