Plasma Donation Center in Racine, WI Washington Ave, Suite 28 (2024)

keyboard_arrow_down

`; const centerAddr = `${centerInfo.address.addressLine1}, ${centerInfo.address.city}, ${centerInfo.address.state} ${centerInfo.address.zipCode}`; document.getElementById('center-name').innerText = centerInfo.name; document.getElementById('center-address').innerText = centerAddr; document.getElementById('center-phone').innerText = centerInfo.phoneNumbers[0].phoneNumber; document.getElementById('center-phone').href = "tel:" + centerInfo.phoneNumbers[0].phoneNumber.replace(' ', '').replace('(', '').replace(')', '').replace('-', ''); document.getElementById('center-hours').innerHTML = analyzeOperatingHour(centerInfo.openingHours, true).join(''); document.getElementById('holiday-hours').innerHTML = centerInfo.customizeSetting && centerInfo.customizeSetting.holidayHours ? holidayHours(centerInfo.customizeSetting.holidayHours, true) : ""; document.getElementById('non-operatinghours').innerHTML = centerInfo.customizeSetting && centerInfo.customizeSetting.nonOperationalDays.length > 0 ? nonOperationalDays(centerInfo.customizeSetting.nonOperationalDays) : ""; document.getElementById('navigation-center-link').href = `/center/${centerInfo.locationID}`; document.getElementById('navigation-google-map-link').href = `https://maps.google.com/maps?q=${centerAddr}`; } else { findCenter.innerHTML = `

Find Nearest Center `; findCenter.href = '/find-a-donation-center'; } function toggleCenterInfo() { const centerInfo = document.getElementById('center-info'); const elementDisplay = getComputedStyle(centerInfo, null).display; if (elementDisplay === 'none') { centerInfo.style.display = 'flex'; } else { centerInfo.style.display = 'none'; } const dropdownArrow = document.getElementById('dropdown-arrow'); if (dropdownArrow.innerText === 'keyboard_arrow_down') { dropdownArrow.innerText = 'keyboard_arrow_up'; } else { dropdownArrow.innerText = 'keyboard_arrow_down'; } } function analyzeOperatingHour(operatingHours, showFullMinute) { // 0 is Sunday // {number: [f, t]} const weekdays = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; let lastCheckedTime = operatingHours[1]; const aggregated = []; let temp = []; const result = []; for (let i = 1; i < 6; i++) { if (lastCheckedTime[0] === operatingHours[i][0] && lastCheckedTime[1] === operatingHours[i][1]) { temp.push(i); } else { aggregated.push(temp); temp = [i]; } lastCheckedTime = operatingHours[i]; } if (temp.length) { aggregated.push(temp); } for (let i = 0; i < aggregated.length; i++) { const fd = aggregated[i][0]; if (aggregated[i].length === 1) { result.push(`

${weekdays[fd]} - ${formatCenterOperatingHour(operatingHours[fd][0], operatingHours[fd][1], showFullMinute)}

`) } else { const ld = aggregated[i][aggregated[i].length -1]; result.push(`

${weekdays[fd]}-${weekdays[ld]} - ${formatCenterOperatingHour(operatingHours[fd][0], operatingHours[fd][1], showFullMinute)}

`) } } result.push(`

${weekdays[6]} - ${formatCenterOperatingHour(operatingHours[6][0], operatingHours[6][1], showFullMinute)}

`) result.push(`

${weekdays[0]} - ${formatCenterOperatingHour(operatingHours[0][0], operatingHours[0][1], showFullMinute)}

`) return result; } function formatCenterOperatingHour(from, to, showFullMinute) { if (!from || (from === '0000' && to === '0000')) { return 'Closed'; } let fromAbbr = "am"; let toAbbr = "am"; let fromTime; let toTime; let fromMinute = ":" + from.slice(2); let toMinute = ":" + to.slice(2); if (!showFullMinute) { if (fromMinute === ":00") { fromMinute = ""; } if (toMinute === ":00") { toMinute = ""; } } if (!isNaN(Number(from.slice(0, 2))) && Number(from.slice(0, 2)) >= 12) { fromAbbr = "pm" fromTime = ((Number(from.slice(0, 2)) - 12) || 12).toLocaleString('en-US', { minimumIntegerDigits: 1, useGrouping: false }) + fromMinute + fromAbbr; } else { fromTime = Number(from.slice(0, 2)).toLocaleString('en-US', { minimumIntegerDigits: 1, useGrouping: false }) + fromMinute + fromAbbr; } if (!isNaN(Number(to.slice(0, 2))) && Number(to.slice(0, 2)) >= 12) { toAbbr = "pm" toTime = ((Number(to.slice(0, 2)) - 12) || 12).toLocaleString('en-US', { minimumIntegerDigits: 1, useGrouping: false }) + toMinute + toAbbr; } else { toTime = Number(to.slice(0, 2)).toLocaleString('en-US', { minimumIntegerDigits: 1, useGrouping: false }) + toMinute + toAbbr; } return fromTime + "-" + toTime; } function formatDate(value) { const myArray = value.split("-"); let data = myArray; let NewDate = `${data[1]}/${data[2]}/${data[0]}` return NewDate; } function nonOperationalDays(item) { return ( `${ item && item.length > 0 ? `

Closed

${item.map((item) => { return ( `${formatDate(item)}` ) }).join('')}

` : "" } ` ) } function holidayHours(item, fulltime) { let dataValue = Object.keys(item).length; let holiday = Object.entries(item); return ( `${ dataValue > 0 ? `

Holiday Hours strong> ${holiday.map((value) => { return ( `

${formatDate(value[0])}

${value[1].map((time) => { return (`

-${formatCenterOperatingHour(time[0], time[1], fulltime)}

`) }).join('')}

` ) }).join('')}

` : "" }` ) }

Plasma Donation Center in Racine, WI Washington Ave, Suite 28 (2024)
Top Articles
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 5636

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.