Added a random article button for server mode

This commit is contained in:
Shivam 2014-05-25 12:25:13 -04:00
parent 0411b0988c
commit b341b9654d
3 changed files with 80 additions and 61 deletions

View File

@ -25486,14 +25486,17 @@ const unsigned char server_taskbar_css[]={
0x0a,0x7d,0x0a,0x0a,0x23,0x6b,0x69,0x77,0x69,0x78,0x6c,0x69,0x62,0x72,0x61,0x72, 0x0a,0x7d,0x0a,0x0a,0x23,0x6b,0x69,0x77,0x69,0x78,0x6c,0x69,0x62,0x72,0x61,0x72,
0x79,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x6d,0x61,0x72,0x67,0x69,0x6e,0x3a,0x20, 0x79,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x6d,0x61,0x72,0x67,0x69,0x6e,0x3a,0x20,
0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x3a,0x20, 0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x3a,0x20,
0x6c,0x65,0x66,0x74,0x3b,0x0a,0x7d,0x0a,0x0a,0x23,0x6b,0x69,0x77,0x69,0x78,0x73, 0x6c,0x65,0x66,0x74,0x3b,0x0a,0x7d,0x0a,0x0a,0x23,0x6b,0x69,0x77,0x69,0x78,0x72,
0x65,0x61,0x72,0x63,0x68,0x62,0x6f,0x78,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x6d, 0x61,0x6e,0x64,0x6f,0x6d,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x6d,0x61,0x72,0x67,
0x61,0x72,0x67,0x69,0x6e,0x3a,0x20,0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20, 0x69,0x6e,0x3a,0x20,0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x66,0x6c,0x6f,0x61,0x74,0x3a,0x20,0x72,0x69,0x67,0x68,0x74,0x3b,0x0a,0x7d,0x0a, 0x61,0x74,0x3a,0x20,0x6c,0x65,0x66,0x74,0x3b,0x0a,0x7d,0x0a,0x0a,0x23,0x6b,0x69,
0x0a,0x23,0x6b,0x69,0x77,0x69,0x78,0x73,0x65,0x61,0x72,0x63,0x68,0x20,0x7b,0x0a, 0x77,0x69,0x78,0x73,0x65,0x61,0x72,0x63,0x68,0x62,0x6f,0x78,0x20,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x6d,0x61,0x72,0x67,0x69,0x6e,0x3a,0x20,0x30,0x70,0x78,0x3b, 0x20,0x20,0x20,0x6d,0x61,0x72,0x67,0x69,0x6e,0x3a,0x20,0x30,0x70,0x78,0x3b,0x0a,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x3a,0x20,0x72,0x69,0x67,0x68, 0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x3a,0x20,0x72,0x69,0x67,0x68,0x74,
0x74,0x3b,0x0a,0x7d,0x0a 0x3b,0x0a,0x7d,0x0a,0x0a,0x23,0x6b,0x69,0x77,0x69,0x78,0x73,0x65,0x61,0x72,0x63,
0x68,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x6d,0x61,0x72,0x67,0x69,0x6e,0x3a,0x20,
0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x3a,0x20,
0x72,0x69,0x67,0x68,0x74,0x3b,0x0a,0x7d,0x0a
}; };
const unsigned char server_taskbar_html_part[]={ const unsigned char server_taskbar_html_part[]={
@ -25531,25 +25534,35 @@ const unsigned char server_taskbar_html_part[]={
0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22,0x73,0x75,0x62,0x6d,0x69,0x74, 0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22,0x73,0x75,0x62,0x6d,0x69,0x74,
0x22,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x48,0x6f,0x6d,0x65,0x22,0x20,0x69, 0x22,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x48,0x6f,0x6d,0x65,0x22,0x20,0x69,
0x64,0x3d,0x22,0x6b,0x69,0x77,0x69,0x78,0x68,0x6f,0x6d,0x65,0x22,0x20,0x2f,0x3e, 0x64,0x3d,0x22,0x6b,0x69,0x77,0x69,0x78,0x68,0x6f,0x6d,0x65,0x22,0x20,0x2f,0x3e,
0x3c,0x2f,0x66,0x6f,0x72,0x6d,0x3e,0x0a,0x20,0x20,0x3c,0x66,0x6f,0x72,0x6d,0x20, 0x3c,0x2f,0x66,0x6f,0x72,0x6d,0x3e,0x0a,0x3c,0x66,0x6f,0x72,0x6d,0x20,0x61,0x63,
0x6d,0x65,0x74,0x68,0x6f,0x64,0x3d,0x22,0x47,0x45,0x54,0x22,0x20,0x61,0x63,0x74, 0x74,0x69,0x6f,0x6e,0x3d,0x22,0x2f,0x72,0x61,0x6e,0x64,0x6f,0x6d,0x22,0x20,0x6d,
0x69,0x6f,0x6e,0x3d,0x22,0x2f,0x73,0x65,0x61,0x72,0x63,0x68,0x22,0x20,0x69,0x64, 0x65,0x74,0x68,0x6f,0x64,0x3d,0x22,0x47,0x45,0x54,0x22,0x3e,0x3c,0x69,0x6e,0x70,
0x3d,0x22,0x6b,0x69,0x77,0x69,0x78,0x73,0x65,0x61,0x72,0x63,0x68,0x66,0x6f,0x72, 0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22,0x73,0x75,0x62,0x6d,0x69,0x74,0x22,
0x6d,0x22,0x3e,0x3c,0x69,0x6e,0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22, 0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x52,0x61,0x6e,0x64,0x6f,0x6d,0x22,0x20,
0x69,0x64,0x3d,0x22,0x6b,0x69,0x77,0x69,0x78,0x72,0x61,0x6e,0x64,0x6f,0x6d,0x22,
0x20,0x2f,0x3e,0x3c,0x69,0x6e,0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22,
0x68,0x69,0x64,0x64,0x65,0x6e,0x22,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x63,0x6f, 0x68,0x69,0x64,0x64,0x65,0x6e,0x22,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x63,0x6f,
0x6e,0x74,0x65,0x6e,0x74,0x22,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x5f,0x5f, 0x6e,0x74,0x65,0x6e,0x74,0x22,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x5f,0x5f,
0x43,0x4f,0x4e,0x54,0x45,0x4e,0x54,0x5f,0x5f,0x22,0x20,0x2f,0x3e,0x3c,0x69,0x6e, 0x43,0x4f,0x4e,0x54,0x45,0x4e,0x54,0x5f,0x5f,0x22,0x20,0x2f,0x3e,0x3c,0x2f,0x66,
0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22,0x73,0x75,0x62,0x6d,0x69,0x74, 0x6f,0x72,0x6d,0x3e,0x0a,0x20,0x20,0x3c,0x66,0x6f,0x72,0x6d,0x20,0x6d,0x65,0x74,
0x22,0x20,0x69,0x64,0x3d,0x22,0x6b,0x69,0x77,0x69,0x78,0x73,0x65,0x61,0x72,0x63, 0x68,0x6f,0x64,0x3d,0x22,0x47,0x45,0x54,0x22,0x20,0x61,0x63,0x74,0x69,0x6f,0x6e,
0x68,0x22,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x53,0x65,0x61,0x72,0x63,0x68, 0x3d,0x22,0x2f,0x73,0x65,0x61,0x72,0x63,0x68,0x22,0x20,0x69,0x64,0x3d,0x22,0x6b,
0x22,0x20,0x2f,0x3e,0x3c,0x69,0x6e,0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d, 0x69,0x77,0x69,0x78,0x73,0x65,0x61,0x72,0x63,0x68,0x66,0x6f,0x72,0x6d,0x22,0x3e,
0x22,0x74,0x65,0x78,0x74,0x22,0x20,0x69,0x64,0x3d,0x22,0x6b,0x69,0x77,0x69,0x78, 0x3c,0x69,0x6e,0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22,0x68,0x69,0x64,
0x73,0x65,0x61,0x72,0x63,0x68,0x62,0x6f,0x78,0x22,0x20,0x6e,0x61,0x6d,0x65,0x3d, 0x64,0x65,0x6e,0x22,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x63,0x6f,0x6e,0x74,0x65,
0x22,0x70,0x61,0x74,0x74,0x65,0x72,0x6e,0x22,0x20,0x2f,0x3e,0x3c,0x2f,0x66,0x6f, 0x6e,0x74,0x22,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x5f,0x5f,0x43,0x4f,0x4e,
0x72,0x6d,0x3e,0x0a,0x3c,0x2f,0x73,0x70,0x61,0x6e,0x3e,0x0a,0x3c,0x64,0x69,0x76, 0x54,0x45,0x4e,0x54,0x5f,0x5f,0x22,0x20,0x2f,0x3e,0x3c,0x69,0x6e,0x70,0x75,0x74,
0x20,0x73,0x74,0x79,0x6c,0x65,0x3d,0x22,0x64,0x69,0x73,0x70,0x6c,0x61,0x79,0x3a, 0x20,0x74,0x79,0x70,0x65,0x3d,0x22,0x73,0x75,0x62,0x6d,0x69,0x74,0x22,0x20,0x69,
0x20,0x62,0x6c,0x6f,0x63,0x6b,0x3b,0x20,0x68,0x65,0x69,0x67,0x68,0x74,0x3a,0x20, 0x64,0x3d,0x22,0x6b,0x69,0x77,0x69,0x78,0x73,0x65,0x61,0x72,0x63,0x68,0x22,0x20,
0x34,0x35,0x70,0x78,0x3b,0x22,0x3e,0x3c,0x2f,0x64,0x69,0x76,0x3e,0x0a 0x76,0x61,0x6c,0x75,0x65,0x3d,0x22,0x53,0x65,0x61,0x72,0x63,0x68,0x22,0x20,0x2f,
0x3e,0x3c,0x69,0x6e,0x70,0x75,0x74,0x20,0x74,0x79,0x70,0x65,0x3d,0x22,0x74,0x65,
0x78,0x74,0x22,0x20,0x69,0x64,0x3d,0x22,0x6b,0x69,0x77,0x69,0x78,0x73,0x65,0x61,
0x72,0x63,0x68,0x62,0x6f,0x78,0x22,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x70,0x61,
0x74,0x74,0x65,0x72,0x6e,0x22,0x20,0x2f,0x3e,0x3c,0x2f,0x66,0x6f,0x72,0x6d,0x3e,
0x0a,0x3c,0x2f,0x73,0x70,0x61,0x6e,0x3e,0x0a,0x3c,0x64,0x69,0x76,0x20,0x73,0x74,
0x79,0x6c,0x65,0x3d,0x22,0x64,0x69,0x73,0x70,0x6c,0x61,0x79,0x3a,0x20,0x62,0x6c,
0x6f,0x63,0x6b,0x3b,0x20,0x68,0x65,0x69,0x67,0x68,0x74,0x3a,0x20,0x34,0x35,0x70,
0x78,0x3b,0x22,0x3e,0x3c,0x2f,0x64,0x69,0x76,0x3e,0x0a
}; };
const unsigned char stopwords_en[]={ const unsigned char stopwords_en[]={

View File

@ -19,6 +19,11 @@
float: left; float: left;
} }
#kiwixrandom {
margin: 0px;
float: left;
}
#kiwixsearchbox { #kiwixsearchbox {
margin: 0px; margin: 0px;
float: right; float: right;

