Skip to content

Commit

Permalink
Refine custom images so adding is even easier
Browse files Browse the repository at this point in the history
  • Loading branch information
Artaud committed Jan 15, 2019
1 parent 20ae488 commit 8e1b503
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 7 additions & 0 deletions _data/award_images.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameter,emptyImg,fullImg,attribution
'', 'poo.svg', 'poo_full.svg', ''
'?1', 'stalin_empty.svg', 'stalin_full.svg', 'Icon: stalin by Greg Ellinger from the Noun Project'
'?2', 'poo.svg', 'poo_full.svg', ''
'?3', 'thumbsdown_empty.svg', 'thumbsdown_full.svg', ''
'?4', 'trojan_empty.svg', 'trojan_full.svg', 'Icon: Troy horse by Juan Pablo Bravo from the Noun Project'
'?5', 'trash.svg', 'trash_full.svg', ''
9 changes: 3 additions & 6 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@
$(document).ready(function () {

scoreCustomization = []
addCustomScore('', 'poo.svg', 'poo_full.svg', '')
addCustomScore('?1', 'stalin_empty.svg', 'stalin_full.svg', 'Icon: stalin by Greg Ellinger from the Noun Project')
addCustomScore('?2', 'poo.svg', 'poo_full.svg', '')
addCustomScore('?3', 'thumbsdown_empty.svg', 'thumbsdown_full.svg', '')
addCustomScore('?4', 'trojan_empty.svg', 'trojan_full.svg', 'Icon: Troy horse by Juan Pablo Bravo from the Noun Project')
addCustomScore('?5', 'trash.svg', 'trash_full.svg', '')
{% for img in site.data.award_images %}
addCustomScore({{img.parameter}}, {{img.emptyImg}}, {{img.fullImg}}, {{img.attribution}})
{% endfor %}

console.log(scoreCustomization)
var arrayLength = scoreCustomization.length;
Expand Down

0 comments on commit 8e1b503

Please sign in to comment.