1// JavaScript Document 2 3 4function ajaxWebformSubmit(options){ 5 var settings = $.extend({ 6 formID: null, 7 successMsg: 'Your form has been submitted successfully', 8 errorMsg: 'Looks like there has been an error in submitting this part.' 9 },options); 10 11 $.ajax({ 12 url: $(settings.formID).attr("action") + "&JSON=1", 13 data: $(settings.formID).serialize(), 14 type: "POST" 15 }).done(function(msg){ 16 var formResponse = eval(msg); 17 if (formResponse.FormProcessV2Response.success){ 18 $(settings.formID).after("<h4 class=\"json-success\" style=\"display:none;\">" + settings.successMsg + "</h4>"); 19 $(settings.formID).hide(); 20 $(".json-success").fadeIn(400); 21 } 22 }).fail(function(msg){ 23 alert(" " + settings.errorMsg + msg + " "); 24 }); 25} 26/*==================*******=========***Feature menu Parent Link***===========*******===========*/ 27$(document).ready(function(e) { 28 $(".whats-new .blog_text").text(function(index, currentText) { 29 return currentText.substr(0, 300); 30}); 31 $(".blog-wrap .blog_text").text(function(index, currentText) { 32 return currentText.substr(0, 400); 33}); 34}); 35 36 var wd = $(window).width(); 37 if((wd <= 768) && (wd >= 641)) 38 { 39 40 $('.top-bar-section ul li.has-dropdown').each(function(index, element) { 41 var menu_val = $(this).find("> a").text(); 42 var menu_link = $(this).find("> a").attr('href'); 43 $(this).find("ul").prepend('<li class="drop-val"><a href="' + menu_link + '">'+menu_val+'</a></li>'); 44 }); 45 46 } 47/*==================*******=========***Feature menu***===========*******===========*/ 48 49 $(".feature-menu ul li").each(function(){ 50 $(this).find("a").click(function(){ 51 var hrf = $(this).attr("href"); 52 $('html, body').animate({ 53 scrollTop: $(hrf).offset().top 54 }, 3000); 55 }); 56 }); 57/*==================*******=========***Loader***===========*******===========*/ 58 59/*==================*******=========***DorpDown Menu***===========*******===========*/ 60 61$(".menu-li").click(function() { 62 // event.preventDefault(); 63 $(".menu-ul").slideToggle(); 64 return false; 65}); 66 67/*==================*******=========***Number Animation***===========*******===========*/ 68 69 70 $('.counter').counterUp({ 71 delay: 10, 72 time: 5000 73 }); 74 75/*==================*******=========***Search***===========*******===========*/ 76 77 78$('.search-wrap').click(function () { 79 80 var $t = $('.search-form'); 81 82 if ($t.is(':visible')) { 83 $t.slideUp(); 84 85 $(".search .search-wrap").removeClass("cross-icon"); 86 $(".search .search-wrap").addClass("search-icon"); 87 88 } else { 89 $t.slideDown(); 90 91 $(".search .search-wrap").removeClass("search-icon"); 92 $(".search .search-wrap").addClass("cross-icon"); 93 } 94}); 95 96/* 97 98 99 100/*==================*******=========***Home Slide***===========*******===========*/ 101 102$('.home-slider').slick({ 103 slidesToShow: 1, 104 slidesToScroll: 1, 105 arrows: true, 106 dots:false, 107 autoplay: true, 108 autoplaySpeed: 6000, 109 slide: '.home-slide' 110}); 111 112 $('.slider-for').slick({ 113 slidesToShow: 1, 114 slidesToScroll: 1, 115 arrows: false, 116 fade: true, 117 slide: 'li', 118 asNavFor: '.slider-nav' 119}); 120$('.slider-nav').slick({ 121 slidesToShow: 3, 122 slidesToScroll: 1, 123 asNavFor: '.slider-for', 124 dots: false, 125 slide: 'li', 126 centerMode: true, 127 focusOnSelect: true 128}); 129 130/*==================*******=========***Overview Slider***===========*******===========*/ 131 132$(".overview-slider").slick({ 133 134 autoplay: true, 135 dots: true, 136 speed: 400, 137 customPaging : function(slider, i) { 138 var thumb = $(slider.$slides[i]).data('thumb'); 139 return '<a><img src="'+thumb+'"></a>'; 140 } 141}); 142 143 144/*==================*******=========***Other Features Slider***===========*******===========*/ 145 146$('.other-features-slider').slick({ 147 slidesToShow: 4, 148 slidesToScroll: 1, 149 arrows: true, 150 dots:false, 151 autoplay: true, 152 speed: 400, 153 slide: '.other-features-slide', 154 responsive: [ 155 { 156 breakpoint: 1024, 157 settings: { 158 slidesToShow: 3, 159 slidesToScroll: 3, 160 infinite: true, 161 } 162 }, 163 { 164 breakpoint: 600, 165 settings: { 166 slidesToShow: 2, 167 slidesToScroll: 2 168 } 169 }, 170 { 171 breakpoint: 480, 172 settings: { 173 slidesToShow: 1, 174 slidesToScroll: 1 175 } 176 } 177 ] 178}); 179
180/*==================*******=========***Our staff***===========*******===========*/ 181 182$('.staff-slider').slick({ 183 slidesToShow: 1, 184 slidesToScroll: 1, 185 arrows: true, 186 dots:false, 187 autoplay: true, 188 slide: '.staff-slide' 189}); 190 191/*==================*******=========***Food Slider***===========*******===========*/ 192 193$('.food-slider').slick({ 194 slidesToShow: 1, 195 slidesToScroll: 1, 196 arrows: true, 197 dots:false, 198 autoplay: true, 199 speed: 400, 200 slide: '.food-slide' 201}); 202 203
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.