removed text "Type to search..." from search bar
This commit is contained in:
parent
088d92c1ea
commit
940c1c30e2
8 changed files with 32 additions and 15 deletions
|
@ -15,7 +15,7 @@
|
|||
<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..." />
|
||||
<input type="text" name="q" value="{{ .Query }}" id="search-input"/>
|
||||
<button id="search-wrapper-ico" class="material-icons-round" name="t" value="file">search</button>
|
||||
<div class="autocomplete">
|
||||
<ul>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<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..." />
|
||||
<input type="text" name="q" value="{{ .Query }}" id="search-input"/>
|
||||
<button id="search-wrapper-ico" class="material-icons-round" name="t" value="forum">search</button>
|
||||
<div class="autocomplete">
|
||||
<ul></ul>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<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..." />
|
||||
<input type="text" name="q" value="{{ .Query }}" id="search-input"/>
|
||||
<button id="search-wrapper-ico" class="material-icons-round" name="t" value="image">search</button>
|
||||
<div class="autocomplete">
|
||||
<ul>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<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..." />
|
||||
<input type="text" name="q" value="{{ .Query }}" id="search-input"/>
|
||||
<button id="search-wrapper-ico" class="material-icons-round" name="t" value="map">search</button>
|
||||
<div class="autocomplete">
|
||||
<ul>
|
||||
|
|
|
@ -53,9 +53,17 @@
|
|||
});
|
||||
|
||||
// Event listener for Language Selection
|
||||
document.getElementById('languageSelect').addEventListener('change', function () {
|
||||
updateSettings('lang', this.value);
|
||||
});
|
||||
if (siteLanguageSelect) {
|
||||
siteLanguageSelect.addEventListener('change', function () {
|
||||
updateSettings('site_lang', this.value);
|
||||
});
|
||||
}
|
||||
|
||||
// if (searchLanguageSelect) {
|
||||
// searchLanguageSelect.addEventListener('change', function () {
|
||||
// updateSettings('search_lang', this.value);
|
||||
// });
|
||||
// }
|
||||
});
|
||||
</script>
|
||||
<div class="settings-search-div settings-search-div-search">
|
||||
|
@ -76,7 +84,7 @@
|
|||
<option value="disabled" {{if eq .Safe "disabled"}}selected{{end}}>Safe Search Off</option>
|
||||
<option value="active" {{if eq .Safe "active"}}selected{{end}}>Safe Search On</option>
|
||||
</select>
|
||||
<select class="lang" name="lang" id="languageSelect">
|
||||
<select class="lang" name="site_lang" id="siteLanguageSelect">
|
||||
{{range .LanguageOptions}}
|
||||
<option value="{{.Code}}" {{if eq .Code $.CurrentLang}}selected{{end}}>{{.Name}}</option>
|
||||
{{end}}
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</a>
|
||||
<a href="/search?theme=night" class="theme-link">
|
||||
<div class="view-image-search clickable" id="night">
|
||||
<img src="/static/images/night.webp" alt="night">
|
||||
<img src="/static/images/night.webp" alt="Night">
|
||||
<div class="theme-tooltip">Night</div>
|
||||
</div>
|
||||
</a>
|
||||
|
@ -64,7 +64,7 @@
|
|||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="settings-row">
|
||||
<p>Safe Search</p>
|
||||
<select class="results-settings" name="safe" id="safeSearchSelect">
|
||||
|
@ -74,10 +74,19 @@
|
|||
</div>
|
||||
|
||||
<div class="settings-row">
|
||||
<p>Preferred Language</p>
|
||||
<select class="results-settings" name="lang" id="languageSelect">
|
||||
<p>Site Language</p>
|
||||
<select class="results-settings" name="site_lang" id="siteLanguageSelect">
|
||||
{{range .LanguageOptions}}
|
||||
<option value="{{.Code}}" {{if eq .Code $.CurrentLang}}selected{{end}}>{{.Name}}</option>
|
||||
<option value="{{.Code}}" {{if eq .Code $.CurrentSiteLang}}selected{{end}}>{{.Name}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="settings-row">
|
||||
<p>Search Language</p>
|
||||
<select class="results-settings" name="search_lang" id="searchLanguageSelect">
|
||||
{{range .LanguageOptions}}
|
||||
<option value="{{.Code}}" {{if eq .Code $.CurrentSearchLang}}selected{{end}}>{{.Name}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<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..." />
|
||||
<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>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<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..." />
|
||||
<input type="text" name="q" value="{{ .Query }}" id="search-input"/>
|
||||
<button id="search-wrapper-ico" class="material-icons-round" name="t" value="video">search</button>
|
||||
<div class="autocomplete">
|
||||
<ul>
|
||||
|
|
Loading…
Add table
Reference in a new issue