View File

@ -18,6 +18,7 @@
<span id="kiwixtoolbar" class="ui-widget-header ui-corner-all"> <span id="kiwixtoolbar" class="ui-widget-header ui-corner-all">
<form action="/" method="GET"><input type="submit" value="Library" id="kiwixlibrary" /></form> <form action="/" method="GET"><input type="submit" value="Library" id="kiwixlibrary" /></form>
<form action="/__CONTENT__/" method="GET"><input type="submit" value="Home" id="kiwixhome" /></form> <form action="/__CONTENT__/" method="GET"><input type="submit" value="Home" id="kiwixhome" /></form>
<form action="/random" method="GET"><input type="submit" value="Random" id="kiwixrandom" /><input type="hidden" name="content" value="__CONTENT__" /></form>
<form method="GET" action="/search" id="kiwixsearchform"><input type="hidden" name="content" value="__CONTENT__" /><input type="submit" id="kiwixsearch" value="Search" /><input type="text" id="kiwixsearchbox" name="pattern" /></form> <form method="GET" action="/search" id="kiwixsearchform"><input type="hidden" name="content" value="__CONTENT__" /><input type="submit" id="kiwixsearch" value="Search" /><input type="text" id="kiwixsearchbox" name="pattern" /></form>
</span> </span>
<div style="display: block; height: 45px;"></div> <div style="display: block; height: 45px;"></div>