forked from yacy/yacy_webclient_bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.html
200 lines (186 loc) · 9.85 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html>
<!--
(C) by Michael Peter Christen, mc (at) yacy.net
licensed under a Creative Commons Attribution 2.0 Generic License (CC-BY 2.0)
-->
<head>
<title id="title"></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<!-- scary MS stuff ahead to prevent that IE runs in "IE=EmulateIE10" mode which cannot run our JS code for some reason -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--
if you don't see the glyphicons in firefox and you opened this file from a local filesystem,
then a CORS security setting in firefox caused that.
No other browser is that strict and there is no work around. To see the glyphicons in firefox,
open about:config and set security.fileuri.strict_origin_policy to ‘false.’
-->
<link rel="shortcut icon" type="image/x-icon" href="/susper.ico" >
<meta name="Content-Language" content="English, Englisch" >
<meta name="keywords" content="YaCy HTTP search engine spider indexer java network open free download Mac Windows Linux Software development" >
<meta name="description" content="Software HTTP Freeware Home Page" >
<meta name="copyright" content="Michael Christen et al." >
<!-- Ensure proper rendering and touch zooming on mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="bootstrap/js/jquery.min.js" type="text/javascript" ></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript" ></script>
<script src="bootstrap/js/docs.min.js" type="text/javascript" ></script>
<script src="js/setup.js" type="text/javascript"></script> <!-- customization -->
<!-- Custom styles for this template, i.e. navigation (move this to base.css) -->
<link href="css/bootstrap-base.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="bootstrap/js/html5shiv.js"></script>
<script src="bootstrap/js/respond.min.js"></script>
<![endif]-->
<!-- old css styles -->
<link rel="stylesheet" type="text/css" media="all" href="css/base.css" >
<link rel="stylesheet" type="text/css" media="screen" href="css/style.css" >
<!--[if lt IE 6]>
<link rel="stylesheet" type="text/css" media="screen" href="css/oldie.css" >
<![endif]-->
<!--[if lte IE 6.0]>
<link rel="stylesheet" type="text/css" media="screen" href="css/ie6.css" >
<![endif]-->
<!--[if lte IE 7.0]>
<link rel="stylesheet" type="text/css" media="screen" href="css/ie7.css" >
<![endif]-->
<script type="text/javascript" src="./bootstrap/js/typeahead.jquery.min.js"></script>
<script type="text/javascript">
//<!--
var suggestMatcher = function() {
return function opensearch(q, cb) {
$.getJSON(suggestUrl + "&q="+ q, function(data) {
var parsed = [];
for (var i = 0; i < data[0][1].length; i++) {
var row = data[0][1][i];
if (row) {
parsed[parsed.length] = {
data: [row],
value: row,
result: row
};
};
};
cb(parsed);
});
};
};
$(document).ready(function() {
$('#search').typeahead({hint:false,highlight:true,minLength:1}, {
name: 'states',
displayKey: 'value',
source: suggestMatcher()
});
});
//-->
</script>
<link rel="search" type="application/opensearchdescription+xml" title="susper.com'" href="http://susper.com/susper.xml" >
<style type="text/css">.twitter-typeahead {margin: 0px;padding: 0px;top:2px;}</style> <!-- fix for input window -->
</head>
<body id="index" onload="document.getElementById('search').focus()">
<div id="set-susper-default">
<h3>Set Susper as your default search engine on Mozilla!</h3>
<ol>
<li><button id="install-susper">Install susper</button></li>
<li>Mark the checkbox to set Susper as your default search engine</li>
<li>Start searching!</li>
</ol>
<button id="cancel-installation">Cancel</button>
</div>
<script>
$(document).ready(function(){
var isFirefox = typeof InstallTrigger !== 'undefined';
if(isFirefox === false){
$("#set-susper-default").remove();
}
$("#set-susper-default").hide();
if(window.external && window.external.IsSearchProviderInstalled){
var isInstalled = window.external.IsSearchProviderInstalled("http://susper.com");
if(!isInstalled){
$("#set-susper-default").show();
}
}
$("#install-susper").on("click", function(){
window.external.AddSearchProvider("http://susper.com/susper.xml");
});
$("#cancel-installation").on("click", function(){
$("#set-susper-default").remove();
});
});
</script>
<!-- top navigation -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a id="navbar-homepage" class="navbar-brand" href="http://susper.com" style="position:absolute;top:-6px;display:inline;white-space:nowrap;">
<img id="logo" class="yacylogo" src="images/susper.svg" alt="YaCy" style="height:auto; width:auto; max-width:200px; max-height:32px;vertical-align:middle">
</a>
<span id="topmenu" style="position:absolute;top:12px;left:80px;display:inline;white-space:nowrap;font-size:2em;"></span>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li id="header_help" class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle" data-proofer-ignore><span class="glyphicon glyphicon-question-sign"></span></a>
<ul class="dropdown-menu">
<li id="header_profile"><a href="yacysearch/about.html">About This Page</a></li>
<li id="header_tutorial"><a href="http://yacy.net/tutorials/">YaCy Tutorials</a></li>
<li class="divider"></li>
<li id="header_download"><a href="http://yacy.net" target="_blank"><i>external</i> Download YaCy</a></li>
<li id="header_community"><a href="http://forum.yacy.de" target="_blank"><i>external</i> Community (Web Forums)</a></li>
<li id="header_wiki"><a href="http://wiki.yacy.de" target="_blank"><i>external</i> Project Wiki</a></li>
<li id="header_git"><a href="https://github.com/yacy/yacy_search_server/commits/master" target="_blank"><i>external</i> Git Repository</a></li>
<li id="header_bugs"><a href="http://bugs.yacy.net" target="_blank"><i>external</i> Bugtracker</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="starter-template">
<h2 class="yacy"><a href="http://yacy.net" class="yacylogo" id="homepage"><img src="images/susper.svg" alt="YaCy" id="biglogo" style="margin: auto;"></a></h2>
<h2 class="yacy" id="greeting"></h2>
<form class="search form-inline" action="yacysearch/index.html" method="get" id="searchform" accept-charset="UTF-8">
<fieldset class="maininput">
<div class="input-group">
<input name="query" id="search" type="text" size="40" maxlength="80" value="" autofocus="autofocus" onFocus="this.select()" class="form-control searchinput typeahead" >
<div class="input-group-btn">
<button id="Enter" name="Enter" class="btn btn-primary" type="submit">Search</button>
</div>
</div>
<input type="hidden" name="verify" value="false" >
<input type="hidden" name="nav" value="filetype,protocol,hosts,authors,collections,namespace,topics,date" >
<input type="hidden" name="startRecord" id="startRecord" value="0" >
<input type="hidden" name="indexof" value="off" >
<input type="hidden" name="meanCount" value="5" >
<input type="hidden" name="resource" value="global" >
<input type="hidden" name="prefermaskfilter" value="" >
<input type="hidden" name="maximumRecords" value="10" >
<input id="timezoneOffset" type="hidden" name="timezoneOffset" value="" >
</fieldset>
<script >document.getElementById("timezoneOffset").value = new Date().getTimezoneOffset();</script>
</form>
</div>
</div>
<!-- modify content according to query url attributes -->
<script type="text/javascript">
document.getElementById("title").appendChild(document.createTextNode(headline));
document.getElementById("topmenu").appendChild(document.createTextNode(headline));
document.getElementById("greeting").appendChild(document.createTextNode(greeting));
document.getElementById("navbar-homepage").setAttribute("href", homepage);
document.getElementById("homepage").setAttribute("href", homepage);
document.getElementById("logo").setAttribute("src", logo.replace("../",""));
document.getElementById("biglogo").setAttribute("src", logo.replace("../",""));
document.getElementById("search").setAttribute("placeholder", queryplaceholder);
</script>
</body>
</html>