Denver CO

var productTitle = ("40-Hour HAZWOPER Initial Site Worker — April 2, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — April 22, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — April 23, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — June 7, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — May 17, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — April 26, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — April 5, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — June 4, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — May 14, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — April 23, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — April 2, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — June 3, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — June 4, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — May 14, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — June 4, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — May 14, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — April 23, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — April 2, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16-Hour HAZWOPER Upgrade — June 6, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16-Hour HAZWOPER Upgrade — May 16, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16-Hour HAZWOPER Upgrade — April 25, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16-Hour HAZWOPER Upgrade — April 4, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — June 7, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — May 17, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — April 26, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — April 5, 2019 (Denver CO)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); } function generateGuid() { var S4 = function() { return (((1+Math.random())*0x10000)|0).toString(16).substring(1); }; return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4()); } function findTitle(title, arr){ for(var i = 0; i < arr.length; i++){ if(arr[i].title == title) return true; } return false; } function createSeminarDivs(){ for(var i = 0; i < uniqueSeminarTitles.length; i++) document.getElementById('eventsapp-product-container').innerHTML += '

' + uniqueSeminarTitles[i].title + '

' } function organizeSeminarsIntoDivs(){ for(var i = 0; i < uniqueSeminarTitles.length; i++){ var seminars = []; var productTitle = ("40-Hour HAZWOPER Initial Site Worker — April 2, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/02/2019 00:00:00"); var endDate = new Date("04/02/2019 00:00:00"); var registerByDate = (new Date(new Date("04/02/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380683821105; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("DOT Hazmat Transportation Complete Certification — April 22, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/22/2019 00:00:00"); var endDate = new Date("04/22/2019 00:00:00"); var registerByDate = (new Date(new Date("04/22/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380731891761; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("32500") == 0 ? "" : '$' + (Number("32500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("32500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("40-Hour HAZWOPER Initial Site Worker — April 23, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/23/2019 00:00:00"); var endDate = new Date("04/23/2019 00:00:00"); var registerByDate = (new Date(new Date("04/23/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380683919409; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Annual Refresher — June 7, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/07/2019 00:00:00"); var endDate = new Date("06/07/2019 00:00:00"); var registerByDate = (new Date(new Date("06/07/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380828196913; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Annual Refresher — May 17, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/17/2019 00:00:00"); var endDate = new Date("05/17/2019 00:00:00"); var registerByDate = (new Date(new Date("05/17/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380828065841; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Annual Refresher — April 26, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/26/2019 00:00:00"); var endDate = new Date("04/26/2019 00:00:00"); var registerByDate = (new Date(new Date("04/26/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380828000305; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Annual Refresher — April 5, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/05/2019 00:00:00"); var endDate = new Date("04/05/2019 00:00:00"); var registerByDate = (new Date(new Date("04/05/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380827902001; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Initial Training — June 4, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/04/2019 00:00:00"); var endDate = new Date("06/04/2019 00:00:00"); var registerByDate = (new Date(new Date("06/04/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380769968177; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Initial Training — May 14, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/14/2019 00:00:00"); var endDate = new Date("05/14/2019 00:00:00"); var registerByDate = (new Date(new Date("05/14/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380769476657; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Initial Training — April 23, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/23/2019 00:00:00"); var endDate = new Date("04/23/2019 00:00:00"); var registerByDate = (new Date(new Date("04/23/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380769247281; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Initial Training — April 2, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/02/2019 00:00:00"); var endDate = new Date("04/02/2019 00:00:00"); var registerByDate = (new Date(new Date("04/02/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380769181745; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("DOT Hazmat Transportation Complete Certification — June 3, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/03/2019 00:00:00"); var endDate = new Date("06/03/2019 00:00:00"); var registerByDate = (new Date(new Date("06/03/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380732088369; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("32500") == 0 ? "" : '$' + (Number("32500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("32500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("40-Hour HAZWOPER Initial Site Worker — June 4, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/04/2019 00:00:00"); var endDate = new Date("06/04/2019 00:00:00"); var registerByDate = (new Date(new Date("06/04/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380684214321; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("40-Hour HAZWOPER Initial Site Worker — May 14, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/14/2019 00:00:00"); var endDate = new Date("05/14/2019 00:00:00"); var registerByDate = (new Date(new Date("05/14/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380684116017; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("62500") == 0 ? "" : '$' + (Number("62500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("62500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — June 4, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/04/2019 00:00:00"); var endDate = new Date("06/04/2019 00:00:00"); var registerByDate = (new Date(new Date("06/04/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380630409265; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("52500") == 0 ? "" : '$' + (Number("52500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("52500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — May 14, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/14/2019 00:00:00"); var endDate = new Date("05/14/2019 00:00:00"); var registerByDate = (new Date(new Date("05/14/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380630343729; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("52500") == 0 ? "" : '$' + (Number("52500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("52500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — April 23, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/23/2019 00:00:00"); var endDate = new Date("04/23/2019 00:00:00"); var registerByDate = (new Date(new Date("04/23/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380630114353; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("52500") == 0 ? "" : '$' + (Number("52500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("52500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — April 2, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/02/2019 00:00:00"); var endDate = new Date("04/02/2019 00:00:00"); var registerByDate = (new Date(new Date("04/02/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380630016049; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("52500") == 0 ? "" : '$' + (Number("52500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("52500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16-Hour HAZWOPER Upgrade — June 6, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/06/2019 00:00:00"); var endDate = new Date("06/06/2019 00:00:00"); var registerByDate = (new Date(new Date("06/06/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380544950321; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("45000") == 0 ? "" : '$' + (Number("45000")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("45000")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16-Hour HAZWOPER Upgrade — May 16, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/16/2019 00:00:00"); var endDate = new Date("05/16/2019 00:00:00"); var registerByDate = (new Date(new Date("05/16/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380541837361; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("45000") == 0 ? "" : '$' + (Number("45000")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("45000")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16-Hour HAZWOPER Upgrade — April 25, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/25/2019 00:00:00"); var endDate = new Date("04/25/2019 00:00:00"); var registerByDate = (new Date(new Date("04/25/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380537217073; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("45000") == 0 ? "" : '$' + (Number("45000")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("45000")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16-Hour HAZWOPER Upgrade — April 4, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/04/2019 00:00:00"); var endDate = new Date("04/04/2019 00:00:00"); var registerByDate = (new Date(new Date("04/04/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380533415985; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("45000") == 0 ? "" : '$' + (Number("45000")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("45000")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("8-Hour HAZWOPER Annual Refresher — June 7, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/07/2019 00:00:00"); var endDate = new Date("06/07/2019 00:00:00"); var registerByDate = (new Date(new Date("06/07/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380602228785; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("8-Hour HAZWOPER Annual Refresher — May 17, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/17/2019 00:00:00"); var endDate = new Date("05/17/2019 00:00:00"); var registerByDate = (new Date(new Date("05/17/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380601147441; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("8-Hour HAZWOPER Annual Refresher — April 26, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/26/2019 00:00:00"); var endDate = new Date("04/26/2019 00:00:00"); var registerByDate = (new Date(new Date("04/26/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380601016369; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("8-Hour HAZWOPER Annual Refresher — April 5, 2019 (Denver CO)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/05/2019 00:00:00"); var endDate = new Date("04/05/2019 00:00:00"); var registerByDate = (new Date(new Date("04/05/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 14380600885297; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("17500") == 0 ? "" : '$' + (Number("17500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("17500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } seminars.sort(function(a,b){ return a.startDate > b.startDate; }); for(var j = 0; j < seminars.length; j++){ document.getElementById(uniqueSeminarTitles[i].guid).innerHTML += '
' + seminars[j].startDate.toDateString() + '
' + '
' + seminars[j].price + '
' + '
' + seminars[j].compareAtPrice + '
' + '
' + seminars[j].discountedMessage + '
' + '
' + '
'; } } } getUniqueSeminarTitles(); uniqueSeminarTitles.sort(function(a, b){ if(isNaN(Number(a.title.split("-")[0])) || isNaN(Number(b.title.split("-")[0]))) return a.title > b.title; return(Number(a.title.split("-")[0]) > Number(b.title.split("-")[0])) }); createSeminarDivs(); organizeSeminarsIntoDivs();