1;(function($) { 2 3"use strict"; 4 5var $body = $('body'); 6// var $head = $('head'); 7// var $mainWrapper = $('#main-wrapper'); 8 9 10$(document).ready(function(){ 11 12 $("#header").each(function(){ 13 14 var button = $('.toggleMenu'); 15 var nav_content = $('.navi'); 16 var has_submenu = nav_content.find('.has-submenu > a'); 17 var submenu = nav_content.find('.submenu'); 18 19 $(button).on('click', function(){ 20 $(this).toggleClass('active'); 21 $(nav_content).slideToggle('200'); 22 }); 23 }); 24 25 $('.tour-section .col-md-6').matchHeight({ remove: false }); 26 27 $('.scroll-link').on('click', function(e){ 28 e.preventDefault(); 29 var sectionID = $(this).attr("data-id"); 30 scrollToID('#' + sectionID, 750); 31 }); 32 33 function scrollToID(id, speed){ 34 var offSet = 66; 35 var targetOffset = $(id).offset().top - offSet; 36 var mainNav = $('.navi'); 37 $('html,body').animate({scrollTop:targetOffset}, speed); 38 if (mainNav.hasClass("open")) { 39 mainNav.css("height", "1px").removeClass("in").addClass("collapse"); 40 mainNav.removeClass("open"); 41 } 42 } 43 44 $('.nyroModal').nyroModal(); 45 46 47}); 48 49 50// Mediaqueries 51// --------------------------------------------------------- 52// var XS = window.matchMedia('(max-width:767px)'); 53// var SM = window.matchMedia('(min-width:768px) and (max-width:991px)'); 54// var MD = window.matchMedia('(min-width:992px) and (max-width:1199px)'); 55// var LG = window.matchMedia('(min-width:1200px)'); 56// var XXS = window.matchMedia('(max-width:480px)'); 57// var SM_XS = window.matchMedia('(max-width:991px)'); 58// var LG_MD = window.matchMedia('(min-width:992px)'); 59 60 61 62// Touch 63// --------------------------------------------------------- 64var dragging = false; 65 66$body.on('touchmove', function() { 67 dragging = true; 68}); 69 70$body.on('touchstart', function() { 71 dragging = false; 72}); 73 74 75 76}(jQuery));
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.