zeus.ugent.be/content/assets/scripts/quote.coffee

5 lines
177 B
CoffeeScript
Raw Normal View History

2016-10-03 22:33:52 +02:00
$ ->
2016-10-03 22:54:54 +02:00
$.getJSON './quotes.json', (data) ->
2016-10-03 22:33:52 +02:00
quote = data[Math.floor(Math.random()*data.length)]
$('#quote').append("<h3>#{quote.title}</h3><p>#{quote.description}</p>")