|
|
@ -34,7 +34,6 @@ public class StartPage { |
|
|
|
+ "<title>"; |
|
|
|
+ "<title>"; |
|
|
|
|
|
|
|
|
|
|
|
private static final String HEAD_2 = "</title>" |
|
|
|
private static final String HEAD_2 = "</title>" |
|
|
|
+ "</head>" |
|
|
|
|
|
|
|
+ "<style>body{background:#f5f5f5;text-align:center;margin:0px;}#search_input{height:35px; " |
|
|
|
+ "<style>body{background:#f5f5f5;text-align:center;margin:0px;}#search_input{height:35px; " |
|
|
|
+ "width:100%;outline:none;border:none;font-size: 16px;background-color:transparent;}" |
|
|
|
+ "width:100%;outline:none;border:none;font-size: 16px;background-color:transparent;}" |
|
|
|
+ "span { display: block; overflow: hidden; padding-left:5px;vertical-align:middle;}" |
|
|
|
+ "span { display: block; overflow: hidden; padding-left:5px;vertical-align:middle;}" |
|
|
@ -47,13 +46,15 @@ public class StartPage { |
|
|
|
+ ".box { vertical-align:middle;position:relative; display: block; margin: 10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;" |
|
|
|
+ ".box { vertical-align:middle;position:relative; display: block; margin: 10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;" |
|
|
|
+ " background-color:#fff;box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 );font-family: Arial;color: #444;" |
|
|
|
+ " background-color:#fff;box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 );font-family: Arial;color: #444;" |
|
|
|
+ "font-size: 12px;-moz-border-radius: 2px;-webkit-border-radius: 2px;" |
|
|
|
+ "font-size: 12px;-moz-border-radius: 2px;-webkit-border-radius: 2px;" |
|
|
|
+ "border-radius: 2px;}</style><body> <div class=\"outer\"><div class=\"middle\"><div class=\"inner\"><img class=\"smaller\" src=\""; |
|
|
|
+ "border-radius: 2px;}</style>" |
|
|
|
|
|
|
|
+ "</head><body> <div class=\"outer\"><div class=\"middle\"><div class=\"inner\"><img class=\"smaller\" src=\""; |
|
|
|
|
|
|
|
|
|
|
|
private static final String MIDDLE = "\" ></br></br><form onsubmit=\"return search()\" class=\"search_bar\" autocomplete=\"off\">" |
|
|
|
private static final String MIDDLE = "\" ></br></br><form onsubmit=\"return search()\" class=\"search_bar\" autocomplete=\"off\">" |
|
|
|
+ "<input type=\"submit\" id=\"search_submit\" value=\"Search\" ><span><input class=\"search\" type=\"text\" value=\"\" id=\"search_input\" >" |
|
|
|
+ "<input type=\"submit\" id=\"search_submit\" value=\"Search\" ><span><input class=\"search\" type=\"text\" value=\"\" id=\"search_input\" >" |
|
|
|
+ "</span></form></br></br></div></div></div><script type=\"text/javascript\">function search(){if(document.getElementById(\"search_input\").value != \"\"){window.location.href = \""; |
|
|
|
+ "</span></form></br></br></div></div></div><script type=\"text/javascript\">function search(){if(document.getElementById(\"search_input\").value != \"\"){window.location.href = \""; |
|
|
|
|
|
|
|
|
|
|
|
private static final String END = "\" + document.getElementById(\"search_input\").value;document.getElementById(\"search_input\").value = \"\";}return false;}</script></body></html>"; |
|
|
|
private static final String END = "\" + document.getElementById(\"search_input\").value;setTimeout(\"unlock()\", 5000);}return false;}" |
|
|
|
|
|
|
|
+ "function unlock(){document.getElementById(\"search_submit\").disabled = false;}</script></body></html>"; |
|
|
|
|
|
|
|
|
|
|
|
@NonNull |
|
|
|
@NonNull |
|
|
|
public static File getStartPageFile(@NonNull Application application) { |
|
|
|
public static File getStartPageFile(@NonNull Application application) { |
|
|
|