PageSourceSearch

https://www.martinsrx.com/js/body

js martinsrx.com collected 2026-10-07 19:38:13 UTC 2,932 bytes, 74 lines download raw bytes

1/*open_enrollment*/(function(n){var m=n.getMonth(),d=n.getDate();if(m<8||m>11)return;if(m===8&&d<15)return;if(m===11&&d>7)return;$('body').addClass('openEnrollment');})(new Date);
2
3// Privacy Policy on Mobile
4$('.navContent > ul > li:nth-last-of-type(-n+2)').clone().appendTo('.mobileFooterContainer').addClass('mobilePrivacyTerms');
5
6//javaScript
7// Favicon
8var favicon = document.createElement('link');
9favicon.type = 'image/png';
10favicon.rel = 'icon';
11favicon.href = 'https://static.spacecrafted.com/b60050c567c74085beb368f8467a6909/i/e400f0a1559d4698bcbb78171cd7b9ce/1/5feFb8zhrk/Icon%207_Hopewell%20%25281%2529.png';
12document.getElementsByTagName('head')[0].appendChild(favicon);
13
14       
15 /* Buttons */
16$(' .block_acff9c0ca1c04e2197aadafae50da399 .blockInnerContent p a:nth-of-type(1)').addClass('button ctaButton');
17$(' .block_acff9c0ca1c04e2197aadafae50da399 .blockInnerContent p a:nth-of-type(2)').addClass('button ctaButton');
18
19$(' .block_acff9c0ca1c04e2197aadafae50da399 .itemInnerContent a').addClass('button ctaButton');
20 
21 /* Config Initialization Script */
22var mcall = document.createElement('script');
23mcall.src = '//api-web.rxwiki.com/portal/shared_config/configRemote.js';
24mcall.type = 'text/javascript';
25document.getElementsByTagName('head')[0].appendChild(mcall);
26
27/* header address */ 
28$('.blockWrap_cbea5a8bc7d34688bd555fabaeb37300').addClass('secondaryNav');
29
30//NAV secondary nav above nav
31$('.blockWrap_df681ace7cbe460cb9fad1cdafff205a').prependTo('.headerAndNavContainer').addClass('secondaryNav');
32$('.blockWrap_b7179016335e434fbc947c7c87fe9365').appendTo('.headerContainer');
33
34//NAV Wrap a new div around last two nav items
35$('.navContent > ul > li:nth-child(-n+3)').wrapAll( $('<div>').addClass('navButtonWrap') );
36
37
38//FOOTER add text to social icons
39$('.footerContent .socialIconsContainer').prepend('<p class="secondaryTitle"><strong>Follow Us</strong></p>');
40
41//HOME append meet the pharmacist block to header gallery
42$('.block_cf2495fef3f246eda03a4a26d0afb874').insertAfter('.block_ed4baf288499451789e934ab49fa0bbd');
43$('.blockWrap_cf2495fef3f246eda03a4a26d0afb874').hide();
44
45$('.block_cf2495fef3f246eda03a4a26d0afb874').wrap( "<div class='pharmBlock'></div>" );
46
47
48 /*HOMEPAGE TESTIMONIALS JAVASCRIPT */
49var slideIndex = 1;
50showSlides(slideIndex);
51
52function plusSlides(n) {
53  showSlides(slideIndex += n);
54}
55
56function currentSlide(n) {
57  showSlides(slideIndex = n);
58}
59
60function showSlides(n) {
61  var i;
62  var slides = document.getElementsByClassName("mySlides");
63  var dots = document.getElementsByClassName("dot");
64  if (n > slides.length) {slideIndex = 1} 
65    if (n < 1) {slideIndex = slides.length}
66    for (i = 0; i < slides.length; i++) {
67      slides[i].style.display = "none"; 
68    }
69    for (i = 0; i < dots.length; i++) {
70      dots[i].className = dots[i].className.replace(" active", "");
71    }
72  slides[slideIndex-1].style.display = "block"; 
73  dots[slideIndex-1].className += " active";
74}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.