Loading...

Detroit MI

var productTitle = ("40-Hour HAZWOPER Initial Site Worker — March 10-13, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — March 13, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — May 22, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — April 24, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — April 3, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — March 13, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — May 19-22, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — April 21-24, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — March 31 - April 3, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — March 10-13, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — May 19-21, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — April 21-23, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — March 31 - April 2, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — March 10-12, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — March 30, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — March 9, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — May 19-22, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — April 21-24, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — March 31 - April 3, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — May 21-22, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — April 23-24, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — April 2-3, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — March 12-13, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — May 22, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — April 24, 2020 (Detroit MI)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — April 3, 2020 (Detroit MI)").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 — March 10-13, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/10/2020 00:00:00"); var endDate = new Date("03/13/2020 00:00:00"); var registerByDate = (new Date(new Date("03/10/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398410551345; 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 = ("8-Hour HAZWOPER Annual Refresher — March 13, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/13/2020 00:00:00"); var endDate = new Date("03/13/2020 00:00:00"); var registerByDate = (new Date(new Date("03/13/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397333205041; 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 22, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/22/2020 00:00:00"); var endDate = new Date("05/22/2020 00:00:00"); var registerByDate = (new Date(new Date("05/22/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400257355825; 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 24, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/24/2020 00:00:00"); var endDate = new Date("04/24/2020 00:00:00"); var registerByDate = (new Date(new Date("04/24/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400257060913; 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 3, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/03/2020 00:00:00"); var endDate = new Date("04/03/2020 00:00:00"); var registerByDate = (new Date(new Date("04/03/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400254963761; 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 — March 13, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/13/2020 00:00:00"); var endDate = new Date("03/13/2020 00:00:00"); var registerByDate = (new Date(new Date("03/13/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400254537777; 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 — May 19-22, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/19/2020 00:00:00"); var endDate = new Date("05/22/2020 00:00:00"); var registerByDate = (new Date(new Date("05/19/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399350370353; 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 21-24, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/21/2020 00:00:00"); var endDate = new Date("04/24/2020 00:00:00"); var registerByDate = (new Date(new Date("04/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399349878833; 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 — March 31 - April 3, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/31/2020 00:00:00"); var endDate = new Date("04/03/2020 00:00:00"); var registerByDate = (new Date(new Date("03/31/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399349649457; 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 — March 10-13, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/10/2020 00:00:00"); var endDate = new Date("03/13/2020 00:00:00"); var registerByDate = (new Date(new Date("03/10/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399349354545; 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 — May 19-21, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/19/2020 00:00:00"); var endDate = new Date("05/21/2020 00:00:00"); var registerByDate = (new Date(new Date("05/19/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399141998641; 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 21-23, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/21/2020 00:00:00"); var endDate = new Date("04/23/2020 00:00:00"); var registerByDate = (new Date(new Date("04/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399141310513; 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 — March 31 - April 2, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/31/2020 00:00:00"); var endDate = new Date("04/02/2020 00:00:00"); var registerByDate = (new Date(new Date("03/31/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399140851761; 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 — March 10-12, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/10/2020 00:00:00"); var endDate = new Date("03/12/2020 00:00:00"); var registerByDate = (new Date(new Date("03/10/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399140622385; 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 = ("DOT Hazmat Transportation Complete Certification — March 30, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/30/2020 00:00:00"); var endDate = new Date("03/30/2020 00:00:00"); var registerByDate = (new Date(new Date("03/30/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398976749617; 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 = ("DOT Hazmat Transportation Complete Certification — March 9, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/09/2020 00:00:00"); var endDate = new Date("03/09/2020 00:00:00"); var registerByDate = (new Date(new Date("03/09/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398976454705; 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 — May 19-22, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/19/2020 00:00:00"); var endDate = new Date("05/22/2020 00:00:00"); var registerByDate = (new Date(new Date("05/19/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398411370545; 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 — April 21-24, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/21/2020 00:00:00"); var endDate = new Date("04/24/2020 00:00:00"); var registerByDate = (new Date(new Date("04/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398411108401; 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 — March 31 - April 3, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/31/2020 00:00:00"); var endDate = new Date("04/03/2020 00:00:00"); var registerByDate = (new Date(new Date("03/31/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398410846257; 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 = ("16 Hour HAZWOPER Upgrade — May 21-22, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/21/2020 00:00:00"); var endDate = new Date("05/22/2020 00:00:00"); var registerByDate = (new Date(new Date("05/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397567889457; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("37500") == 0 ? "" : '$' + (Number("37500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("37500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16 Hour HAZWOPER Upgrade — April 23-24, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/23/2020 00:00:00"); var endDate = new Date("04/24/2020 00:00:00"); var registerByDate = (new Date(new Date("04/23/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397567660081; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("37500") == 0 ? "" : '$' + (Number("37500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("37500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16 Hour HAZWOPER Upgrade — April 2-3, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/02/2020 00:00:00"); var endDate = new Date("04/03/2020 00:00:00"); var registerByDate = (new Date(new Date("04/02/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397567397937; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("37500") == 0 ? "" : '$' + (Number("37500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("37500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16 Hour HAZWOPER Upgrade — March 12-13, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("03/12/2020 00:00:00"); var endDate = new Date("03/13/2020 00:00:00"); var registerByDate = (new Date(new Date("03/12/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397567070257; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("37500") == 0 ? "" : '$' + (Number("37500")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("37500")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("8-Hour HAZWOPER Annual Refresher — May 22, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/22/2020 00:00:00"); var endDate = new Date("05/22/2020 00:00:00"); var registerByDate = (new Date(new Date("05/22/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397333958705; 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 24, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/24/2020 00:00:00"); var endDate = new Date("04/24/2020 00:00:00"); var registerByDate = (new Date(new Date("04/24/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397333762097; 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 3, 2020 (Detroit MI)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("04/03/2020 00:00:00"); var endDate = new Date("04/03/2020 00:00:00"); var registerByDate = (new Date(new Date("04/03/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397333434417; 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();