Commit 7a04ea45 authored by Leon Byford's avatar Leon Byford

Merge branch 'doodle' into 'master'

Improvements to Doodle results

See merge request !17
parents b97ff0e5 84e0559f
......@@ -9,7 +9,8 @@
/feed /feed.xml
/tag/* /tag#:splat
/api https://doodle.com/api/v2.0/polls/hzfpb28qf59e7gfb 200
/doodle/:id/:time.json https://doodle.com/api/v2.0/polls/:id?:time 200
/doodle/:id /doodle#:id
# SHORTCUTS
/deploys https://app.netlify.com/sites/ldjb-blog/deploys
......
if (location.hash == "#hzfpb28qf59e7gfb") {
fetch("api").then(
history.replaceState({}, "", "/doodle/hzfpb28qf59e7gfb");
fetch("/doodle/hzfpb28qf59e7gfb/" + new Date().getTime() + ".json").then(
d => d.json().then(
j => {
populateResults(j);}));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment