-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle-02-b.html
112 lines (93 loc) · 3.61 KB
/
single-02-b.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
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=620" />
<title>Summarization Viewer</title>
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/theme/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<link rel="stylesheet" type="text/css" href="css/summary-02.css" />
</head>
<body>
<div class='article-pane'>
<article id='article'></article>
</div>
<div class='control-pane'>
<div class='controls ui-layout-north'>
<div class='buttons'>
<label for="show" class="label-primary">View</label>
<input name="view" id="view-all" type="radio" value="all" />
<label for="view-all">all</label>
<input name="view" id="view-flagged" type="radio" value="flagged" />
<label for="view-flagged">flagged</label>
<input name="view" id="view-normal" type="radio" value="normal"
checked="true" />
<label for="view-normal">normal</label>
</div>
<div class='buttons'>
<label for="threshold" class="label-primary">Threshold</label>
<input name="threshold" id="threshold-none" type="radio" value="0" />
<label for="threshold-none">none</label>
<input name="threshold" id="threshold-low" type="radio" value="25" />
<label for="threshold-low">low</label>
<input name="threshold" id="threshold-medium" type="radio" value="50" />
<label for="threshold-medium">medium</label>
<input name="threshold" id="threshold-high" type="radio" value="75" />
<label for="threshold-high">high</label>
</div>
</div>
</div>
</body>
<!-- Templates { -->
<!-- 'keywords' is an array of XML nodes -->
<script id='tmpl-header-keywords' type='text/x-jquery-tmpl'>
<div class='keywords'>
{{each keywords}}
<div class='keyword'
name='${$($value).attr('name')}'
rank='${$($value).attr('rank')}'>${$($value).text()}</div>
{{/each}}
</div>
</script>
<!-- 'node' is a jQuery object encapsulating an XML node -->
<script id='tmpl-sentence-text' type='text/x-jquery-tmpl'>
<span class='text'>${node.text()}</span>
</script>
<!-- 'node' is a jQuery object encapsulating an XML node -->
<script id='tmpl-sentence-keyword' type='text/x-jquery-tmpl'>
<span class='keyword'
name='${node.attr('name')}'>${node.text()}</span>
</script>
<script id='tmpl-sentence-rank' type='text/x-jquery-tmpl'>
<div class='rank'>${rank}</div>
</script>
<script id='tmpl-sentence-controls' type='text/x-jquery-tmpl'>
<div class='controls'><div
class='expand ui-icon ui-icon-plus' title='expand' /><div
class='flag ui-icon ui-icon-flag' title='flag' /><div
class='hide ui-icon ui-icon-cancel' title='hide' /></div>
</script>
<script id='tmpl-selection-controls' type='text/x-jquery-tmpl'>
<div class='selection-controls ui-corner-all'><div
class='highlight ui-icon ui-icon-document-b' title='highlight' /><div
class='tag ui-icon ui-icon-tag' title='tag' /></div>
</script>
<!-- Templates } -->
<script src='js/jquery.min.js'></script>
<script src='js/jquery.tmpl.min.js'></script>
<script src='js/jquery.delegateHoverIntent.js'></script>
<script src='js/jquery-ui.js'></script>
<script src='js/rangy.min.js'></script>
<script src='js/rangy/serializer.min.js'></script>
<script src='js/rangy/cssclassapplier.js'></script>
<script src='js/jquery.summary-02.js'></script>
<script>
(function($) {
$('#article').summary({
//src: 'samples/0001.html',
metadata: 'samples/0001.xml'
});
}(jQuery));
</script>
</html>