-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (109 loc) · 4.73 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Tests</title>
<script src="Content/Tests.head.js"></script>
<link rel="stylesheet" href="Content/Tests.css" />
<link rel="stylesheet" href="Styles.css" />
</head>
<body style="visibility: hidden">
<header>
<h1>WinJS Samples</h1>
<div data-win-control="WinJS.UI.SearchBox"></div>
</header>
<div data-win-control="WinJS.UI.Hub">
<div data-win-control="WinJS.UI.HubSection" data-win-options="
{
header : 'ListView',
isHeaderStatic : true
}
">
<div id="tileTemplate" data-win-control="WinJS.Binding.Template" style="display: none">
<div class="tile">
<h1 data-win-bind="textContent: Letter"></h1>
</div>
</div>
<div data-win-control="WinJS.UI.ListView" data-win-options="
{
itemDataSource : Resources.Tiles.dataSource,
itemTemplate : select('#tileTemplate'),
layout: {
type : WinJS.UI.GridLayout,
orientation : WinJS.UI.Orientation.vertical
},
selectionMode : 'none',
itemsReorderable : true
}
"></div>
<h3>Description</h3>
<p>ListView allows you to display large amounts of data in a customizable list.</p>
</div>
<div data-win-control="WinJS.UI.HubSection" data-win-options="
{
header : 'ToggleSwitch',
isHeaderStatic : true
}
">
<button id="toggleAll">Toggle all</button>
<div data-win-control="WinJS.UI.ToggleSwitch" data-win-options="
{
title : 'Wi-Fi',
checked : true
}
"></div>
<div data-win-control="WinJS.UI.ToggleSwitch" data-win-options="
{ title: 'NFC' }
"></div>
<h3>Description</h3>
<p>A control that lets the user switch an option between two states.</p>
</div>
<div data-win-control="WinJS.UI.HubSection" data-win-options="{header: 'FlipView', isHeaderStatic: true}">
<div id="imageTemplate" data-win-control="WinJS.Binding.Template" style="display: none">
<div class="image">
<h2 data-win-bind="textContent: Title"></h2>
<img width="480" height="272" data-win-bind="src: Url" />
</div>
</div>
<div data-win-control="WinJS.UI.FlipView" data-win-options="
{
itemDataSource : Resources.Images.dataSource,
itemTemplate : select('#imageTemplate')
}
"></div>
<h3>Description</h3>
<p>Displays a collection, such as a set of photos, one item at a time.</p>
</div>
<div data-win-control="WinJS.UI.HubSection" data-win-options="
{
header : 'Pivot',
isHeaderStatic : true
}
">
<div data-win-control="WinJS.UI.Pivot" data-win-options="
{ title : 'SETTINGS' }
">
<div data-win-control="WinJS.UI.PivotItem" data-win-options="
{ header : 'system' }
">
<div data-win-control="WinJS.UI.Repeater" data-win-options="
{ data : Resources.Settings }
">
<h2 class="setting" data-win-bind="textContent: Name"></h2>
</div>
</div>
<div data-win-control="WinJS.UI.PivotItem" data-win-options="
{ header : 'applications' }
">
<div data-win-control="WinJS.UI.Repeater" data-win-options="
{ data : Resources.ApplicationSettings }
">
<h2 class="setting" data-win-bind="textContent: Name"></h2>
</div>
</div>
</div>
</div>
</div>
<script src="Content/Tests.min.js"></script>
</body>
</html>