add keyword as title to buttons
authorFelix Kästner <git@fpunktk.de>
Tue, 30 Jun 2015 16:49:06 +0000 (18:49 +0200)
committerFelix Kästner <git@fpunktk.de>
Tue, 30 Jun 2015 16:49:06 +0000 (18:49 +0200)
index.php

index 772a68a269cce7055ade19f301527940617d528a..a4e8442df299f0ef6c7905e60a58fe44893f2127 100644 (file)
--- a/index.php
+++ b/index.php
@@ -167,7 +167,7 @@ se["gsm"] = ["gsm", "http://www.gsmarena.com/results.php3?sQuickSearch=yes&sName
 function display_searchbuttons() {
     document.getElementById("searchbuttons").innerHTML = "";
     for ( kw in se ) {
-        document.getElementById("searchbuttons").innerHTML += '<button type="button" value="' + se[kw][0] + '" onclick=\'location.href="' + se[kw][1] + '" + document.getElementById("querystring").value\'><img src="data:image/png;base64,' + b64images[se[kw][2]] + '" alt="">&nbsp;' + se[kw][0] + "</button> \n";
+        document.getElementById("searchbuttons").innerHTML += '<button type="button" title="' + kw + '" value="' + se[kw][0] + '" onclick=\'location.href="' + se[kw][1] + '" + document.getElementById("querystring").value\'><img src="data:image/png;base64,' + b64images[se[kw][2]] + '" alt="">&nbsp;' + se[kw][0] + "</button> \n";
     }
 }