1$(function() { 2 var viewportmeta = document.querySelector && document.querySelector('meta[name="viewport"]'); 3 var ua = navigator.userAgent; 4 5 var gestureStart = function() { viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6'; }; 6 7 var scaleFix = function() { 8 if (viewportmeta && /iPhone|iPad/.test(ua) && !/Opera Mini/.test(ua)) { 9 viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0'; 10 if (document.URL.indexOf('http://') === -1 && document.URL.indexOf('https://') === -1) { 11 viewportmeta.content += ', viewport-fit=cover'; 12 } 13 document.addEventListener('gesturestart', gestureStart, false); 14 } 15 }; 16 17 scaleFix(); 18}); 19var ua = navigator.userAgent.toLocaleLowerCase(); 20var regV = /ipod|ipad|iphone/gi; 21var result = ua.match(regV); 22var userScale = ''; 23if (!result) { 24 userScale = ',user-scalable=0'; 25} 26document.write('<meta name="viewport" content="width=device-width,initial-scale=1.0' + userScale + '">'); 27 28// ---- INCLUDE ---- 29 30var owl = $('.owl-carousel'); 31var styler = $('.styler'); 32var matchHeight = $('[data-mh]'); 33var mainSlider = $('.main-slider__slides'); 34var searchSection = $('.search'); 35var skroll = $('.skroll'); 36var popupBtn = $('[data-open-popup]'); 37 38var afterRenderHeader = function() { 39 $('.js-resp-nav-toggle').on('click', function(event) { 40 $('body').toggleClass('showRespNav'); 41 $('#responsive_overlay').on('click', function() { 42 $('body').removeClass('showRespNav'); 43 }); 44 }); 45}; 46 47// ---- INITIALIZATION ---- 48 49$(document).ready(function() { 50 // init default carousel 51 52 // if(owl.length){ 53 54 // owl.each(function(){ 55 // var current = $(this); 56 // var navigation = current.hasClass('owl-no-navigation') ? false : true; 57 58 // current.owlCarousel({ 59 // items : 1, 60 // singleItem : true, 61 // navigation: navigation, 62 // autoplay: true, 63 // autoplayTimeout: 3000, 64 // slideSpeed : 1000, 65 // autoplayHoverPause: true 66 // }); 67 68 // if (current.data('carousel-options') == 'custom-nav-btns'){ 69 // current.on('click', ".carousel-btn", function(e){ 70 // e.preventDefault(); 71 72 // if ($(this).data('icon') == 'left') { 73 // current.data('owlCarousel').prev(); 74 // } 75 76 // if ($(this).data('icon') == 'right') { 77 // current.data('owlCarousel').next(); 78 // } 79 80 // }) 81 // } 82 // }) 83 84 // } 85 86 if (styler.length) { 87 styler.styler(); 88 } 89 90 // init popup 91 popupBtn.on('click', function(event) { 92 event.preventDefault(); 93 var current = $(this); 94 var target = current.data('open-popup'); 95 96 $(target).arcticmodal({ 97 overlay: { 98 css: { 99 backgroundColor: '#707c8f', 100 opacity: 0.8 101 } 102 }, 103 beforeOpen: function(data, el) { 104 setTimeout(function() { 105 $('.lt-label').hide(); 106 $('body').find('.arcticmodal-container_i2').addClass('open'); 107 m_modal.addModalUrl(target); 108 }, 100); 109 }, 110 beforeClose: function(data, el) { 111 setTimeout(function() { 112 $('.lt-label').show(); 113 $('body').find('.arcticmodal-container_i2').addClass('close'); 114 }, 0); 115 116 m_modal.removeModalUrl(target); 117 118 if ($('body').hasClass('showOverlay')) { 119 $('body').removeClass('showOverlay'); 120 } 121 } 122 }); 123 }); 124 125 if ('m_cabinet' in window) m_cabinet.getClinics(); 126});
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.