2024-03-27 21:30:19 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-04-05 14:15:43 +02:00
|
|
|
<title>{{.Query}} - Spitfire Search</title>
|
2024-03-30 18:00:43 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
|
2024-03-27 21:30:19 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-03-30 21:59:16 +01:00
|
|
|
<div class="header">
|
|
|
|
<h1>TailsGo</h1>
|
|
|
|
<form action="/search" method="post" class="search-form" autocomplete="off">
|
|
|
|
<div class="search-bar">
|
2024-03-30 18:00:43 +01:00
|
|
|
<input type="text" name="q" value="{{ .Query }}" autofocus id="search-input" placeholder="Type to search..." />
|
2024-03-30 21:59:16 +01:00
|
|
|
<button type="submit" id="search-btn">Search</button>
|
2024-03-30 18:00:43 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
2024-03-28 11:52:16 +01:00
|
|
|
</div>
|
2024-03-30 21:59:16 +01:00
|
|
|
<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>
|
2024-03-30 23:29:14 +01:00
|
|
|
<option value="active">Safe Search On</option>
|
2024-03-30 21:59:16 +01:00
|
|
|
</select>
|
|
|
|
<select class="results-settings" name="lang" id="languageSelect">
|
2024-03-30 23:29:14 +01:00
|
|
|
{{range .LanguageOptions}}
|
|
|
|
<option value="{{.Code}}" {{if eq .Code $.CurrentLang}}selected{{end}}>{{.Name}}</option>
|
|
|
|
{{end}}
|
|
|
|
</select>
|
2024-03-30 21:59:16 +01:00
|
|
|
<button class="results-save" type="submit">Apply settings</button>
|
|
|
|
</form>
|
2024-03-30 18:00:43 +01:00
|
|
|
<div class="results">
|
2024-03-30 21:59:16 +01:00
|
|
|
<!-- Results go here -->
|
2024-03-30 18:00:43 +01:00
|
|
|
{{range .Results}}
|
|
|
|
<div class="result_item">
|
2024-04-02 20:56:45 +02:00
|
|
|
<a href="{{.URL}}">{{.URL}}</a>
|
2024-03-30 18:00:43 +01:00
|
|
|
<a href="{{.URL}}"><h3>{{.Header}}</h3></a>
|
|
|
|
<p>{{.Description}}</p>
|
|
|
|
</div>
|
2024-04-02 20:56:45 +02:00
|
|
|
<br>
|
2024-03-30 18:00:43 +01:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2024-03-30 21:59:16 +01:00
|
|
|
<!-- Additional features and formatting based on inspiration.html -->
|
2024-03-27 21:30:19 +01:00
|
|
|
</body>
|
|
|
|
</html>
|