Loading...

San Jose CA

var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — June 23-25, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — June 26, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — August 21, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — August 7, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — July 17, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — June 26, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — May 29, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — August 18-21, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — August 4-7, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — July 14-17, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — June 23-26, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — May 26-29, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — August 18-20, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — August 4-6, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — July 14-16, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — May 26-28, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — July 13, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — August 18-21, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — August 4-7, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — July 14-17, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — June 23-26, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — May 26-29, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — August 20-21, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — August 6-7, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — July 16-17, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — June 25-26, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — May 28-29, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — August 21, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — August 7, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — July 17, 2020 (San Jose CA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — May 29, 2020 (San Jose CA)").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 = ("24-Hour HAZWOPER Occasional Site Worker — June 23-25, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/23/2020 00:00:00"); var endDate = new Date("06/25/2020 00:00:00"); var registerByDate = (new Date(new Date("06/23/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399238893617; 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 = ("8-Hour HAZWOPER Annual Refresher — June 26, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/26/2020 00:00:00"); var endDate = new Date("06/26/2020 00:00:00"); var registerByDate = (new Date(new Date("06/26/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397494358065; 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 — August 21, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/21/2020 00:00:00"); var endDate = new Date("08/21/2020 00:00:00"); var registerByDate = (new Date(new Date("08/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400452292657; 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 — August 7, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/07/2020 00:00:00"); var endDate = new Date("08/07/2020 00:00:00"); var registerByDate = (new Date(new Date("08/07/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400451276849; 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 — July 17, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/17/2020 00:00:00"); var endDate = new Date("07/17/2020 00:00:00"); var registerByDate = (new Date(new Date("07/17/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400451113009; 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 — June 26, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/26/2020 00:00:00"); var endDate = new Date("06/26/2020 00:00:00"); var registerByDate = (new Date(new Date("06/26/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400450916401; 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 29, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/29/2020 00:00:00"); var endDate = new Date("05/29/2020 00:00:00"); var registerByDate = (new Date(new Date("05/29/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 32017832509489; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("") == 0 ? "" : '$' + (Number("")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("Emergency Response Level 3 Initial Training — August 18-21, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/18/2020 00:00:00"); var endDate = new Date("08/21/2020 00:00:00"); var registerByDate = (new Date(new Date("08/18/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399456505905; 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 — August 4-7, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/04/2020 00:00:00"); var endDate = new Date("08/07/2020 00:00:00"); var registerByDate = (new Date(new Date("08/04/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399456243761; 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 — July 14-17, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/14/2020 00:00:00"); var endDate = new Date("07/17/2020 00:00:00"); var registerByDate = (new Date(new Date("07/14/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399455916081; 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 — June 23-26, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/23/2020 00:00:00"); var endDate = new Date("06/26/2020 00:00:00"); var registerByDate = (new Date(new Date("06/23/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399455522865; 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 26-29, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/26/2020 00:00:00"); var endDate = new Date("05/29/2020 00:00:00"); var registerByDate = (new Date(new Date("05/26/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 32000146800689; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("") == 0 ? "" : '$' + (Number("")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — August 18-20, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/18/2020 00:00:00"); var endDate = new Date("08/20/2020 00:00:00"); var registerByDate = (new Date(new Date("08/18/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399239581745; 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 — August 4-6, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/04/2020 00:00:00"); var endDate = new Date("08/06/2020 00:00:00"); var registerByDate = (new Date(new Date("08/04/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399239319601; 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 — July 14-16, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/14/2020 00:00:00"); var endDate = new Date("07/16/2020 00:00:00"); var registerByDate = (new Date(new Date("07/14/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399239122993; 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 26-28, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/26/2020 00:00:00"); var endDate = new Date("05/28/2020 00:00:00"); var registerByDate = (new Date(new Date("05/26/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 32000143917105; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("") == 0 ? "" : '$' + (Number("")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("DOT Hazmat Transportation Complete Certification — July 13, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/13/2020 00:00:00"); var endDate = new Date("07/13/2020 00:00:00"); var registerByDate = (new Date(new Date("07/13/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399024525361; 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 — August 18-21, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/18/2020 00:00:00"); var endDate = new Date("08/21/2020 00:00:00"); var registerByDate = (new Date(new Date("08/18/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398541361201; 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 — August 4-7, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/04/2020 00:00:00"); var endDate = new Date("08/07/2020 00:00:00"); var registerByDate = (new Date(new Date("08/04/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398541066289; 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 — July 14-17, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/14/2020 00:00:00"); var endDate = new Date("07/17/2020 00:00:00"); var registerByDate = (new Date(new Date("07/14/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398540640305; 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 — June 23-26, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/23/2020 00:00:00"); var endDate = new Date("06/26/2020 00:00:00"); var registerByDate = (new Date(new Date("06/23/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398540443697; 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 26-29, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/26/2020 00:00:00"); var endDate = new Date("05/29/2020 00:00:00"); var registerByDate = (new Date(new Date("05/26/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 32000143032369; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("") == 0 ? "" : '$' + (Number("")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("16 Hour HAZWOPER Upgrade — August 20-21, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/20/2020 00:00:00"); var endDate = new Date("08/21/2020 00:00:00"); var registerByDate = (new Date(new Date("08/20/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397770625073; 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 — August 6-7, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/06/2020 00:00:00"); var endDate = new Date("08/07/2020 00:00:00"); var registerByDate = (new Date(new Date("08/06/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397770330161; 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 — July 16-17, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/16/2020 00:00:00"); var endDate = new Date("07/17/2020 00:00:00"); var registerByDate = (new Date(new Date("07/16/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397769871409; 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 — June 25-26, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/25/2020 00:00:00"); var endDate = new Date("06/26/2020 00:00:00"); var registerByDate = (new Date(new Date("06/25/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397769543729; 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 — May 28-29, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/28/2020 00:00:00"); var endDate = new Date("05/29/2020 00:00:00"); var registerByDate = (new Date(new Date("05/28/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 32010637672497; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("") == 0 ? "" : '$' + (Number("")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("")/100 - Number("")/100).toFixed(2) + ' now' : ""; seminars.push({startDate, endDate, registerByDate, id, price, compareAtPrice, discountedMessage}); } var productTitle = ("8-Hour HAZWOPER Annual Refresher — August 21, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/21/2020 00:00:00"); var endDate = new Date("08/21/2020 00:00:00"); var registerByDate = (new Date(new Date("08/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397496062001; 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 — August 7, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("08/07/2020 00:00:00"); var endDate = new Date("08/07/2020 00:00:00"); var registerByDate = (new Date(new Date("08/07/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397495734321; 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 — July 17, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/17/2020 00:00:00"); var endDate = new Date("07/17/2020 00:00:00"); var registerByDate = (new Date(new Date("07/17/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397494816817; 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 29, 2020 (San Jose CA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("05/29/2020 00:00:00"); var endDate = new Date("05/29/2020 00:00:00"); var registerByDate = (new Date(new Date("05/29/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 32017832149041; var price = '$' + (Number("")/100).toFixed(2); var compareAtPrice = Number("") == 0 ? "" : '$' + (Number("")/100).toFixed(2); var discountedMessage = compareAtPrice.length > 0 ? 'save $' + (Number("")/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();