Skip to content

Commit

Permalink
Updated icons to use royalty free ones
Browse files Browse the repository at this point in the history
  • Loading branch information
dutts committed Feb 4, 2015
1 parent 954f1ef commit 0d10559
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 10 deletions.
Binary file modified _misc/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _misc/toilet-paper-icon_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _misc/toilet-paper-icon_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added addon/data/48-fork-and-knife-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 4 additions & 9 deletions addon/data/api.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
// http://www.just-eat.co.uk/area/nn6-creaton
// toilet-paper-icon_32 from Rokey (http://www.iconarchive.com/show/smooth-icons-by-rokey/toilet-paper-icon.html)
// 48-fork-and-knife-icon by Glyphish (http://glyphish.com/)

function AppendImg(element, filename) {
var img = document.createElement('img');
img.src = self.options.prefixDataURI + filename;
element.appendChild(img);
}

function Thumb(element) {
var img = document.createElement('img');
img.src = self.options.prefixDataURI + 'good.png';
element.appendChild(img);
}

$("article").each(function () {
var _this = $(this);
var name = $("h3.restaurantDetailsName a:first", this).text();
Expand Down Expand Up @@ -52,10 +47,10 @@ $("article").each(function () {
//img.src = self.options.prefixDataURI + rating + '.png';
//_this.append(img);
for (var i = 0; i < rating; i++) {
AppendImg(scorePlaceholder, 'good.png');
AppendImg(scorePlaceholder, '48-fork-and-knife-icon.png');
}
for (var i = 0; i < 5 - rating; i++) {
AppendImg(scorePlaceholder, 'poop.png');
AppendImg(scorePlaceholder, 'toilet-paper-icon_32.png');
}
var resultText = document.createElement('p');
resultText.style.fontWeight = "bold";
Expand Down
Binary file removed addon/data/good.png
Binary file not shown.
Binary file removed addon/data/poop.png
Binary file not shown.
Binary file added addon/data/toilet-paper-icon_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified addon/nomorvom.xpi
Binary file not shown.
2 changes: 1 addition & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"description": "Never eat from a dodgy takeaway again. Display food.gov.uk food hygiene scores in your Just Eat search results.",
"author": "Richard Dutton",
"license": "MPL 2.0",
"version": "0.3"
"version": "0.4"
}

0 comments on commit 0d10559

Please sign in to comment.