Changeset 9bbbcce


Ignore:
Timestamp:
Jul 23, 2009 4:28:28 AM (11 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
fb47eef
Parents:
0aae2deb
Message:

Add header graphic to i2psnark and fill out the panel colors a touch.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r0aae2deb r9bbbcce  
    8181        out.write(HEADER_BEGIN);
    8282        // we want it to go to the base URI so we don't refresh with some funky action= value
    83         out.write("<meta http-equiv=\"refresh\" content=\"60;" + req.getRequestURI() + peerString + "\">\n");
     83        out.write("<meta http-equiv=\"refresh\" content=\"300;" + req.getRequestURI() + peerString + "\">\n");
    8484        out.write(HEADER);
    8585        out.write("</head><body>");
    86         out.write("<div class=\"page\"><table border=\"0\" width=\"100%\"><tr><td align=\"center\" valign=\"top\" class=\"snarkTitle\">I2PSnark<br>Anonymous BitTorrent Client for I2P<hr /></hr></td></tr>");
    87         out.write("<tr><td align=\"center\"><a href=\"" + req.getRequestURI() + peerString + "\" class=\"snarkRefresh\">Refresh</a>");
    88         out.write(" | <a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkRefresh\">Forum</a>\n");
     86        out.write("<div class=\"page\"><table border=\"0\" width=\"100%\"><tr><td align=\"center\" class=\"snarkTitle\"><a href=\"" + req.getRequestURI() + peerString + "\" title=\"I2PSnark (Manual Page Refresh)\"><img src=\"/themes/console/images/i2psnark.png\" alt=\"I2PSnark Anonymous BitTorrent Client\" border=\"0\"></a><hr>");
     87        out.write("<a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkRefresh\">Forum</a>\n");
    8988        Map trackers = _manager.getTrackers();
    9089        for (Iterator iter = trackers.entrySet().iterator(); iter.hasNext(); ) {
     
    9695                continue;
    9796            baseURL = baseURL.substring(e + 1);
    98             out.write(" | <a href=\"" + baseURL + "\" class=\"snarkRefresh\">" + name + "</a>");
     97            out.write("<a href=\"" + baseURL + "\" class=\"snarkRefresh\">" + name + "</a>");
    9998        }
    10099        out.write("</table>\n");
     
    492491        if (remaining == 0)
    493492            out.write("<a href=\"" + _manager.linkPrefix() + snark.meta.getName()
    494                       + "\" title=\"Download the completed file\">");
     493                      + "\" title=\"Click to access completed downloaded..\">");
    495494        out.write(filename);
    496495        if (remaining == 0)
  • installer/resources/themes/console/snark.css

    r0aae2deb r9bbbcce  
    33        color:#001;
    44        font-family:"Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif;
    5   font-size: 9pt;
     5  font-size: 8pt;
    66}
    77
     
    1414.snarkRefresh {
    1515  font-size: 9pt;
     16}
     17
     18.snarkRefresh {
     19     border: 1px outset #001;
     20     padding: 1px 10px;
     21     background: #ffb;
     22     text-decoration: none;
     23     border-radius: 4px;
     24     -moz-border-radius: 4px;
     25     -khtml-border-radius: 4px;
     26     font-size: 9pt;
     27     font-weight: bold;
     28     margin: -10px 3px 0 3px;
     29     text-align: center;
     30     vertical-align: middle;
     31     text-transform: uppercase;
    1632}
    1733
     
    3147  border: 2px inset #770;
    3248  text-align: center;
     49  overflow-x: scroll;           
     50  background: #ddf url('../console/light/images/lightbluetile.png');
    3351}
    3452
     
    5169        padding: 5px;
    5270  font-size: 9pt;
     71  border-top: 1px outset #001;
     72  border-bottom: 1px inset #001; 
    5373}
    5474
     
    90110        color:#001;
    91111  margin: 20px;
    92   padding: 0 20px 5px 20px;
     112  padding: 10px 20px 5px 20px;
    93113  -moz-border-radius: 4px;
    94114  -khtml-border-radius: 4px;
     
    99119  -moz-box-shadow: inset 0px 0px 1px 0px #002;
    100120  text-align: center;
     121  background: #ddf url('../console/light/images/sandtile.png');
    101122}
    102123
     
    135156  text-align: center;
    136157}
     158
     159a:link{
     160     color: #830;
     161     text-decoration: none;
     162     font-weight: bold;
     163     word-wrap: break-word;
     164}
     165
     166a:visited{
     167     color: #606;
     168     text-decoration: none;
     169     font-weight: bold;
     170}
     171
     172a:hover{
     173     color: #f60;
     174     font-weight: bold;
     175}
     176
     177input {
     178/*  font-family: "Lucida Console", "DejaVu Sans Mono", Courier, mono !important;*/
     179  font-size: 9pt;
     180  font-weight: bold;
     181  text-align: left;
     182  padding: 2px;
     183}     
     184
     185select {
     186        font-family:"Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif;
     187  background-color: #ffe;
     188  color: #310;
     189  font-size: 9pt;
     190}
     191}
Note: See TracChangeset for help on using the changeset viewer.