Skip to content

Commit

Permalink
update banner message
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-cr41g committed Oct 4, 2023
1 parent 7e77723 commit fc55c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/alertBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ var alertBanner = window.setInterval(function () {
alertBarInnerDiv.setAttribute('style', 'text-align: center;background-color: #FFCE34;padding: 3px 0;font-size: 15px; color: #000000; font-family: Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;');
alertBarInnerDiv.innerHTML = 'September 18-22, 2023: Art & Architecture General Collection print materials with call numbers N-NC will be unavailable while they are relocated to the <a class="alertBarHoverImg" href="https://www.library.ucsb.edu/files/artslibraryprojectn-nchighlightedpng">2nd floor, Mountain Side<span><img src="custom/01UCSB_INST-UCSB/img/bannerMap.png" alt="second floor map" width="40%" height="auto" /></span></a>.<br> To learn more, <a href="https://www.library.ucsb.edu/arts-library-project">click here</a>.';
}
else if ((date.getMonth() == 8 && date.getDate() > 22) || (date.getMonth() == 9 && date.getDate() < 14)) {
else if ((date.getMonth() == 8 && date.getDate() > 22) || (date.getMonth() == 9 && date.getDate() < 24)) {
alertBarInnerDiv.setAttribute('style', 'text-align: center;background-color: #FFCE34;padding: 3px 0;font-size: 18px; color: #000000; font-family: hind_regularregular, Helvetica, Arial, sans-serif; line-height: 1.5em; font-weight: 600');
alertBarInnerDiv.innerHTML = 'ATTENTION: September 18 - October 3, 2023: Art & Architecture General Collection print materials with call numbers N-NC are being relocated to the <a class="alertBarHoverImg" href="https://www.library.ucsb.edu/files/artslibraryprojectn-nchighlightedpng">2nd floor, Mountain Side<span><img src="custom/01UCSB_INST-UCSB/img/bannerMap.png" alt="second floor map" width="40%" height="auto" /></span></a>.<br>During the move, some items may be temporarily unavailable while they are in transit. To learn more, <a href="https://www.library.ucsb.edu/arts-library-project">click here</a>.';
alertBarInnerDiv.innerHTML = 'Art & Architecture General Collection print materials with call numbers N-NC are temporarily located on the <a class="alertBarHoverImg" href="https://www.library.ucsb.edu/files/artslibraryprojectn-nchighlightedpng">2nd floor, Mountain Side<span><img src="custom/01UCSB_INST-UCSB/img/bannerMap.png" alt="second floor map" width="40%" height="auto" /></span></a>.<br> To learn more, <a href="https://www.library.ucsb.edu/arts-library-project">click here</a>.';
}
alertBarDiv.appendChild(alertBarInnerDiv);
prmAlertBar[0].prepend(alertBarDiv);
Expand Down

0 comments on commit fc55c4e

Please sign in to comment.