File tree Expand file tree Collapse file tree 4 files changed +7
-21
lines changed
Expand file tree Collapse file tree 4 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,5 @@ other = "Low risk"
9494[search ]
9595other = " Search"
9696
97- [search-type-to-start ]
98- other = " Type to start searching"
99-
10097[search-no-results ]
10198other = " No results found"
Original file line number Diff line number Diff line change @@ -94,8 +94,5 @@ other = "Laag risico"
9494[search ]
9595other = " Zoeken"
9696
97- [search-type-to-start ]
98- other = " Typ om te beginnen met zoeken"
99-
10097[search-no-results ]
10198other = " Geen resultaten gevonden"
Original file line number Diff line number Diff line change @@ -267,10 +267,14 @@ <h3 class="color-blue search-result-title">${item._highlightResult.title.value}<
267267 . join ( '' ) ;
268268 }
269269 ) ;
270+ let placeholderSearchText = '{{ if eq .Site.Language.Lang "en" }}Type to start searching{{else}}Typ om te beginnen met zoeken{{end}}' ;
271+ if ( ! / A n d r o i d | w e b O S | i P h o n e | i P a d | i P o d | B l a c k B e r r y | I E M o b i l e | O p e r a M i n i / i. test ( navigator . userAgent ) ) {
272+ placeholderSearchText = '{{ if eq .Site.Language.Lang "en" }}Type [\\] to start searching{{else}}Typ [\\] om te beginnen met zoeken{{end}}' ;
273+ }
270274 search . addWidgets ( [
271275 instantsearch . widgets . searchBox ( {
272276 container : '#searchbox' ,
273- placeholder : '{{ i18n "search-type-to-start" }}' ,
277+ placeholder : placeholderSearchText ,
274278 } ) ,
275279 instantsearch . widgets . configure ( {
276280 hitsPerPage : 8 ,
Original file line number Diff line number Diff line change 6464
6565 <!-- Search -->
6666 < li class ="nav-item ">
67- < a style ="max-width: 200px; " class ="nav-link rounded-lg bg-lightblue py-1 my-1 mx-auto "
67+ < a style ="max-width: 200px; " class ="nav-link py-1 my-1 mx-auto "
6868 href ='{{ if eq .Site.Language.Lang "en" }}{{else}}/nl{{end}}/#search ' title ="Search "> < i
6969 class ="fas fa-search d-inline " id ="search-hotkeys "> </ i >
7070 < p class ="d-inline ml-2 " id ="search-hotkeys-text "> </ p >
108108</ header >
109109< script >
110110 docReady ( function ( ) {
111- console . log ( navigator . platform ) ;
112111 if ( ! / A n d r o i d | w e b O S | i P h o n e | i P a d | i P o d | B l a c k B e r r y | I E M o b i l e | O p e r a M i n i / i. test ( navigator . userAgent ) ) {
113- const isMac = navigator . platform . indexOf ( 'Mac' ) >= 0 ;
114- if ( isMac ) {
115- $ ( "#search-hotkeys-text" ) . text ( "[⌘] + [\\]" ) ;
116- }
117- else {
118- $ ( "#search-hotkeys-text" ) . text ( "[Ctrl] + [\\]" ) ;
119- }
120- $ ( "a[title='Search']" ) . addClass ( "rounded-lg bg-lightblue" ) ;
121-
122112 $ ( window ) . keydown ( function ( k ) {
123-
124- console . log ( k ) ;
125- if ( k . which == 220 && ( k . ctrlKey == true && ! isMac || k . metaKey == true && isMac ) ) {
113+ if ( k . which == 220 ) {
126114 $ ( "a[title='Search']" ) [ 0 ] . click ( ) ;
127115 k . preventDefault ( ) ;
128116 return false ;
You can’t perform that action at this time.
0 commit comments