This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative "scraper" | |
def print_list(list) | |
list.each_with_index do |article, index| | |
if article[:bought] | |
puts "#{index + 1} - #{article[:name]} - (#{article[:price]}€)[X]" | |
else | |
puts "#{index + 1} - #{article[:name]} - (#{article[:price]}€)[-]" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
text-align: center; | |
padding: 50px; | |
font-size: 20px; | |
} | |
ul { | |
list-style: none; | |
} | |
ul li { | |
cursor: pointer; |