1$(document).ready(function() { 2 $("li:first-child").addClass("first"); 3 $("li:last-child").addClass("last"); 4 $('[href="#"]').attr("href", "javascript:;"); 5 // $('.menu-Bar').click(function() { 6 // $(this).toggleClass('open'); 7 // $('.menuWrap').toggleClass('open'); 8 // $('body').toggleClass('ovr-hiddn'); 9 // }); 10 11 $('.loginUp').click(function(){ 12 $('.LoginPopup').fadeIn(); 13 $('.overlay').fadeIn(); 14 }); 15 16 $('.signUp').click(function(){ 17 $('.signUpPop').fadeIn(); 18 $('.overlay').fadeIn(); 19 }); 20 21 $('.closePop,.overlay').click(function(){ 22 $('.popupMain').fadeOut(); 23 $('.overlay').fadeOut(); 24 }); 25 26 27 28}); 29 30var len = $('.menu > li'), str; 31$(".menu-Bar").click(function () { 32 $(this).toggleClass("open"); 33 $(".menuWrap").toggleClass("open"); 34 $("body").toggleClass("ovr-hiddn"); 35 for (var i = 1; i < len.length; i++) { 36 str = (300 + 100 * (i - 1)) + "ms"; 37 len.eq(i).css('animation-delay', str) 38 } 39}); 40 41 42 43var features = []; 44 45$('#calmarketing').click(function(e){ 46 e.preventDefault(); 47 if(features.length > 0) 48 { 49 window.location = $(this).attr('href'); 50 } 51 else 52 { 53 alert('Please select one feature(s)'); 54 return false; 55 } 56 57}); 58$('.plugSec1-card').click(function(){ 59 // $(this).find('.plugSec1-cardDot').find('span').css("background-color", "rgb(142 198 61)"); 60 $(this).find('.plugSec1-cardDot').find('span').toggleClass('isCheckSelect'); 61 var feature = $(this).find('h6').text(); 62 if($.inArray(feature,features)) 63 { 64 features.push(feature); 65 } 66 else 67 { 68 var removeItemIndex = features.indexOf(feature); 69 features.splice(removeItemIndex, 1); 70 } 71 var defaul_url = $('#calmarketing').data('url'); 72 var nw = features; 73 var newFeature = nw.join(' '); 74 var newUrl = defaul_url+'?a2='+newFeature; 75 $('#calmarketing').attr('href',newUrl); 76 console.log(features); 77 78}); 79 80 81// Fancy Media 82 83 84// Slider For 85$('.slider-for').slick({ 86 slidesToShow: 1, 87 slidesToScroll: 1, 88 dots: false, 89 arrows: false, 90 fade: true, 91 asNavFor: '.slider-nav' 92}); 93$('.slider-nav').slick({ 94 slidesToShow: 4, 95 slidesToScroll: 1, 96 asNavFor: '.slider-for', 97 dots: false, 98 focusOnSelect: true 99}); 100 101 102// Accordion 103$('.myaccordi>li').click(function() { 104 $(this).addClass('active'); 105 $(this).siblings().removeClass('active'); 106}); 107// https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_accordion 108 109 110// Sticky Navigation 111$(window).scroll(function() { 112 var scroll = $(window).scrollTop(); 113 if (scroll >= 200) { 114 $(".fixed").addClass("sticky"); 115 } else { 116 $(".fixed").removeClass("sticky"); 117 } 118}); 119 120 121// Normal Slider 122$('.index-slider').slick({ 123 dots: false, 124 infinite: true, 125 speed: 300, 126 slidesToShow: 1, 127 slidesToScroll: 1, 128}); 129 130$('.pricing-slider').slick({ 131 dots: true, 132 arrows: false, 133 infinite: true, 134 speed: 300, 135 slidesToShow: 3, 136 autoplay: true, 137 autoplaySpeed: 4000, 138 slidesToScroll: 1,responsive: [ 139 { 140 breakpoint: 992, 141 settings: { 142 slidesToShow: 2 143 } 144 }, 145 { 146 breakpoint: 768, 147 settings: { 148 slidesToShow: 1 149 } 150 } 151 ] 152}); 153 154$('.client-slider').slick({ 155 dots: true, 156 arrows: false, 157 infinite: true, 158 speed: 300, 159 slidesToShow: 6, 160 slidesToScroll: 1, 161 autoplay: true, 162 autoplaySpeed: 3000, 163 responsive: [ 164 { 165 breakpoint: 992, 166 settings: { 167 slidesToShow: 5 168 } 169 }, 170 { 171 breakpoint: 768, 172 settings: { 173 slidesToShow: 2, 174 } 175 } 176 ] 177}); 178 179$('.corporate-slider').slick({ 180 dots: true, 181 arrows: false, 182 infinite: true, 183 speed: 300, 184 slidesToShow: 4, 185 slidesToScroll: 1, 186 autoplay: true, 187 autoplaySpeed: 4000, 188 responsive: [ 189 { 190 breakpoint: 992, 191 settings: { 192 slidesToShow: 3 193 } 194 }, 195 { 196 breakpoint: 768, 197 settings: { 198 slidesToShow: 2, 199 } 200 }, 201 { 202 breakpoint: 541, 203 settings: { 204 slidesToShow: 1, 205 } 206 } 207 ] 208}); 209 210$('.plugSec1-slider').slick({ 211 dots: false, 212 arrows: true, 213 infinite: true, 214 speed: 300, 215 slidesToShow: 1, 216 slidesToScroll: 1, 217 autoplay: true, 218 autoplaySpeed: 4000, 219}); 220 221$('.plugSec2-slider').slick({ 222 dots: true,
223 arrows: false, 224 infinite: true, 225 speed: 300, 226 slidesToShow: 3, 227 slidesToScroll: 1, 228 autoplay: true, 229 autoplaySpeed: 4000, 230 responsive: [ 231 { 232 breakpoint: 768, 233 settings: { 234 slidesToShow: 2, 235 } 236 }, 237 { 238 breakpoint: 541, 239 settings: { 240 slidesToShow: 1, 241 } 242 } 243 ] 244}); 245 246$('.health-slider').slick({ 247 dots: false, 248 arrows: true, 249 infinite: true, 250 speed: 300, 251 slidesToShow: 1, 252 slidesToScroll: 1, 253 autoplay: true, 254 autoplaySpeed: 4000, 255}); 256 257 258 259 260 261// Navigation Menu 262$(window).on('load', function() { 263var currentUrl = window.location.href.substr(window.location.href.lastIndexOf("/") + 1); 264$('ul.menu li a').each(function() { 265 var hrefVal = $(this).attr('href'); 266 if (hrefVal == currentUrl) { 267 $(this).removeClass('active'); 268 $(this).closest('li').addClass('active') 269 $('ul.menu li.first').removeClass('active'); 270 } 271}); 272 273}); 274 275// Tabbing JS 276$('[data-targetit]').on('click', function(e) { 277 $(this).addClass('current'); 278 $(this).siblings().removeClass('current'); 279 var target = $(this).data('targetit'); 280 $('.' + target).siblings('[class^="box-"]').hide(); 281 $('.' + target).fadeIn(); 282}); 283 284/* RESPONSIVE JS */ 285if ($(window).width() < 825) { 286}
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.