2020-04-07 20:12:16 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2020-04-12 20:26:32 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="57x57" href="/static/img/favicon/apple-icon-57x57.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="60x60" href="/static/img/favicon/apple-icon-60x60.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="72x72" href="/static/img/favicon/apple-icon-72x72.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="76x76" href="/static/img/favicon/apple-icon-76x76.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="114x114" href="/static/img/favicon/apple-icon-114x114.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="120x120" href="/static/img/favicon/apple-icon-120x120.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="144x144" href="/static/img/favicon/apple-icon-144x144.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="152x152" href="/static/img/favicon/apple-icon-152x152.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/static/img/favicon/apple-icon-180x180.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="192x192" href="/static/img/favicon/android-icon-192x192.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="96x96" href="/static/img/favicon/favicon-96x96.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/static/img/favicon/favicon-16x16.png">
|
|
|
|
<link rel="manifest" href="/static/img/favicon/manifest.json">
|
2020-05-06 00:28:43 +00:00
|
|
|
<meta name="referrer" content="no-referrer">
|
2020-04-12 20:26:32 +00:00
|
|
|
<meta name="msapplication-TileColor" content="#ffffff">
|
|
|
|
<meta name="msapplication-TileImage" content="/static/img/favicon/ms-icon-144x144.png">
|
2020-05-24 20:03:11 +00:00
|
|
|
<script type="text/javascript" src="/static/js/autocomplete.js"></script>
|
2020-04-07 20:12:16 +00:00
|
|
|
<script type="text/javascript" src="/static/js/controller.js"></script>
|
2020-05-05 00:00:43 +00:00
|
|
|
<link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Whoogle Search">
|
2020-04-07 20:12:16 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2020-05-24 20:03:11 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/search.css">
|
2020-04-07 20:12:16 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/main.css">
|
2020-05-05 00:00:43 +00:00
|
|
|
<title>Whoogle Search</title>
|
2020-04-07 20:12:16 +00:00
|
|
|
</head>
|
2020-05-25 16:33:24 +00:00
|
|
|
<body id="main" style="display: none; background-color: {{ '#000' if dark_mode else '#fff' }}">
|
2020-04-07 20:12:16 +00:00
|
|
|
<div class="search-container">
|
|
|
|
<img class="logo" src="/static/img/logo.png">
|
2020-05-24 20:03:11 +00:00
|
|
|
<form id="search-form" action="/search" method="{{ request_type }}">
|
2020-04-29 00:19:34 +00:00
|
|
|
<div class="search-fields">
|
2020-05-24 20:03:11 +00:00
|
|
|
<div class="autocomplete">
|
|
|
|
<input type="text" name="q" id="search-bar" autofocus="autofocus">
|
|
|
|
</div>
|
2020-04-29 16:03:34 +00:00
|
|
|
<input type="submit" id="search-submit" value="Search">
|
2020-04-29 00:19:34 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2020-04-07 20:12:16 +00:00
|
|
|
<br/>
|
2020-04-08 18:47:21 +00:00
|
|
|
<button id="config-collapsible" class="collapsible">Configuration</button>
|
|
|
|
<div class="content">
|
|
|
|
<div class="config-fields">
|
2020-04-29 02:50:12 +00:00
|
|
|
<form action="/config" method="post">
|
|
|
|
<div class="config-div">
|
|
|
|
<!-- TODO: Add option to regenerate user agent? -->
|
|
|
|
<span class="ua-span">User Agent: {{ ua }}</span>
|
|
|
|
</div>
|
2020-05-23 20:27:23 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-ctry">Country: </label>
|
|
|
|
<select name="ctry" id="config-ctry">
|
|
|
|
{% for ctry in countries %}
|
|
|
|
<option value="{{ ctry.value }}"
|
|
|
|
{% if ctry.value in current_ctry %}
|
|
|
|
selected
|
|
|
|
{% endif %}>
|
|
|
|
{{ ctry.name }}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
2020-05-12 23:15:53 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-lang">Language: </label>
|
|
|
|
<select name="lang" id="config-lang">
|
|
|
|
{% for lang in languages %}
|
|
|
|
<option value="{{ lang.value }}"
|
|
|
|
{% if lang.value in current_lang %}
|
|
|
|
selected
|
|
|
|
{% endif %}>
|
|
|
|
{{ lang.name }}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
2020-04-29 02:50:12 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-near">Near: </label>
|
|
|
|
<input type="text" name="near" id="config-near" placeholder="City Name">
|
|
|
|
</div>
|
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-nojs">Show NoJS Links: </label>
|
|
|
|
<input type="checkbox" name="nojs" id="config-nojs">
|
|
|
|
</div>
|
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-dark">Dark Mode: </label>
|
|
|
|
<input type="checkbox" name="dark" id="config-dark">
|
|
|
|
</div>
|
2020-05-23 20:27:23 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-safe">Safe Search: </label>
|
|
|
|
<input type="checkbox" name="safe" id="config-safe">
|
|
|
|
</div>
|
2020-05-15 22:10:31 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-new-tab">Open Links in New Tab: </label>
|
|
|
|
<input type="checkbox" name="new_tab" id="config-new-tab">
|
|
|
|
</div>
|
2020-05-13 06:19:51 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-get-only">GET Requests Only: </label>
|
|
|
|
<input type="checkbox" name="get_only" id="config-get-only">
|
|
|
|
</div>
|
2020-05-10 19:27:02 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<label for="config-url">Root URL: </label>
|
|
|
|
<input type="text" name="url" id="config-url" value="">
|
|
|
|
</div>
|
2020-04-29 02:50:12 +00:00
|
|
|
<div class="config-div">
|
|
|
|
<input type="submit" id="config-submit" value="Save">
|
|
|
|
</div>
|
|
|
|
</form>
|
2020-04-08 18:47:21 +00:00
|
|
|
</div>
|
2020-04-07 20:12:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-20 17:02:30 +00:00
|
|
|
<footer>
|
2020-05-25 16:33:24 +00:00
|
|
|
<p style="color: {{ '#fff' if dark_mode else '#000' }};">
|
|
|
|
Whoogle Search v{{ version_number }} ||
|
|
|
|
<a style="color: #685e79" href="https://github.com/benbusby/whoogle-search">View on GitHub</a>
|
|
|
|
</p>
|
2020-05-20 17:02:30 +00:00
|
|
|
</footer>
|
2020-04-07 20:12:16 +00:00
|
|
|
</body>
|
|
|
|
</html>
|