-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
48 lines (42 loc) · 1.22 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Livefield Spec Runner</title>
<!-- lib -->
<script src="lib/handlebars.1.0.0.beta.3.js"></script>
<script src="lib/jquery-1.6.1.min.js"></script>
<!-- src -->
<link rel="stylesheet" href="src/livefield.css" />
<script src="src/livefield.js"></script>
</head>
<body>
<p style="text-align: right">Run the <a href="spec.html">spec</a>.</p>
<input
id="top-input"
type="text"
data-store="spec/fixtures/my_store.json"
data-template="#livefield-result-template"
style="position: absolute; top: 10px; left: 10px; width: 600px"
autofocus
/>
<input
id="bottom-input"
type="text"
data-store="spec/fixtures/my_store.json"
data-template="#livefield-result-template"
style="position: absolute; left: 10px; bottom: 10px; width: 600px;"
autofocus
/>
<script type="template/handlebars" id="livefield-result-template">
<li data-value="{{path}}">
<span class="name">{{name}}</span>
<span class="path">{{path}}</span>
</li>
</script>
<script>
$('#top-input').livefield();
$('#bottom-input').livefield();
</script>
</body>
</html>