Changeset 1200

Show
Ignore:
Timestamp:
01/18/10 12:51:41 (2 years ago)
Author:
wyatt
Message:

Removed ads. Removed donations button. Updated news to note that the site is
not maintained and the code is GPL.

Location:
TripPlanner/branches/rb-0.4/tripplanner
Files:
4 removed
4 modified

Legend:

Unmodified
Added
Removed
  • TripPlanner/branches/rb-0.4/tripplanner/public/javascripts/gmap.js

    r1185 r1200  
    395395    var projection = new GMercatorProjection(10); 
    396396    var copyrights = new GCopyrightCollection('&copy; <a href="http://trimet.org/">TriMet</a>'); 
    397     var wms_url = 'http://tilec.trimet.org/tilecache/tilecache.py?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=currentOSPN&FORMAT=image/pngSRS=EPSG:2913&WIDTH=256&HEIGHT=256'; 
    398     var layer = new GTileLayer(copyrights, 0, 9); 
     397    var wms_url = 'http://maps.trimet.org/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=currentOSPN&FORMAT=image/pngSRS=EPSG:4326&WIDTH=256&HEIGHT=256'; 
     398    var layer = new GTileLayer(copyrights, 10, 19); 
    399399    layer.isPng = function() { return true; }; 
    400400    layer.getOpacity = function() { return 1.0; }; 
    401401    layer.getTileUrl = function(tile, zoom) { 
    402       var bbox = [7628293, 660879, 7632389, 664975].join(','); 
    403       var tile_url = [wms_url, "&BBOX=", bbox].join(''); 
     402      var tile_url; 
     403      var x = tile.x * 256; 
     404      var y = tile.y * 256; 
     405      var sw_point = new GPoint(x, y + 255); 
     406      var ne_point = new GPoint(x + 255, y); 
     407      var sw = projection.fromPixelToLatLng(sw_point, zoom); 
     408      var ne = projection.fromPixelToLatLng(ne_point, zoom ); 
     409      var bbox = [sw.lng(), sw.lat(), ne.lng(), ne.lat()].join(','); 
     410      tile_url = [wms_url, "&BBOX=", bbox].join(''); 
    404411      return tile_url; 
    405412    }; 
  • TripPlanner/branches/rb-0.4/tripplanner/public/stylesheets/base.css

    r1177 r1200  
    5353#masthead, #input_container, #bar { 
    5454  padding: 5px; 
    55 } 
    56 #input_container, #bar, #content { 
    57   margin-right: 121px; 
    58 } 
    59 #ads { 
    60   position: absolute; 
    61   top: 0; 
    62   right: 0; 
    63   width: 120px; 
    64   height: 100%; 
    65   background: white; 
    66   overflow: hidden; 
    67   border-left: 1px solid #99b3cc; 
    68 } 
    69 .ad.banner, .ad.banner a, .ad.banner a img { 
    70   width: 120px; 
    71   height: 90px; 
    72 } 
    73 .ad.banner a { 
    74   display: block; 
    7555} 
    7656#footer { 
  • TripPlanner/branches/rb-0.4/tripplanner/templates/layout.html

    r1177 r1200  
    127127                <hr /> 
    128128 
    129                 <p> 
    130                   byCycle needs your support. Spread the word. Make a donation if you can. Thanks.<br /> 
    131                   <%include file="/widgets/paypal-button.html" /> 
    132                 </p> 
    133  
    134                 <hr /> 
    135  
    136129                <p class="noprint"> 
    137130                  Users should independently verify all information presented here. This 
     
    145138 
    146139                <p class="no-bottom-margin"> 
    147                   &copy; 2004-2008 byCycle.org 
     140                  &copy; 2004-2009 byCycle.org 
    148141                </p> 
    149142              % endif 
     
    187180      </div> 
    188181      <!-- /Content --> 
    189  
    190  
    191       <!-- Ads --> 
    192       <div id="ads" class="noprint"> 
    193         ${self.ads()} 
    194       </div> 
    195       <!-- /Ads --> 
    196182 
    197183 
     
    268254<%def name="javascript_includes()"></%def> 
    269255<%def name="javascript()"></%def> 
    270  
    271 <%def name="ads()"> 
    272   <div class="ad banner"> 
    273     <a href="http://www.myvega.com/" title="Vega - Complete Wholefood Health Optimizer"><img src="${h.url_for('/images/ads/oi_vega.jpg')}" width="120" height="90" alt="Vega - Complete Wholefood Health Optimizer" /></a> 
    274   </div> 
    275   <div class="ad banner"> 
    276     <a href="http://www.veganbodybuilding.com/" title="Vegan Body Building and Fitness"><img src="${h.url_for('/images/ads/oi_vbb.jpg')}" width="120" height="90" alt="Vegan Body Building and Fitness" /></a> 
    277   </div> 
    278   ${h.javascript_include_tag('ads')} 
    279 </%def> 
    280256 
    281257<%def name="errors()"> 
  • TripPlanner/branches/rb-0.4/tripplanner/templates/news.html

    r1184 r1200  
    22 
    33<p> 
    4   No news. 
     4  <small><em>January 18, 2010</em></small> 
    55</p> 
     6 
     7<p> 
     8  This site is unmaintained. The last significant changes were made in <strong>May of 2007</strong> (although several data updates for the Portland region have been made since then).  
     9</p> 
     10 
     11<p> 
     12  <a href="http://project.bycycle.org/">The code</a> is open source (GPLv3). 
     13</p>