From d8a378e7bb009131ae422fbc1640e51d4d938ef0 Mon Sep 17 00:00:00 2001 From: Leah Bueing Date: Sun, 27 Nov 2016 16:13:28 -0800 Subject: [PATCH 1/3] wave 1 complete --- index.html | 18 ++++++++++++++++++ scripts.js | 19 +++++++++++++++++++ styles.css | 0 3 files changed, 37 insertions(+) create mode 100644 index.html create mode 100644 scripts.js create mode 100644 styles.css diff --git a/index.html b/index.html new file mode 100644 index 00000000..f45bc598 --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + + + + trek + + + + + +
+ + + + + + + diff --git a/scripts.js b/scripts.js new file mode 100644 index 00000000..7a44f1a2 --- /dev/null +++ b/scripts.js @@ -0,0 +1,19 @@ +$(document).ready(function() { + +// Which URL do we want to 'get'? +var url = 'https://trektravel.herokuapp.com/trips'; + +// What do we want to happen when we get our response? +var successCallback = function (response) { + for (var i = 0; i < response.length; i++ ) { + $('#all_trips').append("

" + response[i].name + "

"); + } +}; + +// $.get(url, successCallback) - give you list w/o clicking +$('body').on('click', 'button', function() { + console.log('clicked'); + $.get(url, successCallback); +}); + +}); diff --git a/styles.css b/styles.css new file mode 100644 index 00000000..e69de29b From 90497d91083eae987fdeb4f88fce09f8c8cdbf04 Mon Sep 17 00:00:00 2001 From: Leah Bueing Date: Sun, 27 Nov 2016 22:09:58 -0800 Subject: [PATCH 2/3] pop up successfully showing up --- .DS_Store | Bin 0 -> 6148 bytes css/app.css | 3 + css/foundation.css | 4226 +++++++++++++++ css/foundation.min.css | 2 + index.html | 25 +- js/app.js | 1 + js/vendor/foundation.js | 9143 ++++++++++++++++++++++++++++++++ js/vendor/foundation.min.js | 4 + js/vendor/jquery.js | 9842 +++++++++++++++++++++++++++++++++++ js/vendor/what-input.js | 295 ++ scripts.js | 18 +- styles.css | 3 + 12 files changed, 23560 insertions(+), 2 deletions(-) create mode 100644 .DS_Store create mode 100644 css/app.css create mode 100644 css/foundation.css create mode 100644 css/foundation.min.css create mode 100644 js/app.js create mode 100644 js/vendor/foundation.js create mode 100644 js/vendor/foundation.min.js create mode 100644 js/vendor/jquery.js create mode 100644 js/vendor/what-input.js diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..7a34317926e91aa4f210d2ba7231056525f1c65f GIT binary patch literal 6148 zcmeHKOHKko5Pda}2)JSCa+a=0xWPyU6HMH|UJV0L%;*@wM0ax)@8bbHfcL;x-5nwg zZVfS2N%iYbz5cwJOicrj!ON@}RQLlL(+ z=TBWYB=cycDPRh0E70)GuIB&Y@Av<0lC?|$Q{Z1IAkBP|4|t@ITXznpxi+QW(A6}q m_PC+2;!-hVH5H%Gov}aF3NZ^