1jQuery(function ($) { 2 'use strict'; 3 4 // Header Sticky 5 $(window).on('scroll',function() { 6 if ($(this).scrollTop() > 30){ 7 $('.navbar-area').addClass("is-sticky"); 8 } 9 else{ 10 $('.navbar-area').removeClass("is-sticky"); 11 } 12 }); 13 14 // Mean Menu 15 jQuery('.mean-menu').meanmenu({ 16 meanScreenWidth: "1199" 17 }); 18 19 // Others Option For Responsive JS 20 $(".others-option-for-responsive .dot-menu").on("click", function(){ 21 $(".others-option-for-responsive .container .container").toggleClass("active"); 22 }); 23 24 // Search Menu JS 25 $(".others-options .search-box").on("click", function(){ 26 $(".search-overlay").toggleClass("search-overlay-active"); 27 }); 28 $(".search-overlay-close").on("click", function(){ 29 $(".search-overlay").removeClass("search-overlay-active"); 30 }); 31 32 // TweenMax JS 33 $('.main-banner-area').mousemove(function(e){ 34 var wx = $(window).width(); 35 var wy = $(window).height(); 36 var x = e.pageX - this.offsetLeft; 37 var y = e.pageY - this.offsetTop; 38 var newx = x - wx/2; 39 var newy = y - wy/2; 40 $('.main-banner-shape-1, .main-banner-shape-2, .main-banner-shape-3, .main-banner-shape-4').each(function(){ 41 var speed = $(this).attr('data-speed'); 42 if($(this).attr('data-revert')) speed *= -.4; 43 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 44 }); 45 }); 46 47 48 49 50 // Isotop Js 51 var $grid = $('.portfolio-items').isotope({ 52 itemSelector: '.grid-item', 53 percentPosition: true, 54 masonry: { 55 // Use outer width of grid-sizer for columnWidth 56 columnWidth: '.grid-item' 57 } 58 }); 59 60 61 62// function to set a given theme/color-scheme 63function setTheme(themeName) { 64 localStorage.setItem('augu_theme', themeName); 65 document.documentElement.className = themeName; 66} 67// function to toggle between light and dark theme 68function toggleTheme() { 69 if (localStorage.getItem('augu_theme') === 'theme-dark') { 70 setTheme('theme-light'); 71 } else { 72 setTheme('theme-dark'); 73 } 74} 75// Immediately invoked function to set the theme on initial load 76(function () { 77 if (localStorage.getItem('augu_theme') === 'theme-dark') { 78 setTheme('theme-dark'); 79 document.getElementById('slider').checked = false; 80 } else { 81 setTheme('theme-light'); 82 document.getElementById('slider').checked = true; 83 } 84})(); 85 86 87 88$('.toggle-menu').click(function () { 89 $('.exo-menu').toggleClass('display'); 90 91 }); 92});
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.