109 lines
5.8 KiB
HTML
Executable file
109 lines
5.8 KiB
HTML
Executable file
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
{{ if .IsThemeDark }}
|
|
<meta name="darkreader-lock">
|
|
{{ end }}
|
|
<title>{{ .Query }} - {{ translate "site_name" }}</title>
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
<link rel="stylesheet" href="/static/css/{{.Theme}}.css">
|
|
<link rel="search" type="application/opensearchdescription+xml" title="{{ translate "site_name" }}" href="/opensearch.xml">
|
|
</head>
|
|
<body>
|
|
<form action="/search" id="prev-next-form" class="results-search-container" method="GET" autocomplete="off">
|
|
<h1 class="logomobile"><a class="no-decoration" href="./">{{ translate "site_name" }}</a></h1>
|
|
<div class="wrapper-results">
|
|
<input type="text" name="q" value="{{ .Query }}" id="search-input"/>
|
|
<button id="search-wrapper-ico" class="material-icons-round" name="t" value="text">search</button>
|
|
<div class="autocomplete">
|
|
<ul>
|
|
</ul>
|
|
</div>
|
|
<input type="submit" class="hide" name="t" value="text" />
|
|
</div>
|
|
<div class="sub-search-button-wrapper">
|
|
<div class="search-container-results-btn">
|
|
<button id="sub-search-wrapper-ico" class="material-icons-round clickable search-active" name="t" value="text">search</button>
|
|
<button name="t" value="text" class="clickable search-active">{{ translate "web" }}</button>
|
|
</div>
|
|
<div class="search-container-results-btn">
|
|
<button id="sub-search-wrapper-ico" class="material-icons-round clickable" name="t" value="image">image</button>
|
|
<button name="t" value="image" class="clickable">{{ translate "images" }}</button>
|
|
</div>
|
|
<div class="search-container-results-btn">
|
|
<button id="sub-search-wrapper-ico" class="material-icons-round clickable" name="t" value="video">movie</button>
|
|
<button name="t" value="video" class="clickable">{{ translate "videos" }}</button>
|
|
</div>
|
|
<div class="search-container-results-btn">
|
|
<button id="sub-search-wrapper-ico" class="material-icons-round clickable" name="t" value="forum">image</button>
|
|
<button name="t" value="forum" class="clickable">{{ translate "forums" }}</button>
|
|
</div>
|
|
<div id="content" class="js-enabled">
|
|
<div class="search-container-results-btn">
|
|
<button id="sub-search-wrapper-ico" class="material-icons-round clickable" name="t" value="map">map</button>
|
|
<button name="t" value="map" class="clickable">{{ translate "maps" }}</button>
|
|
</div>
|
|
</div>
|
|
<div class="search-container-results-btn">
|
|
<button id="sub-search-wrapper-ico" class="material-icons-round clickable" name="t" value="file">share</button>
|
|
<button name="t" value="file" class="clickable">{{ translate "torrents" }}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<form class="results_settings" action="/search" method="get">
|
|
<input type="hidden" name="q" value="{{ .Query }}">
|
|
<select class="results-settings" name="safe" id="safeSearchSelect">
|
|
<option value="disabled" {{if eq .Safe "disabled"}}selected{{end}}>{{ translate "safe_search_off" }}</option>
|
|
<option value="active" {{if eq .Safe "active"}}selected{{end}}>{{ translate "safe_search_on" }}</option>
|
|
</select>
|
|
<select class="results-settings" name="lang" id="languageSelect">
|
|
{{range .LanguageOptions}}
|
|
<option value="{{.Code}}" {{if eq .Code $.CurrentLang}}selected{{end}}>{{.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
<button class="results-save" name="t" value="text">{{ translate "save_settings" }}</button>
|
|
</form>
|
|
<div class="results" id="results">
|
|
{{if .Results}}
|
|
{{range .Results}}
|
|
<div class="result_item">
|
|
<a id="link" href="{{.URL}}">{{.URL}}</a>
|
|
<a href="{{.URL}}"><h3>{{.Header}}</h3></a>
|
|
<p>{{.Description}}</p>
|
|
</div>
|
|
<br>
|
|
{{end}}
|
|
{{else if .NoResults}}
|
|
<div class="no-results">{{ translate "no_results" .Query }}</div>
|
|
{{else}}
|
|
<div class="no-more-results">{{ translate "no_more_results" }}</div>
|
|
{{end}}
|
|
</div>
|
|
<div class="message-bottom-left" id="message-bottom-left">
|
|
<span>{{ translate "searching_for_new_results" }}</span>
|
|
</div>
|
|
<div class="prev-next prev-img" id="prev-next">
|
|
<form action="/search" method="get">
|
|
<input type="hidden" name="q" value="{{ .Query }}">
|
|
<input type="hidden" name="t" value="text">
|
|
<div id="content" class="js-enabled">
|
|
{{ if .HasPrevPage }}
|
|
<button type="submit" name="p" value="{{ sub .Page 1 }}">{{ translate "previous" }}</button>
|
|
{{ end }}
|
|
{{ if .HasNextPage }}
|
|
<button type="submit" name="p" value="{{ add .Page 1 }}">{{ translate "next" }}</button>
|
|
{{ end }}
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div id="template-data" data-page="{{ .Page }}" data-query="{{ .Query }}" data-type="text"></div>
|
|
<script defer src="/static/js/dynamicscrolling.js"></script>
|
|
<script defer src="/static/js/autocomplete.js"></script>
|
|
<script>
|
|
// Check if JavaScript is enabled and modify the DOM accordingly
|
|
document.getElementById('content').classList.remove('js-enabled');
|
|
</script>
|
|
</body>
|
|
</html>
|