slitaz-forge rev 591
mirror/root/dir-generator.php: ISO-8859-1 -> UTF-8; white here already implemented link to the WebArchive (remove line breaks); remove unwanted letters from regexp. mirror/root/static/slitaz.css: white links on light-grey background -> brown links; searchbox with type="search" (it adds "clean" button on the right side when typing).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 17 15:20:34 2015 +0200 (2015-01-17) |
parents | f3da7ce92a08 |
children | 4546e754b5f4 |
files | mirror/root/dir-generator.php mirror/root/static/slitaz.css |
line diff
1.1 --- a/mirror/root/dir-generator.php Fri Jan 16 18:53:41 2015 +0100 1.2 +++ b/mirror/root/dir-generator.php Sat Jan 17 15:20:34 2015 +0200 1.3 @@ -7,7 +7,7 @@ 1.4 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> 1.5 <head> 1.6 <title>SliTaz mirror redirection</title> 1.7 - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 1.8 + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 1.9 <meta name="description" content="slitaz mirror redirection" /> 1.10 <meta name="robots" content="index, nofollow" /> 1.11 <meta name="author" content="SliTaz Contributors" /> 1.12 @@ -163,8 +163,8 @@ 1.13 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> 1.14 <head> 1.15 <title>Index of /$vpath</title> 1.16 - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 1.17 - <meta name="description" content=">Index of /$vpath" /> 1.18 + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 1.19 + <meta name="description" content="Index of /$vpath" /> 1.20 <meta name="robots" content="index, nofollow" /> 1.21 <meta name="author" content="SliTaz Contributors" /> 1.22 <link rel="shortcut icon" href="/static/favicon.ico" /> 1.23 @@ -254,7 +254,8 @@ 1.24 <div id="content"> 1.25 1.26 <div id="mirrors"> 1.27 -<img src="/static/network.png" alt="[ Mirrors ]" style="margin-right: 5px;" /> 1.28 +<a href="http://web.archive.org/web/*/http://mirror.slitaz.org"><img 1.29 + src="/static/network.png" alt="[ Mirrors ]" style="margin-right: 5px;" /></a> 1.30 EOT; 1.31 1.32 // Mirror list 1.33 @@ -485,7 +486,7 @@ 1.34 ".count($folderlist)." folders and ".count($filelist)." files.</div>"; 1.35 if (filesize($path."/README")) { 1.36 echo "<pre>\n"; 1.37 - echo preg_replace('!(((f|ht)tp(s)?://)[-a-zA-Zа-яА-Я()0-9@:%_+.~#?&;//=]+)!i', 1.38 + echo preg_replace('!(((f|ht)tp(s)?://)[-a-zA-Z()0-9@:%_+.~#?&;//=]+)!i', 1.39 '<a href="$1">$1</a>', file_get_contents($path."/README")); 1.40 echo "</pre>\n"; 1.41 } 1.42 @@ -518,7 +519,7 @@ 1.43 <p> 1.44 <a href="http://validator.w3.org/check?uri=referer"> 1.45 <img src="/static/xhtml10.png" 1.46 - alt="Valid XHTML 1.0" title="Code valid XHTML 1.0" 1.47 + alt="Valid XHTML 1.0" title="Valid XHTML 1.0 Transitional" 1.48 style="width: 80px; height: 15px;" /></a> 1.49 </p> 1.50 </div>
2.1 --- a/mirror/root/static/slitaz.css Fri Jan 16 18:53:41 2015 +0100 2.2 +++ b/mirror/root/static/slitaz.css Sat Jan 17 15:20:34 2015 +0200 2.3 @@ -112,7 +112,9 @@ 2.4 } 2.5 2.6 #block_info p { margin: 6px 0; padding: 0 12px 0 0; } 2.7 -#block_info a { font-weight: normal; } 2.8 +#block_info a { font-weight: normal; color: #B51; } 2.9 +#block_info a:hover { color: #000; } 2.10 + 2.11 #block ul { list-style-type: square; } 2.12 #block a:hover { color: #afafaf; } 2.13 2.14 @@ -265,7 +267,7 @@ 2.15 /* Form */ 2.16 2.17 form { display: inline; } 2.18 -input[type="submit"], input[type="text"], textarea, select { 2.19 +input[type="submit"], input[type="text"], input[type="search"], textarea, select { 2.20 color: #444444; 2.21 border: 1px solid #cccccc; 2.22 padding: 4px; 2.23 @@ -279,7 +281,7 @@ 2.24 -webkit-padding-start: 6px; 2.25 } 2.26 2.27 -input[type="text"], textarea { background: #fefefe; border: 2px solid #ccc; 2.28 +input[type="text"], input[type="search"], textarea { background: #fefefe; border: 2px solid #ccc; 2.29 width: 460px; } 2.30 /*input[type="file"] { border: 2px solid #ddd; }*/ 2.31 /*input[type="checkbox"] { background: #fefefe; }*/ 2.32 @@ -322,7 +324,7 @@ 2.33 2.34 .searchbox input[type=submit]:hover { background-color: #444; } 2.35 2.36 -.searchbox input[type=text] { 2.37 +.searchbox input[type=text], input[type=search] { 2.38 border: 1px solid #333333; 2.39 padding: 4px; 2.40 height: 17px;