Created
March 1, 2017 17:49
-
-
Save michaeljwiebe/1b993de6f6c5f4c43e1e7b2277a5568b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var work = { | |
jobs : | |
[ { | |
"employer" : "Aluminum Trailer Company", | |
"yearsWorked" : 2, | |
"date" : "07/2014 to 06/2016", | |
"city" : "Nappanee, Indiana", | |
"position" : "PI and Training Coordinator", | |
"description" : "Adapted training system and methodology for use in factory and applied improvements in various environments", | |
"location" : "Nappanee, Indiana" | |
},{ | |
"employer" : "Hope Builders Group", | |
"yearsWorked" : 1, | |
"date" : "06/2013 to 06/2014", | |
"city" : "Elkhart, Indiana", | |
"position" : "Lean Change Agent", | |
"description" : "Initiated and drove cultural change across organization", | |
"location": "Elkhart, Indiana" | |
} ] | |
} | |
var workDisplay = function() { | |
work.jobs.forEach(function(job) { | |
$("#workExperience").append(HTMLworkStart); | |
var formattedEmployer = HTMLworkEmployer.replace("%data%",[job].employer); | |
var formattedTitle = HTMLworkTitle.replace("%data%",[job].position); | |
var formattedEmployerTitle = formattedEmployer + formattedTitle; | |
$(".work-entry:last").append(formattedEmployerTitle); | |
var formattedDate = HTMLworkDates.replace("%data%",[job].date); | |
$(".work-entry:last").append(formattedDate); | |
var formattedDescription = HTMLworkDescription.replace("%data%",[job].description); | |
$(".work-entry:last").append(formattedDescription); | |
}); | |
}; | |
workDisplay(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment