Arlington VA

var productTitle = ("Emergency Response Level 3 Annual Refresher — November 15, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — November 15, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16-Hour HAZWOPER Upgrade — November 14, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — November 12, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — November 12, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — November 12, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — November 11, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — October 18, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — October 18, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16-Hour HAZWOPER Upgrade — October 17, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — October 15, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — October 15, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — October 15, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Annual Refresher — September 13, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("8-Hour HAZWOPER Annual Refresher — September 13, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("16-Hour HAZWOPER Upgrade — September 12, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("Emergency Response Level 3 Initial Training — September 10, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("40-Hour HAZWOPER Initial Site Worker — September 10, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("24-Hour HAZWOPER Occasional Site Worker — September 10, 2019 (Arlington VA)").split('—')[0].trim(); if(!findTitle(productTitle, uniqueSeminarTitles)) uniqueSeminarTitles.push({"title": productTitle, "guid": generateGuid()}); var productTitle = ("DOT Hazmat Transportation Complete Certification — September 9, 2019 (Arlington VA)").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 — November 15, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("11/15/2019 00:00:00"); var endDate = new Date("11/15/2019 00:00:00"); var registerByDate = (new Date(new Date("11/15/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485096755249; 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 — November 15, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("11/15/2019 00:00:00"); var endDate = new Date("11/15/2019 00:00:00"); var registerByDate = (new Date(new Date("11/15/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485096525873; 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 = ("16-Hour HAZWOPER Upgrade — November 14, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("11/14/2019 00:00:00"); var endDate = new Date("11/14/2019 00:00:00"); var registerByDate = (new Date(new Date("11/14/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485096067121; 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 = ("Emergency Response Level 3 Initial Training — November 12, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("11/12/2019 00:00:00"); var endDate = new Date("11/12/2019 00:00:00"); var registerByDate = (new Date(new Date("11/12/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485094985777; 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 — November 12, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("11/12/2019 00:00:00"); var endDate = new Date("11/12/2019 00:00:00"); var registerByDate = (new Date(new Date("11/12/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485094756401; 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 — November 12, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("11/12/2019 00:00:00"); var endDate = new Date("11/12/2019 00:00:00"); var registerByDate = (new Date(new Date("11/12/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485102915633; 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 — November 11, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("11/11/2019 00:00:00"); var endDate = new Date("11/11/2019 00:00:00"); var registerByDate = (new Date(new Date("11/11/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485094264881; 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 = ("Emergency Response Level 3 Annual Refresher — October 18, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("10/18/2019 00:00:00"); var endDate = new Date("10/18/2019 00:00:00"); var registerByDate = (new Date(new Date("10/18/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485093838897; 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 — October 18, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("10/18/2019 00:00:00"); var endDate = new Date("10/18/2019 00:00:00"); var registerByDate = (new Date(new Date("10/18/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485093576753; 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 = ("16-Hour HAZWOPER Upgrade — October 17, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("10/17/2019 00:00:00"); var endDate = new Date("10/17/2019 00:00:00"); var registerByDate = (new Date(new Date("10/17/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485093412913; 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 = ("Emergency Response Level 3 Initial Training — October 15, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("10/15/2019 00:00:00"); var endDate = new Date("10/15/2019 00:00:00"); var registerByDate = (new Date(new Date("10/15/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485092855857; 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 — October 15, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("10/15/2019 00:00:00"); var endDate = new Date("10/15/2019 00:00:00"); var registerByDate = (new Date(new Date("10/15/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485092397105; 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 — October 15, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("10/15/2019 00:00:00"); var endDate = new Date("10/15/2019 00:00:00"); var registerByDate = (new Date(new Date("10/15/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485102719025; 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 = ("Emergency Response Level 3 Annual Refresher — September 13, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("09/13/2019 00:00:00"); var endDate = new Date("09/13/2019 00:00:00"); var registerByDate = (new Date(new Date("09/13/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485091872817; 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 — September 13, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("09/13/2019 00:00:00"); var endDate = new Date("09/13/2019 00:00:00"); var registerByDate = (new Date(new Date("09/13/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485089447985; 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 = ("16-Hour HAZWOPER Upgrade — September 12, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("09/12/2019 00:00:00"); var endDate = new Date("09/12/2019 00:00:00"); var registerByDate = (new Date(new Date("09/12/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485089087537; 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 = ("Emergency Response Level 3 Initial Training — September 10, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("09/10/2019 00:00:00"); var endDate = new Date("09/10/2019 00:00:00"); var registerByDate = (new Date(new Date("09/10/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485088792625; 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 — September 10, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("09/10/2019 00:00:00"); var endDate = new Date("09/10/2019 00:00:00"); var registerByDate = (new Date(new Date("09/10/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485088333873; 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 — September 10, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("09/10/2019 00:00:00"); var endDate = new Date("09/10/2019 00:00:00"); var registerByDate = (new Date(new Date("09/10/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485100752945; 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 — September 9, 2019 (Arlington VA)").split('—')[0].trim(); if(uniqueSeminarTitles[i].title === productTitle){ var startDate = new Date("09/09/2019 00:00:00"); var endDate = new Date("09/09/2019 00:00:00"); var registerByDate = (new Date(new Date("09/09/2019 00:00:00").setDate(startDate.getDate() - 10))); var id = 15485087809585; 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}); } 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();