diff --git a/public/scripts/population.js b/public/scripts/population.js index fcd4843..b915710 100644 --- a/public/scripts/population.js +++ b/public/scripts/population.js @@ -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") { diff --git a/views/about.haml b/views/about.haml index 07bca2e..5bba00b 100644 --- a/views/about.haml +++ b/views/about.haml @@ -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" + @@ -50,4 +50,10 @@ "6437393362223b793d27273b666f7228693d303b693c782e6c656e6774683b692b3d32297b" + "792b3d756e657363617065282725272b782e73756273747228692c3229293b7d79\";y='';" + "for(i=0;i "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. \ No newline at end of file diff --git a/views/search.haml b/views/search.haml index 63a6f0f..ecada99 100644 --- a/views/search.haml +++ b/views/search.haml @@ -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 diff --git a/views/style.scss b/views/style.scss index 38877c6..a55fba3 100644 --- a/views/style.scss +++ b/views/style.scss @@ -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; + } + } } } } @@ -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;