Skip to content

Commit

Permalink
Added a disclaimer to the Ribble results
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwhimpey committed Apr 23, 2011
1 parent bfec247 commit 4063e05
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions public/scripts/population.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ $(function(){
$(".result").each(function(){

// Get the store name
var store = $(this).find("h3 a").text().replace(/\s/, "+");
var store = $(this).find("h3 a:first-child").text().replace(/\s/, "+");

// Set the holder for the appending of the results
var result = $(this);

// Make the AJAX call to grab the results
$.get("/json/" + store + "/" + search + "/3", function(data){
$.get("/json/" + store + "/" + search + "/1", function(data){

// If there's any results at all
if (data.Results != "None") {
Expand Down
10 changes: 8 additions & 2 deletions views/about.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
It's developed by [Jim Whimpey](http://jimwhimpey.com), a cyclist who had this ill-conceived idea to make it even
easier to spend more money on cycling kit.
%p
If you find a bug or have a suggestion for adding another site to search across or anything really email me at
If you find a bug, have a suggestion for adding another site to search or any other idea email me at
:javascript
function hiveware_enkoder(){var i,j,x,y,x=
"x=\"783d223738336432323337333833363330333233313336363333333332333233383332" +
Expand All @@ -50,4 +50,10 @@
"6437393362223b793d27273b666f7228693d303b693c782e6c656e6774683b692b3d32297b" +
"792b3d756e657363617065282725272b782e73756273747228692c3229293b7d79\";y='';" +
"for(i=0;i<x.length;i+=2){y+=unescape('%'+x.substr(i,2));}y";
while(x=eval(x));}hiveware_enkoder();
while(x=eval(x));}hiveware_enkoder();
%h3{:id => "ribble"} A Note on Ribble Cycles
%p
Unfortunately there's no way to programmatically tell Ribble we're browsing
from Australia. To get around this Frugal Rouleur has to get the prices in GBP and convert
them to AUD on the fly. This often results in AUD values which don't exactly match
what's listed in AUD on Ribble's website.
1 change: 1 addition & 0 deletions views/search.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
.result{:class => "loading ribble"}
%h3
%a{:href => "http://www.ribblecycles.co.uk/product/t/#{@searchconcat}"} Ribble Cycles
%a{:href => "/about#ribble", :class => "info"} *
#explanation
:markdown
*Frugal Roleur* is an Australian tool for searching and comparing products across online cycling merchandise retailers
Expand Down
11 changes: 10 additions & 1 deletion views/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,17 @@ html {
h3 {
background: #EEE;
padding: 10px 20px;
margin: 0 0 10px 0;
margin: 20px 0 10px 0;
font-size: 16px;
font-weight: bold;
.info {
font-family: Menlo, Monaco, Consolas, Courier, monospace;
padding: 0 4px;
color: #53A7FF;
&:hover {
color: #333;
}
}
}
}
}
Expand All @@ -198,6 +206,7 @@ html {
height: 150px;
background: url(/images/loading.gif) no-repeat center 80px;
}
h3 { margin: 0 0 10px 0; }
.result {
table {
width: 660px;
Expand Down

0 comments on commit 4063e05

Please sign in to comment.