forked from yacy/yacy_webclient_bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
170 lines (157 loc) · 8.36 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
<!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="/favicon.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="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>
<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()">
<!-- 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="#header_help_collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<ul class="nav navbar-nav">
<li><a id="navbar-homepage" class="navbar-brand" href="http://yacy.net">
<img id="logo" class="yacylogo" src="images/YaCyLogo2011_60.png" alt="YaCy" style="max-width:200px; max-height:32px">
</a>
</li>
<li><h1><span id="topmenu"></span></h1></li>
</ul>
</div>
<div id="header_help_collapse" 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"><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/YaCyLogo2011_60.png" 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>