-
Notifications
You must be signed in to change notification settings - Fork 2
/
results.html
100 lines (92 loc) · 2.98 KB
/
results.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<title>Pancake: Search Results</title>
<!--link rel="apple-touch-icon" href="images/icon.png?v={{v}}"/ -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<script type="text/javascript">
// Replace `no-js` class with `js` class. Useful for preventing flash
// of unscripted content accessibly.
var h = document.getElementsByTagName('html')[0];
h.className = h.className.replace('no-js', 'js');
</script>
<style>
body { margin: 1em; }
.username.loggedin {
background-color: #cfb;
color: #006;
font-weight: bold;
font-style: normal;
}
.username {
display: inline-block;
padding: 2px;
color: #666;
font-style: italic;
}
#errorbar {
background: #fcc;
border: 1px solid #c00;
padding: 10px;
}
</style>
</head>
<body>
<section id="errorbar" data-bind="visible: errorMessage().length, text: errorMessage" style="display:none">
</section>
<section id="top_rated_section">
<h1>Top Rated</h1>
<p data-bind="visible: !topRated().length" style="display:none">No results for <span data-bind="text:settings.username"></span></p>
<ul id="results_top_rated" data-bind="foreach: topRated, visible: topRated().length, click: resultClick" style="display:none">
<li data-bind="attr: {'data-itemid': id}">
<span data-bind="text: id"></span>:
<span data-bind="text: title"></span>
</li>
</ul>
</section>
<section id="top_rated_section">
<h1>Web Results</h1>
<p data-bind="visible: !webResults().length" style="display:none">No results</p>
<ul id="results_web" data-bind="foreach: webResults, visible: webResults().length, click: resultClick">
<li data-bind="classlist: types, attr: {'data-itemid': id}">
<h4><a data-bind="attr: { href: url }, text: title"></a></h4>
<p data-bind="text: summary"></p>
</li>
</ul>
</section>
<nav id="sidebar">
<ul>
<li>[list]</li>
<li>[profile]</li>
<li>[people]</li>
<li>[world]</li>
<li>[pins]</li>
<li>[photos]</li>
</ul>
</nav>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<script src="./js/vendor/requirejs.js?v={{v}}"></script>
<script src="./js/config.js"></script>
<script>
config.appName = "results";
require.config({
// configure our AMD loader
baseUrl: './js',
paths: config.paths,
packages: config.packages,
waitSeconds: 20,
urlArgs: "r={{v}}" // r is a cache-busting token
});
console.log("bootstrapping for platform: ", config.platform, config);
require({
}, ['bootstrap'], function(env){
require([config.appName + '.app']);
});
</script>
<script src="https://login.persona.org/include.orig.js" type="text/javascript"></script>
</body>
</html>