-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (78 loc) · 2.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
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<title>App Testing Page</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/index.css">
<style>
/* Special styles that override linked stylesheets. */
table.events {
table-layout: fixed;
width: 100%;
}
table.events,
table.events tr,
table.events td {
border: 1px solid black;
}
</style>
</head>
<body id="PageBody">
<div id="AppWrapper">
<h1>AppLite</h1>
<p>
This is purely for testing the JavaScript app.
</p>
<h2>Template <span id="test">Testing</span></h2>
<div id="TestArea">
</div>
<div id="TestArea2">
</div>
<div id="TestArea3">
</div>
<template data-template-for="TestArea3" data-engine="default">
<p>What's the animal's name? It's...</p>
<p><span data-context="animal.name"></span>
and it has <span data-context="animal.legs"></span> legs!
</p>
</template>
<button data-click="hello">Say Hi</button>
<p>
<table class="events">
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
</tr>
<tr data-click="howdy">
<td>Table Data 1</td>
<td>Table Data 2</td>
</tr>
</table>
</p>
<hr>
<h2>Binding Tests</h2>
<hr>
<div data-bind="receive:template">
<template>
<h2>Places:</h2>
<ul>
{{#places}}
<li>{{.}}</li>
{{/places}}
</ul>
</template>
</div>
<div>
<label for="SomeTextInput">Enter Some Text</label>
<input type="text" id="SomeTextInput" data-bind="send:value" data-context="someText" data-bind-on="keyup">
<hr>
<p data-bind="receive:innerHTML" data-context="someText"></p>
</div>
</div>
<template id="TestTemplate" data-template-for="TestArea2" data-engine="mustache">
<h2>{{value}}</h2>
</template>
<script type="module" src="./_setup.js"></script>
</body>
</html>