From 12f49aaae9fb85cf151c785f81ca04e2e4162d90 Mon Sep 17 00:00:00 2001 From: G1enB1and Date: Tue, 29 Jan 2019 11:13:20 -0600 Subject: [PATCH] fixed the order scripts are loaded moved all scripts to bottom of body --- Index.html | 22 ++++++++++++++-------- js/script.js | 4 ++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Index.html b/Index.html index b3a1a48..5a4280e 100644 --- a/Index.html +++ b/Index.html @@ -17,11 +17,6 @@ - - - - - @@ -49,7 +44,11 @@

Coffee Shop Locations

- + + + - - + + + + + + + diff --git a/js/script.js b/js/script.js index e9224fe..090acdd 100644 --- a/js/script.js +++ b/js/script.js @@ -58,9 +58,9 @@ function locationsViewModel() { // activate knockout.js and apply bindings in locationsViewModel // when all dependant DOM elements have been loaded and are ready. -$(document).ready(function() { + $(document).ready(function() { ko.applyBindings(new locationsViewModel()); -}); + }); /**