Changeset 1200
- Timestamp:
- 01/18/10 12:51:41 (2 years ago)
- Location:
- TripPlanner/branches/rb-0.4/tripplanner
- Files:
-
- 4 removed
- 4 modified
-
controllers/ads.py (deleted)
-
public/images/ads (deleted)
-
public/javascripts/ads.js (deleted)
-
public/javascripts/gmap.js (modified) (1 diff)
-
public/static/_google_ads_for_results.html (deleted)
-
public/stylesheets/base.css (modified) (1 diff)
-
templates/layout.html (modified) (4 diffs)
-
templates/news.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
TripPlanner/branches/rb-0.4/tripplanner/public/javascripts/gmap.js
r1185 r1200 395 395 var projection = new GMercatorProjection(10); 396 396 var copyrights = new GCopyrightCollection('© <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); 399 399 layer.isPng = function() { return true; }; 400 400 layer.getOpacity = function() { return 1.0; }; 401 401 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(''); 404 411 return tile_url; 405 412 }; -
TripPlanner/branches/rb-0.4/tripplanner/public/stylesheets/base.css
r1177 r1200 53 53 #masthead, #input_container, #bar { 54 54 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;75 55 } 76 56 #footer { -
TripPlanner/branches/rb-0.4/tripplanner/templates/layout.html
r1177 r1200 127 127 <hr /> 128 128 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 136 129 <p class="noprint"> 137 130 Users should independently verify all information presented here. This … … 145 138 146 139 <p class="no-bottom-margin"> 147 © 2004-200 8byCycle.org140 © 2004-2009 byCycle.org 148 141 </p> 149 142 % endif … … 187 180 </div> 188 181 <!-- /Content --> 189 190 191 <!-- Ads -->192 <div id="ads" class="noprint">193 ${self.ads()}194 </div>195 <!-- /Ads -->196 182 197 183 … … 268 254 <%def name="javascript_includes()"></%def> 269 255 <%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>280 256 281 257 <%def name="errors()"> -
TripPlanner/branches/rb-0.4/tripplanner/templates/news.html
r1184 r1200 2 2 3 3 <p> 4 No news.4 <small><em>January 18, 2010</em></small> 5 5 </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>