UNPKG

oxil-net1

Version:
28 lines (24 loc) 1.59 kB
{{- $action := .action -}} {{- $placeholder := .placeholder -}} {{- $class := .class -}} {{- $inputclass := .inputclass -}} {{- $buttonclass := .buttonclass -}} {{- $buttonpadding := .buttonpadding -}} {{- $iconclass := .iconclass -}} {{- $tld := .tld -}} {{- $tldparam := .tldparam -}} <form action="{{- with $action -}}{{- . -}}{{else}}/search/{{- with $tld -}}tld/{{- end -}}{{- with $tldparam -}}tld/{{- end -}}{{end}}" class="pl050 flex br8tr br8br br8bl br8tl {{ with $class -}}{{- . -}}{{- end -}}"> <input class="f5 pl0 bor0 w {{ with $inputclass -}}{{- . -}}{{- end -}}" type="text" name="domainsearch" {{- with $placeholder -}}placeholder="{{- . -}}"{{- end }} {{- with $tldparam -}}kb-placeholder="'Search for another ' | append {{ . -}}"{{- end -}} {{- with $tld -}}placeholder="Search for another {{- . -}}"{{- end -}} > <button type="submit" class="{{ with $buttonclass -}}{{- . -}}{{- end }} {{ with $buttonpadding -}}{{- . -}}{{- else -}}px1{{- end }} flex align-center bor0 ge br8tr br8br" > <svg class="i24 g9-text" viewBox="0 0 24 24"> <path fill="currentColor" d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z" /> </svg></button> {{- with $tld -}} <input type="hidden" name="tld" value="{{- . -}}"> {{- end -}} {{- with $tldparam -}} <input type="hidden" name="tld" kb-value="{{- . -}}"> {{- end -}} </form>