Skip to content
Upcoming UK Bank Holidays in 2019 using the fetch API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
img
sass
.DS_Store
.gitignore
README.md
gulpfile.js
index.html
package-lock.json
package.json

README.md

Bank Holidays in England (UK) during 2018/19 using .fetch()

I used JSON data provided by gov.uk here using the new .fetch() API in vanilla JS to map() over the holidays, and only display the ones in 2018 / 19.

You can find a working version over at https://codepen.io/mushroom23/full/NOxBOM/

Next Steps

  • DONE Use Date.now() to get the latest time, and only display bank holidays in the future.
  • DONE Display a countdown to the next bank holiday
You can’t perform that action at this time.