2020-04-07 20:12:16 +00:00
|
|
|
<html>
|
2021-04-16 14:16:14 +00:00
|
|
|
<head>
|
|
|
|
<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">
|
|
|
|
<meta name="referrer" content="no-referrer">
|
|
|
|
<meta name="msapplication-TileColor" content="#ffffff">
|
|
|
|
<meta name="msapplication-TileImage" content="static/img/favicon/ms-icon-144x144.png">
|
|
|
|
<script type="text/javascript" src="static/js/autocomplete.js"></script>
|
|
|
|
<script type="text/javascript" src="static/js/controller.js"></script>
|
|
|
|
<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Whoogle Search">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="stylesheet" href="static/css/variables.css">
|
|
|
|
<link rel="stylesheet" href="static/css/main.css">
|
|
|
|
<link rel="stylesheet" href="static/css/{{ 'dark' if config.dark else 'light' }}-theme.css"/>
|
|
|
|
<noscript>
|
|
|
|
<style>
|
|
|
|
#main { display: inherit !important; }
|
|
|
|
.content { max-height: 720px; padding: 18px; border-radius: 10px; }
|
|
|
|
.collapsible { display: none; }
|
|
|
|
</style>
|
|
|
|
</noscript>
|
|
|
|
<style>{{ config.style }}</style>
|
|
|
|
<title>Whoogle Search</title>
|
|
|
|
</head>
|
|
|
|
<body id="main" style="display: none; background-color: {{ '#000' if config.dark else '#fff' }}">
|
|
|
|
<div class="search-container">
|
|
|
|
<div class="logo-container">
|
|
|
|
{{ logo|safe }}
|
|
|
|
</div>
|
|
|
|
<form id="search-form" action="search" method="{{ 'get' if config.get_only else 'post' }}">
|
|
|
|
<div class="search-fields">
|
|
|
|
<div class="autocomplete">
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="q"
|
|
|
|
id="search-bar"
|
|
|
|
class="home-search"
|
|
|
|
autofocus="autofocus"
|
|
|
|
autocapitalize="none"
|
|
|
|
spellcheck="false"
|
|
|
|
autocorrect="off"
|
|
|
|
autocomplete="off">
|
|
|
|
</div>
|
|
|
|
<input type="submit" id="search-submit" value="Search">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% if not config_disabled %}
|
|
|
|
<br/>
|
|
|
|
<button id="config-collapsible" class="collapsible">Configuration</button>
|
|
|
|
<div class="content">
|
2021-04-27 14:36:03 +00:00
|
|
|
<div class="config-fields">
|
2021-04-16 14:16:14 +00:00
|
|
|
<form id="config-form" action="config" method="post">
|
2021-04-27 14:36:03 +00:00
|
|
|
<div class="config-div config-div-ctry">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-ctry">Filter Results by Country: </label>
|
|
|
|
<select name="ctry" id="config-ctry">
|
2021-04-27 14:36:03 +00:00
|
|
|
{% for ctry in countries %}
|
2021-04-16 14:16:14 +00:00
|
|
|
<option value="{{ ctry.value }}"
|
|
|
|
{% if ctry.value in config.ctry %}
|
|
|
|
selected
|
|
|
|
{% endif %}>
|
2021-04-27 14:36:03 +00:00
|
|
|
{{ ctry.name }}
|
2021-04-16 14:16:14 +00:00
|
|
|
</option>
|
2021-04-27 14:36:03 +00:00
|
|
|
{% endfor %}
|
2021-04-16 14:16:14 +00:00
|
|
|
</select>
|
|
|
|
<div><span class="info-text"> — Note: If enabled, a website will only appear in the results if it is *hosted* in the selected country.</span></div>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-lang">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-lang-interface">Interface Language: </label>
|
|
|
|
<select name="lang_interface" id="config-lang-interface">
|
2021-04-27 14:36:03 +00:00
|
|
|
{% for lang in languages %}
|
|
|
|
<option value="{{ lang.value }}"
|
2021-04-16 14:16:14 +00:00
|
|
|
{% if lang.value in config.lang_interface %}
|
2021-04-27 14:36:03 +00:00
|
|
|
selected
|
2021-04-16 14:16:14 +00:00
|
|
|
{% endif %}>
|
|
|
|
{{ lang.name }}
|
2021-04-27 14:36:03 +00:00
|
|
|
</option>
|
|
|
|
{% endfor %}
|
2021-04-16 14:16:14 +00:00
|
|
|
</select>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-search-lang">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-lang-search">Search Language: </label>
|
|
|
|
<select name="lang_search" id="config-lang-search">
|
2021-04-27 14:36:03 +00:00
|
|
|
{% for lang in languages %}
|
|
|
|
<option value="{{ lang.value }}"
|
2021-04-16 14:16:14 +00:00
|
|
|
{% if lang.value in config.lang_search %}
|
2021-04-27 14:36:03 +00:00
|
|
|
selected
|
2021-04-16 14:16:14 +00:00
|
|
|
{% endif %}>
|
|
|
|
{{ lang.name }}
|
2021-04-27 14:36:03 +00:00
|
|
|
</option>
|
|
|
|
{% endfor %}
|
2021-04-16 14:16:14 +00:00
|
|
|
</select>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-near">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-near">Near: </label>
|
|
|
|
<input type="text" name="near" id="config-near" placeholder="City Name" value="{{ config.near }}">
|
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-block">
|
|
|
|
<label for="config-block">Block: </label>
|
|
|
|
<input type="text" name="block" id="config-block" placeholder="Comma-separated site list" value="{{ config.block }}">
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-nojs">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-nojs">Show NoJS Links: </label>
|
|
|
|
<input type="checkbox" name="nojs" id="config-nojs" {{ 'checked' if config.nojs else '' }}>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-dark">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-dark">Dark Mode: </label>
|
|
|
|
<input type="checkbox" name="dark" id="config-dark" {{ 'checked' if config.dark else '' }}>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-safe">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-safe">Safe Search: </label>
|
|
|
|
<input type="checkbox" name="safe" id="config-safe" {{ 'checked' if config.safe else '' }}>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-alts">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label class="tooltip" for="config-alts">Replace Social Media Links: </label>
|
|
|
|
<input type="checkbox" name="alts" id="config-alts" {{ 'checked' if config.alts else '' }}>
|
|
|
|
<div><span class="info-text"> — Replaces Twitter/YouTube/Instagram/Reddit links
|
2021-04-27 14:36:03 +00:00
|
|
|
with Nitter/Invidious/Bibliogram/Libreddit links.</span></div>
|
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-new-tab">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-new-tab">Open Links in New Tab: </label>
|
|
|
|
<input type="checkbox" name="new_tab" id="config-new-tab" {{ 'checked' if config.new_tab else '' }}>
|
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-view-image">
|
|
|
|
<label for="config-view-image">Full Size Image Search: </label>
|
|
|
|
<input type="checkbox" name="view_image" id="config-view-image" {{ 'checked' if config.view_image else '' }}>
|
|
|
|
<div><span class="info-text"> — (Experimental) Adds the "View Image" option on desktop to view full size images in search results.
|
|
|
|
This will cause image result thumbnails to be lower resolution.</span></div>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-tor">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-tor">Use Tor: {{ '' if tor_available else 'Unavailable' }}</label>
|
|
|
|
<input type="checkbox" name="tor" id="config-tor" {{ '' if tor_available else 'hidden' }} {{ 'checked' if config.tor else '' }}>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-get-only">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-get-only">GET Requests Only: </label>
|
|
|
|
<input type="checkbox" name="get_only" id="config-get-only" {{ 'checked' if config.get_only else '' }}>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-root-url">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-url">Root URL: </label>
|
|
|
|
<input type="text" name="url" id="config-url" value="{{ config.url }}">
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div config-div-custom-css">
|
2021-04-16 14:16:14 +00:00
|
|
|
<label for="config-style">Custom CSS:</label>
|
|
|
|
<textarea
|
|
|
|
name="style"
|
2021-04-27 14:36:03 +00:00
|
|
|
id="config-style"
|
|
|
|
autocapitalize="off"
|
|
|
|
autocomplete="off"
|
|
|
|
spellcheck="false"
|
|
|
|
autocorrect="off"
|
|
|
|
value="">
|
|
|
|
{{ config.style }}
|
2021-04-16 14:16:14 +00:00
|
|
|
</textarea>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="config-div">
|
2021-04-16 14:16:14 +00:00
|
|
|
<input type="submit" id="config-load" value="Load">
|
|
|
|
<input type="submit" id="config-submit" value="Apply">
|
|
|
|
<input type="submit" id="config-save" value="Save As...">
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
2021-04-16 14:16:14 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2021-04-27 14:36:03 +00:00
|
|
|
</div>
|
2021-04-16 14:16:14 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<footer>
|
2021-04-09 15:00:02 +00:00
|
|
|
<p style="color: {{ 'var(--whoogle-dark-text)' if config.dark else 'var(--whoogle-text)' }};">
|
|
|
|
Whoogle Search v{{ version_number }} ||
|
|
|
|
<a id="gh-link" href="https://github.com/benbusby/whoogle-search">View on GitHub</a>
|
|
|
|
</p>
|
2021-04-16 14:16:14 +00:00
|
|
|
</footer>
|
|
|
|
</body>
|
2020-04-07 20:12:16 +00:00
|
|
|
</html>
|