diff --git a/dist/index.html b/dist/index.html index 35332a6f..ddfc8f4b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -4,13 +4,16 @@ - Webpack Starter Kit + Adam's Travel Tracker - turing logo - - + +
+
+ +
+
+
- diff --git a/package-lock.json b/package-lock.json index 2c2dd90c..133fb40a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "webpack-starter-kit", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.0.0", + "name": "webpack-starter-kit", + "version": "2.0.0", "license": "MIT", "devDependencies": { "chai": "^4.3.4", diff --git a/src/scripts.js b/src/scripts.js index f743b444..4b4ad813 100644 --- a/src/scripts.js +++ b/src/scripts.js @@ -1,11 +1,28 @@ -// This is the JavaScript entry file - your code begins here -// Do not delete or rename this file ******** - -// An example of how you tell webpack to use a CSS (SCSS) file +// import live here import './css/styles.css'; -// An example of how you tell webpack to use an image (also need to link to it in the index.html) import './images/turing-logo.png' +// query selectors go here + +// global variables used for data model here +let travelersRepo +let currentTraveler + +//functions here +function apiCalls () { + getApiData() + loadHandler() +} + +function getApiData() { + let getAllTravelers = fetch('http://localhost:3001/api/v1/travelers ') +} + + +function loadHandler() { + console.log("this loaded") +} -console.log('This is the JavaScript entry file - your code begins here.'); +//event listeners here +window.addEventListener("load", apiCalls()) \ No newline at end of file