Loading...

Raleigh NC

var productTitle = ("Emergency Response Level 3 Annual Refresher — July 24, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — June 26, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — May 29, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — July 21-24, 2020 (Raleigh NC)").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 (Raleigh NC)").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 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — July 21-23, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — June 23-25, 2020 (Raleigh NC)").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 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — June 22, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — July 21-24, 2020 (Raleigh NC)").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 (Raleigh NC)").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 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — July 23-24, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — June 25-26, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16 Hour HAZWOPER Upgrade — May 28-29, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — July 24, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — June 26, 2020 (Raleigh NC)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — May 29, 2020 (Raleigh NC)").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 = ("Emergency Response Level 3 Annual Refresher — July 24, 2020 (Raleigh NC)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/24/2020 00:00:00"); var endDate = new Date("07/24/2020 00:00:00"); var registerByDate = (new Date(new Date("07/24/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31400423063601; 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 (Raleigh NC)").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 = 31400422539313; 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 (Raleigh NC)").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 = 32017832443953; 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 — July 21-24, 2020 (Raleigh NC)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/21/2020 00:00:00"); var endDate = new Date("07/24/2020 00:00:00"); var registerByDate = (new Date(new Date("07/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399437369393; 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 (Raleigh NC)").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 = 31399437140017; 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 (Raleigh NC)").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 = 32000145588273; 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 — July 21-23, 2020 (Raleigh NC)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/21/2020 00:00:00"); var endDate = new Date("07/23/2020 00:00:00"); var registerByDate = (new Date(new Date("07/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399227064369; 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 — June 23-25, 2020 (Raleigh NC)").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 = 31399226671153; 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 (Raleigh NC)").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 = 32000143786033; 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 — June 22, 2020 (Raleigh NC)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("06/22/2020 00:00:00"); var endDate = new Date("06/22/2020 00:00:00"); var registerByDate = (new Date(new Date("06/22/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31399019315249; 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 — July 21-24, 2020 (Raleigh NC)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/21/2020 00:00:00"); var endDate = new Date("07/24/2020 00:00:00"); var registerByDate = (new Date(new Date("07/21/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31398506659889; 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 (Raleigh NC)").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 = 31398506430513; 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 (Raleigh NC)").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 = 32000142966833; 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 — July 23-24, 2020 (Raleigh NC)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/23/2020 00:00:00"); var endDate = new Date("07/24/2020 00:00:00"); var registerByDate = (new Date(new Date("07/23/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397755387953; 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 (Raleigh NC)").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 = 31397754994737; 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 (Raleigh NC)").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 = 32010637606961; 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 — July 24, 2020 (Raleigh NC)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("07/24/2020 00:00:00"); var endDate = new Date("07/24/2020 00:00:00"); var registerByDate = (new Date(new Date("07/24/2020 00:00:00").setDate(startDate.getDate() - 10))); var id = 31397481807921; 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 — June 26, 2020 (Raleigh NC)").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 = 31397481513009; 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 (Raleigh NC)").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 = 32017832017969; 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();