1jQuery(document).ready(function($) { 2 "use strict"; 3 4 let header_nav = false; 5 6 $('body').removeClass('mm-wrapper--position-right'); 7 8 // #menu-button open/close is wired to the Mmenu instance further down 9 // (search for "menuApi.open" / "menuApi.close"). 10 11 $('#menu-header > ul > li.menu-item-has-children').click(function () { 12 if ($("#menu-button").is(":visible")) { 13 let state = ($(this).children("ul").css("display") == "none"); 14 $('#menu-header > ul > li.menu-item-has-children > ul').css("display", "none"); 15 if (state) { 16 $(this).children("ul").css("display", "block"); 17 } 18 } 19 }); 20 21 $(window).on('resize', function () { 22 if (!$('#menu-button').is(":visible") || !header_nav) { 23 $('#menu-header').removeClass("show"); 24 $('#menu-button').removeClass("active"); 25 $('#menu-button').attr("aria-expanded", "false"); 26 $('#menu-button').attr("aria-label", "Menü öffnen"); 27 $('body').removeClass("no-scrolling"); 28 } 29 }); 30 31 $(document).click(function(e) { 32 if ($("#menu-button").is(":visible") && $($.target).attr("id") != 'menu-button' && $('#menu-header').hasClass("show") && $(e.target).closest("header").length == 0) { 33 $('#menu-button').trigger("click"); 34 } 35 }); 36 37 /* Keyboard-accessible disclosure submenus. 38 Mark parent links with aria-haspopup/aria-expanded and toggle a 39 .submenu-open class so the submenu becomes visible on focus and 40 closes on blur / Escape. */ 41 (function() { 42 var $parents = $('nav.primary-navigation li.menu-item-has-children'); 43 $parents.each(function() { 44 var $li = $(this); 45 var $trigger = $li.children('a').first(); 46 $trigger.attr('aria-haspopup', 'true').attr('aria-expanded', 'false'); 47 }); 48 49 $parents.on('focusin', function() { 50 var $li = $(this); 51 $parents.not($li).removeClass('submenu-open') 52 .children('a').attr('aria-expanded', 'false'); 53 $li.addClass('submenu-open') 54 .children('a').attr('aria-expanded', 'true'); 55 }); 56 57 $parents.on('focusout', function() { 58 var $li = $(this); 59 setTimeout(function() { 60 if (!$li[0].contains(document.activeElement)) { 61 $li.removeClass('submenu-open') 62 .children('a').attr('aria-expanded', 'false'); 63 } 64 }, 0); 65 }); 66 67 $parents.on('keydown', function(e) { 68 if (e.key === 'Escape') { 69 var $li = $(this); 70 $li.removeClass('submenu-open') 71 .children('a').attr('aria-expanded', 'false') 72 .focus(); 73 } 74 }); 75 })(); 76 77 78 $('select.dropdown').each(function() { 79 80 let dropdown = $('<div />').addClass('dropdown selectDropdown'); 81 82 $(this).wrap(dropdown); 83 84 let label = $('<span />').text($(this).attr('placeholder')).insertAfter($(this)); 85 let list = $('<ul />'); 86 87 $(this).find('option').each(function() { 88 list.append($('<li />').append($('<a />').text($(this).text()))); 89 }); 90 91 list.insertAfter($(this)); 92 93 if($(this).find('option:selected').length) { 94 label.text($(this).find('option:selected').text()); 95 list.find('li:contains(' + $(this).find('option:selected').text() + ')').addClass('active'); 96 $(this).parent().addClass('filled'); 97 } 98 99 }); 100 101 $(document).on('click touch', '.selectDropdown ul li a', function(e) { 102 e.preventDefault(); 103 let dropdown = $(this).parent().parent().parent(); 104 let active = $(this).parent().hasClass('active'); 105 let label = active ? dropdown.find('select').attr('placeholder') : $(this).text(); 106 107 dropdown.find('option').prop('selected', false); 108 dropdown.find('ul li').removeClass('active'); 109 110 dropdown.toggleClass('filled', !active); 111 dropdown.children('span').text(label); 112 113 if(!active) { 114 dropdown.find('option:contains(' + $(this).text() + ')').prop('selected', true); 115 $(this).parent().addClass('active'); 116 } 117 118 dropdown.removeClass('open'); 119 }); 120 121 $('.dropdown > span').on('click touch', function(e) { 122 let self = $(this).parent(); 123 self.toggleClass('open'); 124 }); 125 126 $(document).on('click touch', function(e) { 127 let dropdown = $('.dropdown'); 128 if(dropdown !== e.target && !dropdown.has(e.target).length) { 129 dropdown.removeClass('open'); 130 } 131 }); 132 133 $('.collapsible > li').click(function() { 134 $(this).toggleClass('active'); 135 $(this).siblings().removeClass('active'); 136 }); 137 138 function toggleInterviewAnswer($el) { 139 var willExpand = !$el.hasClass('expanded'); 140 $el.siblings('.block-interview-answer').removeClass('expanded') 141 .attr('aria-expanded', 'false') 142 .attr('aria-label', 'Antwort einblenden'); 143 $el.toggleClass('expanded', willExpand) 144 .attr('aria-expanded', willExpand ? 'true' : 'false') 145 .attr('aria-label', willExpand ? 'Antwort ausblenden' : 'Antwort einblenden'); 146 } 147 148 $('.block-interview-answer').on('click', function() { 149 toggleInterviewAnswer($(this)); 150 }); 151 152 $('.block-interview-answer').on('keydown', function(e) { 153 if (e.key === 'Enter' || e.key === ' ' || e.key === 'Spacebar') { 154 e.preventDefault(); 155 toggleInterviewAnswer($(this)); 156 } 157 }); 158 159 /* RE7 */ 160 function setCookie(cname, cvalue, exdays) { 161 let d = new Date(); 162 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 163 let expires = "expires="+ d.toUTCString(); 164 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 165 } 166 167 function getCookie(cname) { 168 let name = cname + "="; 169 let decodedCookie = decodeURIComponent(document.cookie); 170 let ca = decodedCookie.split(';'); 171 for(let i = 0; i <ca.length; i++) { 172 let c = ca[i]; 173 while (c.charAt(0) == ' ') { 174 c = c.substring(1); 175 } 176 if (c.indexOf(name) == 0) { 177 return c.substring(name.length, c.length); 178 } 179 } 180 return ""; 181 } 182
183 function eraseCookie(name) { 184 document.cookie = name + '=; Max-Age=-99999999;'; 185 } 186 187 $(".block-running-left").stickOnScroll({topOffset: 200}); 188 //$(".block-running-right").stickOnScroll({topOffset: 200}); 189 190 $('.popup a.popup-close').on('click touchstart', function(e) { 191 e.preventDefault(); 192 193 const popup = $(this).parents('.popup'); 194 const cookieName = 'popup'; 195 196 //if(popup.hasClass('popup-1')) cookieName = 'popup-1'; 197 //else cookieName = 'popup-2'; 198 199 popup.fadeOut(); 200 201 if(!getCookie(cookieName)) { 202 setCookie(cookieName, 'true', 1); 203 } 204 205 e.stopPropagation(); 206 207 return false; 208 }); 209 210 document.addEventListener("DOMContentLoaded", function() { 211 // Erase the cookie when the page is loaded 212 eraseCookie('popupClosed'); 213 }); 214 215 $('.popup-new .popup-close-new').on('click touchstart', function(e) { 216 e.preventDefault(); 217 218 const popupNew = $(this).parents('.white-bg'); 219 const cookieNameNew = 'popupClosed'; 220 221 //if(popup.hasClass('popup-1')) cookieName = 'popup-1'; 222 //else cookieName = 'popup-2'; 223 224 //popupNew.fadeOut(); 225 popupNew.removeClass('show'); 226 //$('.closed-info').fadeIn(); 227 $('.closed-info').addClass('show'); 228 229 if(!getCookie(cookieNameNew)) { 230 setCookie(cookieNameNew, 'true', 1); 231 } 232 233 e.stopPropagation(); 234 235 return false; 236 }); 237 238 $('.closed-info .open-info').on('click touchstart', function(e) { 239 e.preventDefault(); 240 241 //$('.closed-info').fadeOut(); 242 $('.closed-info').removeClass('show'); 243 //$('.white-bg').fadeIn(); 244 $('.white-bg').addClass('show'); 245 eraseCookie('popupClosed'); 246 247 e.stopPropagation(); 248 249 return false; 250 }); 251 252 setTimeout(function() { 253 renderPopUps(); 254 }, 2000); 255 256 $(window).resize(function() { 257 renderPopUps(); 258 }); 259 260 function renderPopUps() { 261 if(!getCookie('popup')) { 262 $('.popup').css('top', '200px').css('display', 'flex').css('flex-direction', 'column').fadeIn(); 263 } 264 if(!getCookie('popupClosed')) { 265 $('.popup-new .white-bg').addClass('show'); 266 $('.popup-new .mwbf-banner-mobile-new').css('display', 'flex').fadeIn(); 267 $('.popup-new .closed-info').removeClass('show'); 268 // $('.popup-new .white-bg').css('display', 'flex').css('flex-direction', 'column').fadeIn(); 269 // $('.popup-new .mwbf-banner-mobile-new').css('display', 'flex').fadeIn(); 270 // $('.popup-new .closed-info').css('display', 'none'); 271 } else { 272 $('.popup-new .white-bg').removeClass('show'); 273 $('.popup-new .closed-info').addClass('show'); 274 $('.popup-new .mwbf-banner-mobile-new').css('display', 'flex').fadeIn(); 275 // $('.popup-new .white-bg').css('display', 'none'); 276 // $('.popup-new .closed-info').css('display', 'flex').css('flex-direction', 'column').css('align-items', 'end').fadeIn(); 277 // $('.popup-new .mwbf-banner-mobile-new').css('display', 'flex').fadeIn(); 278 } 279 } 280 281 282 /*function initMap() { 283 // The map, centered at Uluru 284 const map = new google.maps.Map(document.getElementById("block-map-left"), { 285 zoom: 6, 286 center: new google.maps.LatLng(50.952911826681756, 10.524683760046475), 287 }); 288 289 navigator.geolocation.getCurrentPosition(function(position) { 290 // Center on user's current location if geolocation prompt allowed 291 var initialLocation = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); 292 map.setCenter(initialLocation); 293 map.setZoom(8); 294 }); 295 296 //var clinic_markers = <?php echo json_encode($clinic_markers)?>; 297 var clinic_markers = [{"name":"Therapiehof Sotterhausen","provider":"gesetzlich","latitude":"51.455872","longitude":"11.3981902","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/therapiehof-sotterhausen\/"},{"name":"Therapeutische Einrichtung Auf der Lenzwiese","provider":"gesetzlich","latitude":"49.7877913","longitude":"8.9428385","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/therapeutische-einrichtung-auf-der-lenzwiese\/"},{"name":"Tannenhof Berlin-Brandenburg gGmbH - Zentrum I","provider":"gesetzlich","latitude":"52.3813985","longitude":"13.3987673","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/tannenhof-berlin-brandenburg-ggmbh-zentrum-i\/"},{"name":"Tannenhof Berlin-Brandenburg gGmbH - Haus Sch\u00f6nbirken","provider":"gesetzlich","latitude":"52.9615949","longitude":"13.0074197","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/tannenhof-berlin-brandenburg-ggmbh-haus-schoenbirken\/"},{"name":"SRH Medinet Fachklinik Alte \u00d6lm\u00fchle","provider":"gesetzlich","latitude":"52.1295093","longitude":"11.6730253","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/srh-medinet-fachklinik-alte-oelmuehle\/"},{"name":"Soteria Klinik Leipzig","provider":"gesetzlich","latitude":"51.3066994","longitude":"12.4449494","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/soteria-klinik-leipzig\/"},{"name":"salus klinik Lindow","provider":"gesetzlich","latitude":"52.9666438","longitude":"12.9612371","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/salus-klinik-lindow\/"},{"name":"salus klinik H\u00fcrth","provider":"gesetzlich","latitude":"50.8856742","longitude":"6.8683652","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/salus-klinik-huerth\/"},{"name":"salus klinik Friedrichsdorf","provider":"gesetzlich","latitude":"50.2564653","longitude":"8.6406199","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/salus-klinik-friedrichsdorf\/"},{"name":"salus klinik Friedberg","provider":"gesetzlich","latitude":"50.3469741","longitude":"8.7733751","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/salus-klinik-friedberg\/"},{"name":"Salus klinik Castrop-Rauxel","provider":"gesetzlich","latitude":"51.5679959","longitude":"7.3213565","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/salus-klinik-castrop-rauxel\/"},{"name":"Saaletalklinik","provider":"gesetzlich","latitude":"50.3242073","longitude":"10.2301574","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/saaletalklinik\/"},{"name":"Rehaklinik Birkenbuck","provider":"gesetzlich","latitude":"47.7831423","longitude":"7.7266067","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/rehaklinik-birkenbuck\/"},{"name":"Privatklinik Friedenweiler","provider":"privat","latitude":"47.9173948","longitude":"8.2558572","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/privatklinik-friedenweiler\/"},{"name":"Paracelsus-Wiehengebirgsklinik","provider":"gesetzlich","latitude":"52.3046828","longitude":"8.3896469","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/p
297aracelsus-wiehengebirgsklinik\/"},{"name":"Paracelsus-Berghofklinik II","provider":"gesetzlich","latitude":"52.3084405","longitude":"8.324772","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/paracelsus-berghofklinik-ii\/"},{"name":"Paracelsus-Berghofklinik","provider":"gesetzlich","latitude":"52.3104595","longitude":"8.3250537","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/paracelsus-berghofklinik\/"},{"name":"Nescure Privatklinik am See","provider":"privat","latitude":"47.6957192","longitude":"11.0026625","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/nescure-privatklinik-am-see\/"},{"name":"MEDIAN Rhein-Haardt-Klinik GmbH","provider":"gesetzlich","latitude":"49.4595869","longitude":"8.156549","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-rhein-haardt-klinik-gmbh\/"},{"name":"MEDIAN Psychotherapeutische Klinik Bad Liebenwerda","provider":"gesetzlich","latitude":"51.5159324","longitude":"13.3965082","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-psychotherapeutische-klinik-bad-liebenwerda\/"},{"name":"MEDIAN Klinik Wilhelmsheim","provider":"gesetzlich","latitude":"48.9833","longitude":"9.45","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-wilhelmsheim\/"},{"name":"MEDIAN Klinik Wigbertsh\u00f6he","provider":"gesetzlich","latitude":"50.8598857","longitude":"9.6929954","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-wigbertshoehe\/"},{"name":"MEDIAN Klinik Wied","provider":"gesetzlich","latitude":"50.6315595","longitude":"7.7661642","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-wied\/"},{"name":"MEDIAN Klinik T\u00f6nisstein","provider":"gesetzlich","latitude":"50.5406443","longitude":"7.1324088","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-toenisstein\/"},{"name":"MEDIAN Klinik Schweriner See","provider":"gesetzlich","latitude":"53.7230694","longitude":"11.4237924","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-schweriner-see\/"},{"name":"MEDIAN Klinik R\u00f6mhild","provider":"gesetzlich","latitude":"50.3882908","longitude":"10.5606698","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-roemhild\/"},{"name":"MEDIAN Klinik Richelsdorf","provider":"gesetzlich","latitude":"50.9760194","longitude":"10.0072017","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-richelsdorf\/"},{"name":"MEDIAN Klinik Odenwald","provider":"gesetzlich","latitude":"49.8192428","longitude":"9.0179279","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-odenwald\/"},{"name":"MEDIAN Klinik M\u00fcnchwies","provider":"gesetzlich","latitude":"49.3976531","longitude":"7.2534608","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-muenchwies\/"},{"name":"MEDIAN Klinik Mecklenburg","provider":"gesetzlich","latitude":"53.8079624","longitude":"11.0474181","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-mecklenburg\/"},{"name":"MEDIAN Klinik Eschenburg","provider":"gesetzlich","latitude":"50.7942317","longitude":"8.3210404","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-eschenburg\/"},{"name":"MEDIAN Kliniken Daun - Thommener H\u00f6he","provider":"gesetzlich","latitude":"50.2167","longitude":"6.95","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-kliniken-daun-thommener-hoehe\/"},{"name":"MEDIAN Kliniken Daun - Am Rosenberg","provider":"gesetzlich","latitude":"50.1928645","longitude":"6.8225545","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-kliniken-daun-am-rosenberg\/"},{"name":"MEDIAN Kliniken Daun - Altburg","provider":"gesetzlich","latitude":"50.1646058","longitude":"6.8612742","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-kliniken-daun-altburg\/"},{"name":"MEDIAN Klinik Dormagen","provider":"gesetzlich","latitude":"51.0996758","longitude":"6.8160821","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-dormagen\/"},{"name":"MEDIAN Klinik Am Waldsee","provider":"gesetzlich","latitude":"50.4","longitude":"7.15","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/median-klinik-am-waldsee\/"},{"name":"Lifespring-Privatklinik Bad M\u00fcnstereifel","provider":"privat","latitude":"50.5536425","longitude":"6.7536654","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/lifespring-privatklinik-bad-muenstereifel\/"},{"name":"Klinik Tiefental SHG Fachklinik f\u00fcr Psychosomatik und Abh\u00e4ngigkeitserkrankungen","provider":"gesetzlich","latitude":"49.1984518","longitude":"7.0161086","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/klinik-tiefental-shg-fachklinik-fuer-psychosomatik-und-abhaengigkeitserkrankungen\/"},{"name":"Klinik Neum\u00fchle","provider":"gesetzlich","latitude":"50.3503371","longitude":"10.3057507","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/klinik-neumuehle\/"},{"name":"Klinik in der Pl\u00f6ck","provider":"gesetzlich","latitude":"49.4090519","longitude":"8.6962333","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/klinik-in-der-ploeck\/"},{"name":"Klinik Brilon-Wald","provider":"gesetzlich","latitude":"51.3355588","longitude":"8.5839303","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/klinik-brilon-wald\/"},{"name":"Klinik Bad Blankenburg","provider":"gesetzlich","latitude":"50.6758382","longitude":"11.2662206","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/klinik-bad-blankenburg\/"},{"name":"Johannesbad Fachklinik Holthauser M\u00fchle","provider":"gesetzlich","latitude":"51.1821001","longitude":"8.3312407","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/johannesbad-fachklinik-holthauser-muehle\/"},{"name":"Johannesbad Fachklinik Furth im Wald","provider":"gesetzlich","latitude":"49.3159029","longitude":"12.8221227","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/johannesbad-fachklinik-furth-im-wald\/"},{"name":"Johannesbad Fachklinik Fredeburg","provider":"gesetzlich","latitude":"51.1980615","longitude":"8.3170111","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/johannesbad-fachklinik-fredeburg\/"},{"name":"Johannesbad Adaption Dortmund","provider":"gesetzlich","latitude":"51.4753901","longitude":"7.4736779","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/johannesbad-adaption-dortmund\/"},{"name":"Gut Zissendorf","provider":"gesetzlich","latitude":"50.7850852","longitude":"7.2639458","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/gut-zissendorf\/"},{"name":"Fontane-Klinik","provider":"gesetzlich","latitude":"52.1817463","longitude":"13.5990904","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fontane-klinik\/"},{"name":"Fachklinik Zur alten Post GmbH","provider":"gesetzlich","latitude":"48.609305","longitude":"8.3659943","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-zur-alten-post-gmbh\/"},{"name":"Fachklinik Spielwigge","provider":"gesetzlich","latitude":"51.1837904","longitude":"7.6616548","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-spielwigge\/"},{"name":"Fachklinik Schlehreut","provider":"gesetzlich","latitude":"48.6131131","longitude":"13.7647039","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-schlehreut\/"},{"name":"Fachklinik Oerrel - Haus Niedersachsen gGmbH","provider":"gesetzlich","latitude":"52.6839781","longitude":"10.5704579","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-oerrel-haus-niedersachsen-ggmbh\/"},{"name":"Fachklinik Meckenheim","provider":"gesetzlich","latitude":"50.6209209","longitude":"7.0497412","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-meckenheim\/"},{"name":"Fachklinik Haus Kraichtalblick","provider":"gesetzlich","latitude":"49.1084034","longitude":"8.7093987","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-haus-kraichtalblick\/"},{"name":"Fachklinik Eu\u00dferthal","provider":"gesetzlich","latitude":"49.2523054","longitude":"7.9921739","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-eusserthal\/"},{"name":"Fachklinik Altenkirchen","provider":"gesetzlich","latitude":"50.6833271","longitude":"7.6431558","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachklinik-altenkirchen\/"},{"name":"Fachambulanz f\u00fcr erwachsene Suchtkranke M\u00fcnchen","provider":"gesetzlich","latitude":"48.1458947","longitude":"11.5334941","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/fachambulanz-fuer-erwachsene-suchtkranke-muenchen\/"},{"name":"Eschenberg-Wildpark-Klinik","provider":"gesetzlich","latitude":"50.7684388","longitude":"7.2777103","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/eschenberg-wildpark-klinik\/"},{"name":"Diakonie-Krankenhaus Harz GmbH","provider":"gesetzlich","latitude":"51.7721057","longitude":"10.7904524","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/diakonie-krankenhaus-harz-gmbh\/"},{"name":"bwlv Fachklinik Schloz","provider":"gesetzlich","latitude":"48.4524647","longitude":"8.4261019","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/bwlv-fachklinik-schloz\/"},{"name":"Bernhard-Salzmann-Klinik G\u00fctersloh","provider":"gesetzlich","latitude":"51.8946287","longitude":"8.3516877","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/bernhard-salzmann-klinik-guetersloh\/"},{"name":"Asklepios Fachklinikum Wiesen\/ Rehabilitationsklinik","provider":"gesetzlich","latitude":"50.6491465","longitude":"12.5591642","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/asklepios-fachklinikum-wiesen-rehabilitationsklinik\/"},{"name":"AMEOS Klinikum L\u00fcbeck","provider":"gesetzlich","latitude":"53.8485616","longitude":"10.6901916","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/ameos-klinikum-luebeck\/"},{"name":"My Way Betty Ford Klinik","provider":"privat","latitude":"50.30190748597881","longitude":"9.742276340723057","url":"https:\/\/dev.re7hosting.com\/suchtportal\/clinic\/my-way-betty-ford-klinik\/"}]; 298 var marker_petrol = { 299 url: '<?php echo get_stylesheet_directory_uri(); ?>/images/place_petrol_24dp.svg', 300 scaledSize: new google.maps.Size(30, 37), // size 301 }; 302 var marker_orange = { 303 url: '<?php echo get_stylesheet_directory_uri(); ?>/images/place_orange_24dp.svg', 304 scaledSize: new google.maps.Size(30, 37), // size 305 }; 306 307 for (i = 0; i < clinic_markers.length; i++) { 308 if ((clinic_markers[i].latitude != null) && (clinic_markers[i].longitude != null)) { 309 if (clinic_markers[i].provider == "privat") { 310 var marker_icon = marker_petrol; 311 } 312 else if (clinic_markers[i].provider == "gesetzlich") { 313 var marker_icon = marker_orange; 314 } 315 316 const infowindow = new google.maps.InfoWindow({ 317 content: '<strong>' + clinic_markers[i].name + '</strong>', 318 }); 319 320 const marker = new google.maps.Marker({ 321 position: new google.maps.LatLng(clinic_markers[i].latitude, clinic_markers[i].longitude), 322 map: map, 323 icon: marker_icon, 324 url: clinic_markers[i].url 325 }); 326 327 google.maps.event.addListener(marker, 'mouseover', function() { 328 infowindow.open({ 329 anchor: marker, 330 map, 331 shouldFocus: false, 332 }); 333 }); 334 335 google.maps.event.addListener(marker, 'mouseout', function() { 336 infowindow.close(); 337 }); 338 339 google.maps.event.addListener(marker, 'click', function() { 340 window.location.href = marker.url; 341 }); 342 } 343 } 344 } 345 346 */ 347 $('.forminator-custom-form').parent('.block-text-content').css('flex-basis', '100%'); 348}); 349/* 350document.addEventListener( 351 "DOMContentLoaded", () => { 352 new Mmenu( "#menu" , { 353 "extensions": [ 354 "position-right", 355 "theme-dark" 356 ], 357 "navbars": [ 358 { 359 "position": "top", 360 "content": [ 361 "breadcrumbs", 362 "close" 363 ] 364 }, 365 ], 366 }, { 367 "offCanvas": {
368 "clone": true 369 }, 370 "panelNodetype": ["ul"], 371 }); 372 } 373); 374*/ 375document.addEventListener( 376 "DOMContentLoaded", () => { 377 const menuInstance = new Mmenu( "#menu", { 378 "setSelected": { 379 "hover": true, 380 "parent": true 381 }, 382 "offCanvas": { 383 "position": "right" 384 }, 385 "theme": "dark", 386 "navbars": [ 387 { 388 "position": "top", 389 "content": [ 390 "prev", 391 "title" 392 ] 393 } 394 ] 395 }, { 396 "offCanvas": { 397 "clone": true, 398 }, 399 "panelNodetype": ["ul"], 400 }, { 401 classNames: { 402 selected: "current_page_item", 403 }, 404 } 405 ); 406 407 const menuApi = menuInstance.API; 408 const btn = document.getElementById("menu-button"); 409 410 if (btn && menuApi) { 411 btn.addEventListener("click", function(e) { 412 e.preventDefault(); 413 e.stopPropagation(); 414 const isOpen = document.body.classList.contains("mm-wrapper_opened"); 415 if (isOpen) { 416 menuApi.close(); 417 } else { 418 menuApi.open(); 419 } 420 }); 421 422 menuInstance.bind("open:finish", function() { 423 btn.setAttribute("aria-expanded", "true"); 424 btn.setAttribute("aria-label", "Menü schlieÃen"); 425 const firstLink = document.querySelector("#mm-menu a, #mm-clone-menu a"); 426 if (firstLink) firstLink.focus(); 427 }); 428 429 menuInstance.bind("close:finish", function() { 430 btn.setAttribute("aria-expanded", "false"); 431 btn.setAttribute("aria-label", "Menü öffnen"); 432 btn.focus(); 433 }); 434 435 document.addEventListener("keydown", function(e) { 436 if (e.key === "Escape" && document.body.classList.contains("mm-wrapper_opened")) { 437 menuApi.close(); 438 } 439 }); 440 } 441 } 442); 443 444 445/* 446// Remove google font that loading from google api script start 447var head = document.getElementsByTagName('head')[0]; 448 449// Save the original method 450var insertBefore = head.insertBefore; 451 452// Replace it! 453head.insertBefore = function (newElement, referenceElement) { 454 455 if (newElement.href && newElement.href.indexOf('//fonts.googleapis.com/css?family=Roboto') > -1) { 456 457 console.info('Prevented Roboto from loading!'); 458 return; 459 } 460 if (newElement.href && newElement.href.indexOf('//fonts.googleapis.com/css?family=Google+Sans+Text') > -1) { 461 462 console.info('Prevented Roboto from loading!'); 463 return; 464 } 465 466 insertBefore.call(head, newElement, referenceElement); 467}; 468 469// Check it! 470new google.maps.Map(document.getElementById('map'), { 471 center : new google.maps.LatLng(51.508742,-0.120850), 472 zoom : 16, 473 mapTypeId : google.maps.MapTypeId.ROADMAP, 474 streetViewControl: false, 475 zoomControl : false, 476 panControl : false, 477 mapTypeControl : false 478}); 479// Remove google font that loading from google api script end */
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.