304 lines
16 KiB
HTML
304 lines
16 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
|
||
|
|
||
|
<link rel="apple-touch-icon" sizes="180x180" href="static/img/favicon/apple-touch-icon.png">
|
||
|
<link rel="icon" type="image/png" sizes="32x32" href="static/img/favicon/favicon-32x32.png">
|
||
|
<link rel="icon" type="image/png" sizes="16x16" href="static/img/favicon/favicon-16x16.png">
|
||
|
<link rel="manifest" href="static/img/favicon/site.webmanifest">
|
||
|
<link rel="mask-icon" href="static/img/favicon/safari-pinned-tab.svg" color="#00566f">
|
||
|
<meta name="msapplication-TileColor" content="#da532c">
|
||
|
<meta name="theme-color" content="#ffffff">
|
||
|
|
||
|
{% if autocomplete_enabled == '1' %}
|
||
|
<script src="{{ cb_url('autocomplete.js') }}"></script>
|
||
|
{% endif %}
|
||
|
<script type="text/javascript" src="{{ cb_url('controller.js') }}"></script>
|
||
|
<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="RaveSearch">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<link rel="stylesheet" href="{{ cb_url('logo.css') }}">
|
||
|
|
||
|
<style>
|
||
|
@import "{{ cb_url('dark-theme.css') }}";
|
||
|
</style>
|
||
|
|
||
|
<link rel="stylesheet" href="{{ cb_url('main.css') }}">
|
||
|
|
||
|
<title>RaveSearch</title>
|
||
|
</head>
|
||
|
<body id="main_index">
|
||
|
<main 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">
|
||
|
{% if config.preferences %}
|
||
|
<input type="hidden" name="preferences" value="{{ config.preferences }}" />
|
||
|
{% endif %}
|
||
|
<input
|
||
|
placeholder="{{ translation['input-text'] }}"
|
||
|
type="text"
|
||
|
name="q"
|
||
|
id="search-bar"
|
||
|
autofocus="autofocus"
|
||
|
autocapitalize="none"
|
||
|
spellcheck="false"
|
||
|
autocorrect="off"
|
||
|
autocomplete="off"
|
||
|
dir="auto" />
|
||
|
</div>
|
||
|
<input type="submit" id="search-submit" value="{{ translation['search'] }}">
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
|
||
|
{% if not config_disabled %}
|
||
|
<button id="config-collapsible" class="collapsible">{{ translation['config'] }}</button>
|
||
|
<div class="content">
|
||
|
<div class="config-fields">
|
||
|
<form id="config-form" action="config" method="post">
|
||
|
<div class="config-options">
|
||
|
<!--<div class="config-div config-div-country">
|
||
|
<label for="config-country">{{ translation['config-country'] }}: </label>
|
||
|
<select name="country" id="config-country">
|
||
|
{% for country in countries %}
|
||
|
<option value="{{ country.value }}"
|
||
|
{% if (
|
||
|
config.country != '' and config.country in country.value
|
||
|
) or (
|
||
|
config.country == '' and country.value == '')
|
||
|
%}
|
||
|
selected
|
||
|
{% endif %}>
|
||
|
{{ country.name }}
|
||
|
</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</div> -->
|
||
|
<!-- <div class="config-div">
|
||
|
<label for="config-time-period">{{ translation['config-time-period'] }}</label>
|
||
|
<select name="tbs" id="config-time-period">
|
||
|
{% for time_period in time_periods %}
|
||
|
<option value="{{ time_period.value }}"
|
||
|
{% if (
|
||
|
config.tbs != '' and config.tbs in time_period.value
|
||
|
) or (
|
||
|
config.tbs == '' and time_period.value == '')
|
||
|
%}
|
||
|
selected
|
||
|
{% endif %}>
|
||
|
{{ translation[time_period.value] }}
|
||
|
</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</div> -->
|
||
|
<div class="config-div config-div-lang">
|
||
|
<label for="config-lang-interface">{{ translation['config-lang'] }}: </label>
|
||
|
<select name="lang_interface" id="config-lang-interface">
|
||
|
{% for lang in languages %}
|
||
|
<option value="{{ lang.value }}"
|
||
|
{% if lang.value in config.lang_interface %}
|
||
|
selected
|
||
|
{% endif %}>
|
||
|
{{ lang.name }}
|
||
|
</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="config-div config-div-search-lang">
|
||
|
<label for="config-lang-search">{{ translation['config-lang-search'] }}: </label>
|
||
|
<select name="lang_search" id="config-lang-search">
|
||
|
{% for lang in languages %}
|
||
|
<option value="{{ lang.value }}"
|
||
|
{% if lang.value in config.lang_search %}
|
||
|
selected
|
||
|
{% endif %}>
|
||
|
{{ lang.name }}
|
||
|
</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</div>
|
||
|
<!-- <div class="config-div config-div-autocomplete">
|
||
|
<label for="config-autocomplete">autocomplete</label>
|
||
|
<input type="checkbox" name="autocomplete" id="config-autocomplete" {{ 'checked' if config.autocomplete else '' }}>
|
||
|
</div> -->
|
||
|
<!-- <div class="config-div config-div-near">
|
||
|
<label for="config-near">{{ translation['config-near'] }}: </label>
|
||
|
<input type="text" name="near" id="config-near"
|
||
|
placeholder="{{ translation['config-near-help'] }}" value="{{ config.near }}">
|
||
|
</div> -->
|
||
|
<!-- <div class="config-div config-div-block">
|
||
|
<label for="config-block">{{ translation['config-block'] }}: </label>
|
||
|
<input type="text" name="block" id="config-block"
|
||
|
placeholder="{{ translation['config-block-help'] }}" value="{{ config.block }}">
|
||
|
</div> -->
|
||
|
<!-- <div class="config-div config-div-block">
|
||
|
<label for="config-block-title">{{ translation['config-block-title'] }}: </label>
|
||
|
<input type="text" name="block_title" id="config-block"
|
||
|
placeholder="{{ translation['config-block-title-help'] }}"
|
||
|
value="{{ config.block_title }}">
|
||
|
</div> -->
|
||
|
<!-- <div class="config-div config-div-block">
|
||
|
<label for="config-block-url">{{ translation['config-block-url'] }}: </label>
|
||
|
<input type="text" name="block_url" id="config-block"
|
||
|
placeholder="{{ translation['config-block-url-help'] }}" value="{{ config.block_url }}">
|
||
|
</div> -->
|
||
|
<div class="config-div config-div-anon-view">
|
||
|
<label for="config-anon-view">{{ translation['config-anon-view'] }}: </label>
|
||
|
<input type="checkbox" name="anon_view" id="config-anon-view" {{ 'checked' if config.anon_view else '' }}>
|
||
|
</div>
|
||
|
<div class="config-div config-div-nojs">
|
||
|
<label for="config-nojs">{{ translation['config-nojs'] }}: </label>
|
||
|
<input type="checkbox" name="nojs" id="config-nojs" {{ 'checked' if config.nojs else '' }}>
|
||
|
</div>
|
||
|
<!-- DEPRECATED -->
|
||
|
<!--<div class="config-div config-div-dark">-->
|
||
|
<!--<label for="config-dark">{{ translation['config-dark'] }}: </label>-->
|
||
|
<!--<input type="checkbox" name="dark" id="config-dark" {{ 'checked' if config.dark else '' }}>-->
|
||
|
<!--</div>-->
|
||
|
<div class="config-div config-div-safe">
|
||
|
<label for="config-safe">{{ translation['config-safe'] }}: </label>
|
||
|
<input type="checkbox" name="safe" id="config-safe" {{ 'checked' if config.safe else '' }}>
|
||
|
</div>
|
||
|
<div class="config-div config-div-alts">
|
||
|
<label class="tooltip" for="config-alts">{{ translation['config-alts'] }}: </label>
|
||
|
<input type="checkbox" name="alts" id="config-alts" {{ 'checked' if config.alts else '' }}>
|
||
|
<div><span class="info-text"> — {{ translation['config-alts-help'] }}</span></div>
|
||
|
</div>
|
||
|
<div class="config-div config-div-new-tab">
|
||
|
<label for="config-new-tab">{{ translation['config-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">{{ translation['config-images'] }}: </label>
|
||
|
<input checked type="checkbox" name="view_image"
|
||
|
id="config-view-image" {{ 'checked' if config.view_image else '' }}>
|
||
|
<div><span class="info-text"> — {{ translation['config-images-help'] }}</span></div>
|
||
|
</div> -->
|
||
|
<div class="config-div config-div-tor">
|
||
|
<label for="config-tor">{{ translation['config-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 '' }}>
|
||
|
</div>
|
||
|
<div class="config-div config-div-get-only">
|
||
|
<label for="config-get-only">{{ translation['config-get-only'] }}: </label>
|
||
|
<input type="checkbox" name="get_only"
|
||
|
id="config-get-only" {{ 'checked' if config.get_only else '' }}>
|
||
|
</div>
|
||
|
<!-- <div class="config-div config-div-accept-language">
|
||
|
<label for="config-accept-language">Set Accept-Language: </label>
|
||
|
<input type="checkbox" name="accept_language"
|
||
|
id="config-accept-language" {{ 'checked' if config.accept_language else '' }}>
|
||
|
</div> -->
|
||
|
<div class="config-div config-div-root-url">
|
||
|
<label for="config-url">{{ translation['config-url'] }}: </label>
|
||
|
<input type="text" name="url" id="config-url" value="{{ config.url }}">
|
||
|
</div>
|
||
|
<div class="config-div config-div-custom-css">
|
||
|
<a id="css-link"
|
||
|
href="https://github.com/benbusby/whoogle-search/wiki/User-Contributed-CSS-Themes">
|
||
|
{{ translation['config-css'] }}:
|
||
|
</a>
|
||
|
<textarea
|
||
|
name="style_modified"
|
||
|
id="config-style"
|
||
|
autocapitalize="off"
|
||
|
autocomplete="off"
|
||
|
spellcheck="false"
|
||
|
autocorrect="off"
|
||
|
value="">{{ config.style_modified.replace('\t', '') }}</textarea>
|
||
|
</div>
|
||
|
<div class="config-div config-div-pref-url">
|
||
|
<label for="config-pref-encryption">{{ translation['config-pref-encryption'] }}: </label>
|
||
|
<input type="checkbox" name="preferences_encrypted"
|
||
|
id="config-pref-encryption" {{ 'checked' if config.preferences_encrypted and config.preferences_key else '' }}>
|
||
|
<div><span class="info-text"> — {{ translation['config-pref-help'] }}</span></div>
|
||
|
<label for="config-pref-url">{{ translation['config-pref-url'] }}: </label>
|
||
|
<input type="text" name="pref-url" id="config-pref-url" value="{{ config.url }}?preferences={{ config.preferences }}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="config-div config-buttons">
|
||
|
<input type="submit" id="config-load" value="{{ translation['load'] }}">
|
||
|
<input type="submit" id="config-submit" value="{{ translation['apply'] }}">
|
||
|
<input type="submit" id="config-save" value="{{ translation['save-as'] }}">
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
|
||
|
|
||
|
<div class="social-container">
|
||
|
<div class="social-column">
|
||
|
<div class="rpkick">
|
||
|
<a href="https://kick.com/ravepriest1">
|
||
|
<img
|
||
|
src="static/img/rp/rpkicksearch.png"
|
||
|
alt="rpkick"
|
||
|
title="RP Kick"
|
||
|
width="200px"
|
||
|
height="50px"
|
||
|
/></a>
|
||
|
</div>
|
||
|
<div class="rpdiscord">
|
||
|
<a href="https://discord.com/invite/MwUydP4gc5">
|
||
|
<img
|
||
|
src="static/img/rp/rpdiscordsearch.png"
|
||
|
alt="rpdiscord"
|
||
|
title="RP Discord"
|
||
|
width="200px"
|
||
|
height="50px"
|
||
|
/></a>
|
||
|
</div>
|
||
|
<div class="rptwitch">
|
||
|
<a href="https://www.twitch.tv/ravepriest1">
|
||
|
<img
|
||
|
src="static/img/rp/rptwitchsearch.png"
|
||
|
alt="rptwitch"
|
||
|
title="RP Twitch"
|
||
|
width="200px"
|
||
|
height="50px"
|
||
|
/></a>
|
||
|
</div>
|
||
|
<div class="rpgit">
|
||
|
<a href="https://git.rp1.hu/explore/repos">
|
||
|
<img
|
||
|
src="static/img/rp/rpgiteasearch.png"
|
||
|
alt="rpgit"
|
||
|
title="RP Gitea"
|
||
|
width="200px"
|
||
|
height="50px"
|
||
|
/></a>
|
||
|
</div>
|
||
|
<div class="rpyoutube">
|
||
|
<a href="https://www.youtube.com/@RPslair">
|
||
|
<img
|
||
|
src="static/img/rp/rpyoutubesearch.png"
|
||
|
alt="rpyoutube"
|
||
|
title="RP YouTube"
|
||
|
width="200px"
|
||
|
height="50px"
|
||
|
/></a>
|
||
|
</div>
|
||
|
<div class="rpweb">
|
||
|
<a href="https://rp1.hu">
|
||
|
<img
|
||
|
src="static/img/rp/rpwebsearch.png"
|
||
|
alt="rpweb"
|
||
|
title="RP Website"
|
||
|
width="200px"
|
||
|
height="50px"
|
||
|
/></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</main>
|
||
|
{% include 'footer.html' %}
|
||
|
</body>
|
||
|
|
||
|
</html>
|