1(function ($) { 2 "use strict"; 3 4/*-------------------------- 5preloader 6---------------------------- */ 7 8 $(window).on('load',function(){ 9 var pre_loader = $('#preloader') 10 //pre_loader.fadeOut('slow',function(){$(this).remove();}); 11 if($(window).width()>768){ 12 $('.intro-content, .slider-images img').height($(window).height()); 13 if($('.slider-content').length){ 14 $('.slider-content').each(function(){ 15 $(this).css({'margin-top' : '-' + (($(this).height()/2)-30) + 'px'}); 16 }); 17 } 18 19 } 20 21 }); 22 23 $('body').on('click', '.set-cook-allow', function(){ 24 $('.cook-allow').fadeOut(300); 25 $.post('/set-cookie-allow-politic'); 26 }); 27 28 29 30 31/*--------------------- 32 TOP Menu Stick 33--------------------- */ 34 35var windows = $(window); 36var sticky = $('#sticker'); 37 38windows.on('scroll', function() { 39 var scroll = windows.scrollTop(); 40 if (scroll < 300) { 41 sticky.removeClass('stick'); 42 $('.header-one').css({'padding-top': '0px'}); 43 }else{ 44 sticky.addClass('stick'); 45 $('.header-one').css({'padding-top': '200px'}); 46 } 47}); 48 49/*---------------------------- 50 jQuery MeanMenu 51------------------------------ */ 52 53 var mean_menu = $('nav#dropdown'); 54 mean_menu.meanmenu(); 55 56/*--------------------- 57 wow .js 58--------------------- */ 59 function wowAnimation(){ 60 new WOW({ 61 offset: 100, 62 mobile: true 63 }).init() 64 } 65 wowAnimation() 66 67/*-------------------------- 68 scrollUp 69---------------------------- */ 70 71 $.scrollUp({ 72 scrollText: '<i class="ti-angle-up"></i>', 73 easingType: 'linear', 74 scrollSpeed: 900, 75 animation: 'fade' 76 }); 77 78 79/*-------------------------- 80 collapse 81---------------------------- */ 82 83 var panel_test = $('.panel-heading a'); 84 panel_test.on('click', function(){ 85 panel_test.removeClass('active'); 86 $(this).addClass('active'); 87 }); 88/*-------------------------- 89 Parallax 90---------------------------- */ 91 var parallaxeffect = $(window); 92 parallaxeffect.stellar({ 93 responsive: true, 94 positionProperty: 'position', 95 horizontalScrolling: false 96 }); 97 98/*-------------------------- 99 MagnificPopup 100---------------------------- */ 101 102 $('.video-play').magnificPopup({ 103 type: 'iframe' 104 }); 105 106/*-------------------------- 107 slider carousel 108---------------------------- */ 109 var intro_carousel = $('.intro-carousel'); 110 intro_carousel.owlCarousel({ 111 loop:true, 112 nav:true, 113 autoplay: false, 114 fluidSpeed: false, 115 smartSpeed: 1000, 116 autoplayTimeout: 8000, 117 dots:false, 118 navText: ["<i class='ti-angle-left'></i>","<i class='ti-angle-right'></i>"], 119 responsive:{ 120 0:{ 121 items:1 122 }, 123 600:{ 124 items:1 125 }, 126 1000:{ 127 items:1 128 } 129 } 130 }); 131 132/*--------------------- 133 Testimonial carousel 134---------------------*/ 135 136 var review = $('.testimonial-carousel'); 137 review.owlCarousel({ 138 loop:true, 139 nav:false, 140 margin:40, 141 dots:true, 142 center: true, 143 autoplay:false, 144 responsive:{ 145 0:{ 146 items:1 147 }, 148 768:{ 149 items:2 150 }, 151 1000:{ 152 items:2 153 } 154 } 155 }); 156 157/*---------------------------- 158 Contact form 159------------------------------ */ 160 $("#contactForm").on("submit", function (event) { 161 if (event.isDefaultPrevented()) { 162 formError(); 163 submitMSG(false, "Did you fill in the form properly?"); 164 } else { 165 event.preventDefault(); 166 submitForm(); 167 } 168 }); 169 function submitForm(){ 170 var name = $("#name").val(); 171 var email = $("#email").val(); 172 var msg_subject = $("#msg_subject").val(); 173 var message = $("#message").val(); 174 175 176 $.ajax({ 177 type: "POST", 178 url: "assets/contact.php", 179 data: "name=" + name + "&email=" + email + "&msg_subject=" + msg_subject + "&message=" + message, 180 success : function(text){ 181 if (text === "success"){ 182 formSuccess(); 183 } else { 184 formError(); 185 submitMSG(false,text); 186 } 187 } 188 }); 189 } 190 191 function formSuccess(){ 192 $("#contactForm")[0].reset(); 193 submitMSG(true, "Message Submitted!") 194 } 195 196 function formError(){ 197 $("#contactForm").removeClass().addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){ 198 $(this).removeClass(); 199 }); 200 } 201 202 function submitMSG(valid, msg){ 203 if(valid){ 204 var msgClasses = "h3 text-center tada animated text-success"; 205 } else { 206 var msgClasses = "h3 text-center text-danger"; 207 } 208 $("#msgSubmit").removeClass().addClass(msgClasses).text(msg); 209 } 210 211 212})(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.