-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (77 loc) · 2.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pickles - Advanced Feature Viewer</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" href="styles/master.css" type="text/css">
<script src="scripts/jquery-1.7.1.js"></script>
<script src="scripts/knockout-2.0.0.debug.js"></script>
<script src="scripts/knockout.mapping-latest.debug.js"></script>
<!--<script src="scripts/app.js"></script>-->
<!--conditional comments -->
<!--[if IE]>
<script src="js/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div id="top"> </div>
<div class="toc"> </div>
<div class="features">
<div class="filterbox">
<p>
Filter by features containing this text:
<b data-bind="visible: !filtering(), text: filterText, click: filter"> </b>
<input data-bind="visible: filtering, value: filterText, hasfocus: filtering" />
</p>
</div>
<!-- ko foreach: featureSet.Features -->
<div class="feature">
<div class="tags" data-bind="visible: Feature.Tags">
<ul data-bind="foreach: Feature.Tags">
<li class="tag" data-bind="text: $data"></li>
</ul>
</div>
<h1>Feature: <span data-bind="text: Feature.Name"></span></h1>
<p data-bind="text: Feature.Description"></p>
<ul class="scenarios" data-bind="foreach: Feature.FeatureElements">
<li class="scenario">
<div class="scenario-heading">
<div class="tags" data-bind="visible: Tags">
<ul data-bind="foreach: Tags">
<li class="tag" data-bind="text: $data"></li>
</ul>
</div>
<h2 data-bind="text: Name"></h2>
<p data-bind="text: Description"></p>
</div>
<div class="steps">
<ul data-bind="foreach: Steps">
<li class="step">
<span class="keyword" data-bind="text: NativeKeyword"></span>
<span data-bind="text: Name"></span>
</li>
</ul>
</div>
</li>
</ul>
</div>
<!-- /ko -->
</div>
<div class="footer"></div>
</div>
<script type="text/javascript">
var data = $.getJSON("data/pickledFeatures.json", function(data) {
var viewModel = {
featureSet : ko.mapping.fromJS(data),
filtering: ko.observable(false),
filterText: ko.observable("select text to filter features"),
filter : function() { this.filtering(true) }
};
ko.applyBindings(viewModel);
});
</script>
</body>
</html>