Skip to content

robwakeman/fetch-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch API Sandbox

About

Fetch API sandbox to get data from local resources as well as a remote API.

Thanks to Enoc for the original code.

Demo

I have amended the original code as follows:

JavaScript

  • moved js to external file

  • added fetch and promise polyfills.

  • transpiled the promise polyfill using the online Babel transpiler

  • added global exports variable to fetch.js to prevent console error: Uncaught ReferenceError: exports is not defined at fetch.js:3, as recommended here.

var exports = {};
  • added error handling to fetch requests

HTML

  • amended markup

CSS

  • added custom CSS

About

Fetch API sandbox to get data from local resources as well as a remote API. Modified from original by Enoc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published