}
button {
margin: 0px -5px 3mm 0px; /* trbl */
- padding: -4px;
+ padding: 3px;
+ background: none;
+ border: 1px solid black;
width: 13ex; /* 13ex 11ch */
width: 11ch; /* used twice because some browsers don't understand it */
height: 13mm;
se["imdb"] = ["imdb", "http://www.imdb.com/find?s=all&q=", "imdb.png"];
se["az"] = ["amazon", "https://www.amazon.de/s/?url=search-alias%3Daps&field-keywords=", "az.png"];
se["php"] = ["php.net", "http://de2.php.net/manual-lookup.php?lang=de&pattern=", "php.png"];
-se["sh"] = ["slfhtml", "http://de.selfhtml.org/navigation/suche/index.htm?Suchanfrage=", "sh.png"];
+se["sh"] = ["slfhtml", "https://wiki.selfhtml.org/index.php?search=", "sh.png"];
se["down"] = ["down", "http://www.downforeveryoneorjustme.com/", "down.png"];
+se["fefe"] = ["fefe", "https://blog.fefe.de/?q=", ""];
+se["wtr"] = ["wtr.com", "http://www.wetter.com/suche/?o=location&q=", ""];
function display_searchbuttons() {
document.getElementById("searchbuttons").innerHTML = "";
document.getElementById("querystring").focus();
} else {
fragmentarr = fragmentstring.replace("%20", "+").split("+");
- if ( se[fragmentarr[0]] ) {
- // first word in query is a keyword
- kw = fragmentarr[0];
+ kw = fragmentarr[0];
+ if ( se[kw] ) {
+ // first word in query is a search engine keyword
fragmentarr.shift();
location.href = se[kw][1] + fragmentarr.join(" ");
} else {
- // there is no keyword
<?php
if ( $dse ) {
// use a default searchengine
- echo ' location.href = se["' . $dse . '"][1] + fragmentarr.join(" ");
+ echo ' if ( kw != "nd" ) {
+ location.href = se["' . $dse . '"][1] + fragmentarr.join(" ");
+ } else {
+ fragmentarr.shift();
+ document.getElementById("querystring").value = fragmentarr.join(" ");
+ display_searchbuttons();
+ }
';
} else {
// display all buttons and write the fragmentstring into the querystring input