1jQuery(document).ready(function ($) { 2 $.fn.andSelf = function() { 3 return this.addBack.apply(this, arguments); 4 } 5 /* wow = new WOW( 6 { 7 boxClass: 'wow', // default 8 animateClass: 'animated', // default 9 offset: 0, // default 10 mobile: true, // default 11 live: true // default 12 } 13 ) 14 wow.init();*/ 15 16 new WOW().init(); 17 18 19 jQuery(function(){ 20 $('.owl-carousel-vertical').owlCarousel({ 21 items: 1, 22 loop: false, 23 nav: true, 24 margin: 0, 25 autoplayHoverPause: true, 26 animateOut: 'fadeOutUp', 27 animateIn: 'fadeInUp', 28 mouseDrag:false, 29 touchDrag: false, 30 }); 31 // this code below enables drag and drop vertically. Unfortunately I was unable to disable horizontal drag and drop so it will remain active, but we already have something now =D 32 // $('.owl-carousel').data('owl.carousel').difference = function(first, second) { 33 // return { 34 // x: first.x - second.x + (first.y - second.y), 35 // y: first.y - second.y 36 // }; 37 // }; 38 }); 39 40 // Initialize Owl Carousel for the default active tab 41 $('#tab1-carousel').owlCarousel({ 42 // items: 3, 43 // loop: true, 44 nav: true, 45 margin: 10, 46 autoplay: false, 47 responsive:{ 48 0:{ 49 stagePadding: 0, 50 margin: 10, 51 items:1, 52 }, 53 768:{ 54 stagePadding: 0, 55 margin: 10, 56 items:1, 57 }, 58 993:{ 59 stagePadding: 30, 60 margin: 10, 61 items:1, 62 }, 63 1200: { 64 stagePadding: 60, 65 margin: 30, 66 items:1, 67 }, 68 1400: { 69 stagePadding: 75, 70 margin: 40, 71 items:1, 72 } 73 } 74 }); 75 76 // When the tabs are shown or hidden, re-initialize Owl Carousel as needed 77 jQuery('button[data-bs-toggle="tab"]').on('shown.bs.tab', function (e) { 78 var targetCarouselId = $(e.target).attr('data-bs-target'); 79 jQuery(targetCarouselId + '-carousel').owlCarousel({ 80 // items: 3, 81 loop: false, 82 margin: 10, 83 autoplay: false, 84 nav: true, 85 responsive:{ 86 0:{ 87 stagePadding: 0, 88 margin: 10, 89 items:1, 90 }, 91 768:{ 92 stagePadding: 0, 93 margin: 10, 94 items:1, 95 }, 96 993:{ 97 stagePadding: 30, 98 margin: 10, 99 items:1, 100 }, 101 1200: { 102 stagePadding: 60, 103 margin: 30, 104 items:1, 105 }, 106 1400: { 107 stagePadding: 75, 108 margin: 40, 109 items:1, 110 } 111 } 112 }); 113 }); 114 115 // Stop Owl Carousel when the tab is hidden 116 /*$('button[data-bs-toggle="tab"]').on('hidden.bs.tab', function (e) { 117 var targetCarouselId = $(e.target).attr('data-bs-target'); 118 $(targetCarouselId + '-carousel').trigger('destroy.owl.carousel'); 119 });*/ 120 121 jQuery('.testimonial-carousel').owlCarousel({ 122 margin:0, 123 nav:false, 124 dots: false, 125 loop: true, 126 items: 1, 127 autoplay: true 128 }); 129 130 131 jQuery('.card-slider').owlCarousel({ 132 margin:0, 133 nav:true, 134 dots: false, 135 loop: true, 136 items: 1 137 }); 138 139 jQuery('.post-item-slider').owlCarousel({ 140 margin:0, 141 nav:true, 142 dots: true, 143 autoplay: true, 144 loop: false, 145 items: 1 146 }); 147 148 jQuery('#testimonial-slider').owlCarousel({ 149 margin:0, 150 nav:true, 151 loop: true, 152 responsive:{ 153 0:{ 154 stagePadding: 48, 155 margin: 0, 156 items:1, 157 }, 158 768:{ 159 stagePadding: 0, 160 margin: 0, 161 items:2, 162 }, 163 993:{ 164 stagePadding: 0, 165 margin: 5, 166 items:3, 167 } 168 } 169 }); 170
171 var carousel = jQuery('#home-carousel, .home-carousel'); 172 var itemCount = carousel.children().length; 173 var showDots = itemCount > 4; 174 175 carousel.owlCarousel({ 176 margin: 0, 177 nav: false, 178 loop: true, 179 slideBy: 1, 180 responsive: { 181 0: { 182 stagePadding: 0, 183 margin: 10, 184 items: 1, 185 }, 186 768: { 187 stagePadding: 0, 188 margin: 10, 189 items: 2, 190 }, 191 993: { 192 margin: 0, 193 items: 4, 194 dots: showDots, 195 mouseDrag: false, 196 }, 197 1200: { 198 margin: 0, 199 items: 4, 200 dots: showDots, 201 mouseDrag: false, 202 }, 203 1400: { 204 margin: 0, 205 items: 4, 206 dots: showDots, 207 mouseDrag: false, 208 } 209 } 210 }); 211 212 213 if($(window).width()<="767"){ 214 $(".navbar-nav > .menu-item-has-children").each(function(k,v){ 215 $(v).children("a").after("<span class='openMore'><span></span></span>"); 216 }); 217 218 // $(".menu-item-has-children").each(function(k,v){ 219 // $(v).children("a").after("<span class='openMore'></span>"); 220 // }); 221 $(".openMore").click(function(e){ 222 e.stopPropagation(); 223 $(this).siblings(".sub-menu").slideToggle(500); 224 $(this).toggleClass("close-menu"); 225 }); 226 } 227 228 // Initialize Masonry on your container 229 jQuery('.masonry-grid').masonry({ 230 // Masonry options 231 itemSelector: '.masonary-item', // Selector for the items 232 columnWidth: '.masonary-item', // Width of the columns 233 percentPosition: true 234 }); 235 236 237 //Top Bar 238 239 $('.header-topbar a').click(function(){ 240 241 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Header', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 242 243 }); 244 245 246 247 // Header 248 249 $('#header a').click(function(){ 250 251 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Header', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 252 253 }); 254 255 256 257 // Footer 258 259 $('#footer a').click(function(){ 260 261 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Footer', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 262 263 }); 264 265 266 267 //Home Banner 268 269 $('#home-banner a').click(function(){ 270 271 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Banner Home', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 272 273 }); 274 275 276 277 //Global CTA bottom 278 279 $('.global-cta a').click(function(){ 280 281 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Global CTA', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 282 283 }); 284 285 286 287 //Community Cards 288 289 $('.community-card-wrap a').click(function(){ 290 291 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Community Card', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 292 293 }); 294 295 296 297 298 299 //Insight Grid 300 301 $('.insights-grid a').click(function(){ 302 303 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Insight Grid', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 304 305 }); 306 307 308 309 //Resource Wrapper 310 311 $('.resources-wrapper a').click(function(){ 312 313 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Resources Grid', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 314 315 }); 316 317 //Sidebar CTA 318 319 $('.sidebar-cta a').click(function(){ 320 321 dataLayer.push({'event': 'GFTrackEvent', 'GFTrackCategory': 'Sidebar CTA', 'GFTrackLabel': window.location.href, 'GFTrackAction': $(this).text(), 'GFTrackClickURL': $(this).attr("href"), 'GFTrackClassName': $(this).parent().attr("class") }); 322 323 }); 324 325 326 327 /* KYC6 Updates */ 328 329 $('.capabilities-section .readmore_content').css({'display': 'none'}); 330 $('.capabilities-section .readmore a').on('click', function(e){ 331 e.preventDefault(); 332 $(this).hide(); 333 $(this).parents('.readmore').next('.readmore_content').slideToggle(); 334 }); 335 336 337 $('.nav-tabs .nav-item').click(function(){ 338 ChangeUrl('Page1', '?tab='+$.trim($(this).data('tab'))); 339 }); 340 341 function ChangeUrl(page, url) { 342 if (typeof (history.pushState) != "undefined") { 343 var obj = { Page: page, Url: url }; 344 history.pushState(obj, obj.Page, obj.Url); 345 } 346 } 347 348 $(window).on('load', function(){ 349 // console.log('Test'); 350 if(getParameterByName('tab')){ 351 // console.log(getParameterByName('tab')); 352 // $('.page_tab_head[data-name="'+getParameterByName('tab')+'"]').trigger('click'); 353 setTimeout(() => { 354 $('.nav-tabs .nav-item[data-tab="'+getParameterByName('tab')+'"] button').trigger('click'); 355 // console.log($('.nav-tabs .nav-item[data-tab="'+getParameterByName('tab')+'"] button').offset().top - 30); 356 $('html, body').animate({ 357 scrollTop: $('.nav-tabs .nav-item[data-tab="'+getParameterByName('tab')+'"] button').offset().top - 30 358 }, 500, 'linear'); 359 }, 100); 360 } 361 }); 362 363 function getParameterByName(name, url) { 364 if (!url) url = window.location.href; 365 name = name.replace(/[\[\]]/g, "\\$&"); 366 var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), 367 results = regex.exec(url); 368 if (!results) return null; 369 if (!results[2]) return ''; 370 return decodeURIComponent(results[2].replace(/\+/g, " ")); 371 } 372 373 374 }); 375
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.