121 lines
No EOL
6.6 KiB
HTML
121 lines
No EOL
6.6 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>{{.Query}} - Ocásek</title>
|
||
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
|
||
<link rel="search" type="application/opensearchdescription+xml" title="Ocásek" 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="./">Ocásek</a></h1>
|
||
<div class="wrapper-results">
|
||
<input type="text" name="q" value="{{ .Query }}" id="search-input" placeholder="Type to search..." />
|
||
<button id="search-wrapper-ico" class="material-icons-round" name="t" value="image">search</button>
|
||
<input type="submit" class="hide" name="t" value="image" />
|
||
</div>
|
||
<div class="sub-search-button-wrapper">
|
||
<div class="search-container-results-btn">
|
||
<button id="sub-search-wrapper-ico" class="material-icons-round clickable" name="t" value="text">search</button>
|
||
<button name="t" value="text" class="clickable">Web</button>
|
||
</div>
|
||
<div class="search-container-results-btn">
|
||
<button id="sub-search-wrapper-ico" class="material-icons-round clickable search-active" name="t" value="image">image</button>
|
||
<button name="t" value="image" class="clickable search-active">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">Videos</button>
|
||
</div>
|
||
<div class="search-container-results-btn">
|
||
<button id="sub-search-wrapper-ico" class="material-icons-round clickable" name="t" value="forum">forum</button>
|
||
<button name="t" value="forum" class="clickable">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">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">Torrents</button>
|
||
</div>
|
||
</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="">Safe Search Off</option>
|
||
<option value="active">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="image">Apply settings</button>
|
||
</form>
|
||
<div class="search-results">
|
||
<!-- Results go here -->
|
||
{{ if .Results }}
|
||
<div class="images images_viewer_hidden">
|
||
<!-- Image Viewer Placeholder - Adapt as necessary -->
|
||
<div class="image_view image_hide">
|
||
<!-- Navigation and Close for the Image Viewer -->
|
||
<!-- Placeholder for dynamic interaction, adapt the onclick functionality as needed -->
|
||
<div class="image-view-close">
|
||
<button class="btn-nostyle"><div class="material-icons-round icon_visibility clickable">navigate_before</div></button>
|
||
<button class="btn-nostyle"><div class="material-icons-round icon_visibility clickable">navigate_next</div></button>
|
||
<button class="btn-nostyle"><div class="material-icons-round icon_visibility clickable">close</div></button>
|
||
</div>
|
||
<!-- Placeholder for selected image -->
|
||
<a class="image-viewer-link clickable" href="#">
|
||
<div class="view-image">
|
||
<img class="view-image-img" src="" alt="Selected Image"/>
|
||
</div>
|
||
</a>
|
||
<!-- Additional image details here -->
|
||
</div>
|
||
<!-- Images Grid -->
|
||
{{ range .Results }}
|
||
<div class="image">
|
||
<a class="clickable" href="{{ .ThumbProxy }}" target="_blank">
|
||
<img src="{{ .ThumbProxy }}" alt="{{ .Title }}" data-media="{{ .Media }}">
|
||
<div class="resolution">{{ .Width }} × {{ .Height }}</div>
|
||
<div class="details">
|
||
<div class="img_title">{{ .Title }}</div>
|
||
<div class="img_source"><a href="{{ .Source }}" target="_blank">Source</a></div>
|
||
</div>
|
||
</a>
|
||
</div>
|
||
{{ end }}
|
||
</div>
|
||
<!-- Pagination -->
|
||
<div class="prev-next prev-img">
|
||
<form action="/search" method="get">
|
||
<input type="hidden" name="q" value="{{ .Query }}">
|
||
<input type="hidden" name="t" value="image">
|
||
{{ if .HasPrevPage }}
|
||
<!-- Subtract 1 from the current page for the Previous button -->
|
||
<button type="submit" name="p" value="{{ sub .Page 1 }}">Previous</button>
|
||
{{ end }}
|
||
{{ if .HasNextPage }}
|
||
<!-- Add 1 to the current page for the Next button -->
|
||
<button type="submit" name="p" value="{{ add .Page 1 }}">Next</button>
|
||
{{ end }}
|
||
</form>
|
||
</div>
|
||
{{ else }}
|
||
<div class="no-results">No results found for '{{ .Query }}'. Try different keywords.</div>
|
||
{{ end }}
|
||
</div>
|
||
|
||
<script>
|
||
// Check if JavaScript is enabled and modify the DOM accordingly
|
||
document.getElementById('content').classList.remove('js-enabled');
|
||
</script>
|
||
</body>
|
||
</html> |