Skip to content

Instantly share code, notes, and snippets.

@michaeljwiebe
Created March 1, 2017 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeljwiebe/1b993de6f6c5f4c43e1e7b2277a5568b to your computer and use it in GitHub Desktop.
Save michaeljwiebe/1b993de6f6c5f4c43e1e7b2277a5568b to your computer and use it in GitHub Desktop.
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