' + data[slideIndex].content + '
';\n\n if(data[slideIndex].btnText != ''){\n cardMarkup += '' + data[slideIndex].btnText + ''; \n }\n\n //slideHolder.querySelector('img').setAttribute(\"src\", data[slideIndex].image);\n slideHolder.find('img').attr(\"src\", data[slideIndex].image);\n\n setTimeout(function () {\n //slideHolder.querySelector('.c-img-card__inner').innerHTML = cardMarkup;\n slideHolder.children('.c-img-card__inner').html(cardMarkup);\n slideHolder.removeClass('is-transition');\n nextHolder.removeClass('is-transition');\n //nextHolder.querySelector('h2').innerHTML = data[nextSlideIndex].title;\n nextHolder.find('h2').html(data[nextSlideIndex].title);\n //nextHolder.querySelector('img').setAttribute(\"src\", data[nextSlideIndex].image);\n nextHolder.find('img').attr(\"src\", data[nextSlideIndex].image);\n }, 500);\n\n return parseInt(slideIndex + 1);\n }\n \n function slideEvents(slideIndex) {\n if (!slideNav) return;\n// slideNav.forEach(navItem => {\n// navItem.addEventListener('click', function (e) {\n// e.preventDefault();\n// slideIndex = Number(navItem.getAttribute(\"data-slide-id\"));\n// let nextSlideIndex = Number(navItem.getAttribute(\"data-next-id\"));\n//\n// slideNav.forEach(navItem => {\n// navItem.classList.remove('is-active');\n// });\n// e.currentTarget.classList.add('is-active');\n//\n// updateSlides(slideIndex, nextSlideIndex);\n// });\n// });\n \n slideNav.each(function(){\n var navItem = $(this);\n navItem.click(function(e){\n e.preventDefault();\n// slideIndex = Number(navItem.attr(\"data-slide-id\"));\n slideIndex = navItem.attr(\"data-slide-id\");\n// let nextSlideIndex = Number(navItem.attr(\"data-next-id\"));\n let nextSlideIndex = navItem.attr(\"data-next-id\");\n\n// slideNav.forEach(navItem => {\n// navItem.classList.remove('is-active');\n// });\n slideNav.each(function(){\n navItem.siblings().removeClass('is-active');\n });\n navItem.addClass('is-active');\n\n updateSlides(slideIndex, nextSlideIndex);\n });\n });\n\n if (nextHolder != null) {\n// nextHolder.addEventListener('click', function (event) {\n// if (parseInt(slideIndex + 1) == (slideData.length - 1)) {\n// next = 0;\n// } else if (parseInt(slideIndex + 1) >= (slideData.length - 1)) {\n// next = 1;\n// } else {\n// next = parseInt(slideIndex + 2);\n// }\n//\n// if (slideIndex == (slideData.length - 1)) {\n// slideIndex = 0;\n// } else {\n// slideIndex = parseInt(slideIndex + 1);\n// }\n//\n// slideNav.forEach(navItem => {\n// navItem.classList.remove('is-active');\n// if (navItem.getAttribute(\"data-slide-id\") == slideIndex) {\n// navItem.classList.add('is-active');\n// }\n// });\n//\n// updateSlides(slideIndex, next);\n// });\n nextHolder.click(function(){\n if (parseInt(slideIndex + 1) == (slideData.length - 1)) {\n next = 0;\n } else if (parseInt(slideIndex + 1) >= (slideData.length - 1)) {\n next = 1;\n } else {\n next = parseInt(slideIndex + 2);\n }\n\n if (slideIndex == (slideData.length - 1)) {\n slideIndex = 0;\n } else {\n slideIndex = parseInt(slideIndex + 1);\n }\n\n// slideNav.forEach(navItem => {\n// navItem.classList.remove('is-active');\n// if (navItem.getAttribute(\"data-slide-id\") == slideIndex) {\n// navItem.classList.add('is-active');\n// }\n// });\n \n slideNav.each(function(){\n $(this).removeClass('is-active');\n if ($(this).attr(\"data-slide-id\") == slideIndex) {\n $(this).addClass('is-active');\n }\n });\n\n updateSlides(slideIndex, next);\n });\n }\n }\n if (window.innerWidth > 900) {\n slideEvents(slideIndex);\n }\n \n });\n}\n\nfunction scrollToSection(selector) {\n const links = document.querySelectorAll(selector);\n \n for (const link of links) {\n link.addEventListener(\"click\", clickHandler);\n }\n\n function clickHandler(e) {\n e.preventDefault();\n const href = this.getAttribute(\"href\");\n const header = document.querySelector('.js-header');\n const offsetTop = document.querySelector(href).offsetTop;\n\n scroll({\n top: offsetTop - 120,\n behavior: \"smooth\"\n });\n }\n}\n\nfunction addIEclasses() {\n\tvar ua = window.navigator.userAgent;\n\tvar b = \"\";\n\tvar msie = ua.indexOf('MSIE ');\n\tif (msie > 0) {\n\t\t// IE 10 or older => return version number\n\t\tb = \"msie ie\" + parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n\t}\n\n\tvar trident = ua.indexOf('Trident/');\n\tif (trident > 0) {\n\t\t// IE 11 => return version number\n\t\tvar rv = ua.indexOf('rv:');\n\t\tb = \"trident ie\"+parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n\t}\n\n\tvar edge = ua.indexOf('Edge/');\n\tif (edge > 0) {\n\t\t// Edge (IE 12+) => return version number\n\t\tb = \"edge ie\"+parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);\n\n\t}\n\n\t// other browser\n\tif(b!=\"\") {\n\t\t$('body').addClass(b);\n\t}\n}\n\nfunction initModals(){\n modal.initModal('.js-video-modal', 'video');\n modal.initModal('.js-content-modal', 'inline');\n\n const appts = Array.from(document.querySelectorAll('.js-appt-modal'));\n if (!appts) return;\n appts.forEach(appt => {\n modal.apptModal(appt);\n });\n\n modal.openAlertModal('.js-alert-modal');\n\n //modal.openAlertModalAjax('.js-alert-modal-ajax')\n \n $(document).on('click', '.btn-default[data-dismiss=\"modal\"]', function(){\n modal.destroyModal('.js-content-modal');\n });\n}\n\nfunction initPrintShare(printTrigger, shareTrigger) {\n const printBtn = document.querySelector(printTrigger);\n const shareBtn = document.querySelector(shareTrigger);\n\n if (printBtn != null) {\n printBtn.addEventListener('click', function (e) {\n e.preventDefault();\n window.print();\n });\n }\n\n if (shareBtn != null) {\n shareBtn.addEventListener('click', function (e) {\n e.preventDefault();\n let shareDropdown = shareBtn.nextElementSibling;\n shareBtn.classList.toggle('is-active');\n shareDropdown.classList.toggle('is-open');\n });\n }\n}\n\nfunction setPrintButton(){\n $(document).on('click', '#printBtn', function(e){\n e.preventDefault();\n window.print(); \n });\n}\n\n// ===========================\n// Upload a File Functionality\n// ===========================\nfunction initInputFiles() {\n const arrInputsFile = Array.from(document.querySelectorAll('[data-type=\"input-file\"]'));\n arrInputsFile.forEach( input => {\n input.onchange = browseFile;\n document.getElementById(`${input.id}Output`).ondrop = dropHandler;\n document.getElementById(`${input.id}Output`).ondragover = dragOverHandler;\n });\n}\nfunction browseFile(event) {\n const fileUpload = event.target;\n const uploadMsg = document.getElementById(`${event.target.id}Output`);\n const input = fileUpload.files[0];\n let text;\n if (input) {\n text = fileUpload.value.replace(\"C:\\\\fakepath\\\\\", \"\");\n } else {\n text = 'Drop file here or click to upload';\n }\n uploadMsg.innerHTML = text;\n}\nfunction dropHandler(event) {\n const uploadMsg = document.getElementById(`${event.target.id}`);\n\n // Prevent default behavior (Prevent file from being opened)\n event.preventDefault();\n\n if (event.dataTransfer.items) {\n \n // Use DataTransferItemList interface to access the file(s)\n for (let i = 0; i < event.dataTransfer.items.length; i++) {\n\n // If dropped items aren't files, reject them\n if (event.dataTransfer.items[i].kind === 'file') {\n const file = event.dataTransfer.items[i].getAsFile();\n uploadMsg.innerHTML = file.name;\n }\n }\n } else {\n\n // Use DataTransfer interface to access the file(s)\n for (let i = 0; i < event.dataTransfer.files.length; i++) {\n uploadMsg.innerHTML = event.dataTransfer.files[i].name;\n }\n }\n}\nfunction dragOverHandler(event) {\n // Prevent default behavior (Prevent file from being opened)\n event.preventDefault();\n}\nfunction initHeader() {\n const h = document.querySelector('.js-site-header');\n if ( h === null ) return false;\n\n const navTogglerMobile = h.getElementsByClassName('c-navbar-toggler')[0];\n const navContent = h.querySelector('nav');\n\n if (navTogglerMobile) {\n navTogglerMobile.addEventListener('click', (e) => {\n e.preventDefault();\n navContent.classList.toggle(\"is-open\");\n navTogglerMobile.classList.toggle(\"is-open\");\n });\n }\n\n}\nfunction initTabsNav(){\n // const tabNavSection = document.querySelectorAll('.c-tabs');\n // for (var i = 0; i < tabNavSection.length; i++) {\n // new TabsNavigation(tabNavSection[i]);\n // }\n}\nfunction smoothScrolling(){\n \n // Add smooth scrolling to all links\n $(\"a\").on('click', function(event) {\n\n // Make sure this.hash has a value before overriding default behavior\n if (this.hash !== \"\" && this.href.startsWith(\"#\") && !this.classList.contains('no-scroll')) {\n \n // Prevent default anchor click behavior\n event.preventDefault();\n \n // Store hash\n var hash = this.hash;\n \n // Using jQuery's animate() method to add smooth page scroll\n // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area\n $('html, body').animate({\n scrollTop: $(hash).offset().top\n }, 800, function(){\n \n // Add hash (#) to URL when done scrolling (default click behavior)\n window.location.hash = hash;\n }\n );\n } // End if\n });\n \n}\nfunction initFallbackAccordion(accordion) {\n const accordions = Array.from(document.querySelectorAll(accordion));\n if (!accordions) return;\n\n accordions.forEach(accordion => {\n \n let button = accordion.querySelector('[data-target]');\n if ( !button ) return false;\n \n let sectionId = button.getAttribute('data-target');\n let associatedSection = accordion.querySelector(sectionId);\n button.setAttribute(\"href\", \"#\");\n\n if(associatedSection.classList.contains('show')) {\n accordion.classList.toggle('is-active');\n button.classList.toggle('is-active');\n button.setAttribute('aria-expanded', true);\n associatedSection.setAttribute('aria-hidden', false);\n }\n\n button.addEventListener('click', (e) => {\n e.preventDefault();\n accordion.classList.toggle('is-active');\n button.classList.toggle('is-active');\n associatedSection.classList.toggle('show');\n if (button.classList.contains('is-active')) {\n button.setAttribute('aria-expanded', true);\n associatedSection.setAttribute('aria-hidden', false);\n } else {\n button.setAttribute('aria-expanded', false);\n associatedSection.setAttribute('aria-hidden', true);\n }\n })\n });\n}\nfunction initFilterModal(){\n const arrFilterModalMobileButtons = document.querySelectorAll('[data-type=\"close-filter-modal-mobile\"]');\n [...arrFilterModalMobileButtons].forEach( button => {\n button.addEventListener( 'click', closeFilterModalTrigger.bind( this ));\n });\n\n const arrFilterModalMobileModals = document.querySelectorAll('[data-type=\"open-filter-modal-mobile\"]');\n [...arrFilterModalMobileModals].forEach( button => {\n button.addEventListener( 'click', openFilterModalTrigger.bind( this ));\n });\n}\nfunction closeFilterModalTrigger( event ){\n document.getElementById( event.currentTarget.dataset.modalId ).classList.remove('opened');\n}\nfunction openFilterModalTrigger( event ){\n document.getElementById( event.currentTarget.dataset.modalId ).classList.add('opened');\n document.body.scrollTop = 0; // For Safari\n document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera\n}\nfunction initSelectorComponent(){\n console.log(\"[initSelectorComponent] Init\");\n const selectorArea = document.getElementsByClassName( 'c-hero-careers-lp__category-area__selector-area' )[0];\n const linksArea = document.getElementsByClassName( 'c-hero-careers-lp__category-area__links-area' )[0];\n const suggestedLinkLabel = document.getElementById( 'selected-category' );\n\n if ( !selectorArea || !linksArea ) return false;\n\n // Labels Radio Tags handler\n const arrCategoryTagOpt = document.getElementsByClassName( 'category-radio-opt' );\n if ( !!arrCategoryTagOpt.length ) {\n [...arrCategoryTagOpt].map((radioElem) => radioElem.addEventListener( 'click', categoryTagOptHandler ));\n }\n\n // Select Options handler\n const arrCategorySelectorOpt = document.getElementById('categories-selector');\n if ( !!arrCategorySelectorOpt.length ) {\n arrCategorySelectorOpt.addEventListener('change', categoryTagOptHandler );\n }\n\n // Change Category link handler to show tag options list\n const lnkBackToCategoryArea = document.getElementById( 'back-to-category-area' );\n if ( lnkBackToCategoryArea ) {\n console.log('Click [lnkBackToCategoryArea]');\n lnkBackToCategoryArea.addEventListener( 'click', function(e){\n e.preventDefault();\n selectorArea.classList.add( 'active' );\n linksArea.classList.remove( 'active' );\n document.getElementById('categories-selector').value = \"\";\n });\n }\n\n function categoryTagOptHandler( event ){\n selectorArea.classList.remove( 'active' );\n linksArea.classList.add( 'active' );\n suggestedLinkLabel.innerHTML = ( event.currentTarget.tagName === 'SELECT' ) \n ? event.currentTarget.options[ event.currentTarget.selectedIndex ].text\n : event.currentTarget.dataset.label;\n hideAllCategoryLinks();\n showCategoryLinksList( document.querySelectorAll(`[data-category=\"${event.currentTarget.value}\"]`)[0] );\n }\n\n function hideAllCategoryLinks(){\n [...document.querySelectorAll(`.c-hero-careers-lp__category-area__links-list`)].map( listElem => listElem.classList.remove( 'active' ));\n }\n\n function showCategoryLinksList( listElem ){\n listElem.classList.add( 'active' );\n }\n}\nfunction initSpeedbumpMove(){\n \n // Select the Speedbump if exists\n const speedbump = document.querySelector('.c-speedbump--js-to-move-into-grid');\n if ( !speedbump ) return;\n \n // Select the grid cards wrapper container if exists\n const targetContainer = document.querySelector('.b-blog-cards .b-grid--wrapper');\n if ( !targetContainer ) return;\n\n // Select the sixth card\n const sixthElement = targetContainer.children[5];\n\n // Insert the Speedbump after the sixth card\n if (sixthElement) {\n targetContainer.insertBefore(speedbump, sixthElement.nextSibling);\n }\n}\n\nready(function () {\n\n initHeader();\n\n startSlider();\n \n initAccordion('.js-accordion');\n\n initFallbackAccordion('.accordion-link-container');\n \n addIEclasses();\n\n scrollToSection('.c-filter-bar__list-item-link');\n\n initModals();\n\n initPrintShare('.js-print', '.js-share');\n setPrintButton();\n \n initInputFiles();\n\n initTabsNav();\n\n smoothScrolling();\n\n initSpeedbumpMove();\n\n const linkListGroup = document.querySelectorAll('.js-link-list-group');\n linkListGroup.forEach(group => {\n const showListBtn = group.querySelector('.js-list-show-all');\n const showListList = group.querySelector('.js-link-list');\n showListBtn.addEventListener('click', (event) => {\n event.preventDefault();\n showListList.classList.toggle('is-open');\n if(showListList.classList.contains('is-open')){\n showListBtn.innerHTML = 'Show Less';\n } else {\n showListBtn.innerHTML = 'Show All';\n }\n }) \n });\n\n const mobSideNavBtn = document.querySelector('.js-mobile-sidenav');\n const mobSideNav = document.querySelector('.js-sidenav');\n const viewportWidth = window.innerWidth || document.documentElement.clientWidth;\n if(mobSideNavBtn && viewportWidth < 960){\n const pos = mobSideNavBtn.offsetTop;\n const h = mobSideNavBtn.offsetHeight;\n const placement = pos + h;\n mobSideNav.style.top = placement + 'px';\n mobSideNavBtn.addEventListener('click', (event) => {\n event.preventDefault();\n event.target.classList.toggle('is-active');\n mobSideNav.classList.toggle('is-shown');\n });\n }\n\n let url_string = (window.location.href);\n let url = new URL(url_string);\n // Open Specialties Modal.\n let showModal = url.searchParams.get(\"showApptModal\");\n if(showModal && showModal == \"true\") {\n const modal = document.querySelector('#specialty-appt-modal');\n if(modal) {\n modal.classList.add('active');\n }\n }\n // Open New Patient Modal. \n let nextappt = url.searchParams.get(\"nextappt\");\n let specialty = url.searchParams.get(\"specialty\");\n if (specialty == null)\n specialty = url.searchParams.get(\"Specialty\");\n if (nextappt && nextappt == \"true\" && specialty) {\n var specvalue = decodeURI(specialty.toLowerCase());\n // Check if Specialty is \"Internal Medicine\", or \"Family Medicine\", or \"Pediatrics\".\n if(specvalue == \"internal medicine\" || specvalue == \"family medicine\" || specvalue == \"pediatrics\") {\n const modal = document.querySelector('#new-patient-appt-modal');\n if(modal) {\n modal.classList.add('active');\n }\n }\n }\n\n initFilterModal();\n\n initSelectorComponent();\n});","/*!\n * jQuery JavaScript Library v3.7.0\n * https://jquery.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2023-05-11T18:29Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket trac-14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar flat = arr.flat ? function( array ) {\n\treturn arr.flat.call( array );\n} : function( array ) {\n\treturn arr.concat.apply( [], array );\n};\n\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n\t\t// Support: Chrome <=57, Firefox <=52\n\t\t// In some browsers, typeof returns \"function\" for HTML