From feced21e7fcbf366ae3b47fa84505824496f5d97 Mon Sep 17 00:00:00 2001 From: Jennie Kim Date: Tue, 11 Nov 2014 09:22:21 -0800 Subject: [PATCH] Update helper.js Gave Online Classes its own div so it is not contained within the education div and left aligns properly. (I had Ben review my code before submitting this request to make sure it wasn't crazy) --- js/helper.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/helper.js b/js/helper.js index e2a62a8..5a56d57 100644 --- a/js/helper.js +++ b/js/helper.js @@ -34,7 +34,11 @@ var HTMLschoolDates = "
%data%
"; var HTMLschoolLocation = "
%data%
"; var HTMLschoolMajor = "
Major: %data%
" -var HTMLonlineClasses = "

Online Classes

"; +// added this to give online classes its own div; otherwise it uses the education div as its left alignment (doubles left padding) +var HTMLonlineClassesStart = "
"; + +// added a line break before online classes header to make it easier to read +var HTMLonlineClasses = "

Online Classes

"; var HTMLonlineTitle = "%data%"; var HTMLonlineSchool = " - %data%"; var HTMLonlineDates = "
%data%
"; @@ -163,4 +167,4 @@ window.addEventListener('load', initializeMap); // calls the initialize map window.addEventListener('resize', function(e) { // Make sure the map bounds get updated on page resize map.fitBounds(mapBounds); -}); \ No newline at end of file +});