1jQuery(document).ready(function($){ 2 3 // AOS.init({ 4 // duration: 1200 5 // }); 6 AOS.init(); 7 8//Sticky Header 9 jQuery(function () { 10 jQuery(window).scroll(function () { 11 var winTop = jQuery(window).scrollTop(); 12 if (winTop >= 30) { 13 jQuery("header").addClass("sticky-header"); 14 } else { 15 jQuery("header").removeClass("sticky-header"); 16 }//if-else 17 });//win func. 18 });//ready func. 19///////// 20 21 22var numb = window.location.href.match(/^.*\//); 23 jQuery('#menu-header-menu a[href^="#"]').on('click',function (e) { 24 if(jQuery('.navbar .navbar-toggler').hasClass('collapsed')){ 25 }else { 26 jQuery('.navbar .navbar-toggler').click(); 27 } 28 var pathname = window.location.href; 29 var arr = pathname.split('#'); 30 e.stopPropagation(); 31 e.preventDefault(); 32 if(numb == arr[0]){ 33 var target = this.hash; 34 var $target = jQuery(target); 35 jQuery('html, body').stop().animate({ 36 'scrollTop': $target.offset().top 37 }, 900, 'swing', function () { 38 window.location.hash = target; 39 }); 40 } 41 else{ 42 var bang = (jQuery(this).attr('href')); 43 window.location.replace( numb + bang); 44 } 45 }); 46 47 48 49//Video Button 50 jQuery('.the_video_button').click(function(){ 51 jQuery('.video_section .video_container').addClass('show_video'); 52 var vid = document.getElementById("intro_video"); 53 vid.currentTime = 0; 54 if (vid.requestFullscreen) { 55 vid.requestFullscreen(); 56 } else if (vid.mozRequestFullScreen) { 57 vid.mozRequestFullScreen(); 58 } else if (vid.webkitRequestFullscreen) { 59 vid.webkitRequestFullscreen(); 60 } 61 jQuery('#intro_video').get(0).play(); 62 }); 63 jQuery('.close_vid_btn').click(function(){ 64 jQuery('.video_section .video_container').removeClass('show_video'); 65 }); 66///////// 67 68 jQuery('.img_container_slider').slick({ 69 slidesToShow: 1, 70 slidesToScroll: 1, 71 arrows: false, 72 fade: true, 73 asNavFor: '.sub_text_slider' 74 }); 75 jQuery('.sub_text_slider').slick({ 76 slidesToShow: 1, 77 slidesToScroll: 1, 78 asNavFor: '.img_container_slider', 79 dots: true, 80 arrows: true, 81 focusOnSelect: true, 82 prevArrow: '<div class="the_arrow slick-prev"></div>', 83 nextArrow: '<div class="the_arrow slick-next"></div>', 84 appendArrows: '.service_text .slider-nav', 85 appendDots: '.service_text .slider-nav' 86 }); 87 88jQuery(".isforyou .icons_social .the_icon a").mouseenter(function() { 89 var text = jQuery(this).data('gettext'); 90 jQuery('.isforyou .icon_text_social .text').html(text); 91 jQuery('.isforyou .icon_text_social').removeClass('opacity'); 92}); 93 94 95 96//benefits section animation 97 jQuery('.custom_tab_section ul.nav-tabs-custom li a').click(function() { 98 var show = jQuery(this).data('show'); 99 jQuery('.benefits .benefit_image .center_image').removeClass('benefiticon-1 benefiticon-2 benefiticon-3 benefiticon-4 benefiticon-5 benefiticon-6'); 100 jQuery('.benefits .benefit_image .center_image').addClass(show); 101 }); 102 103 /*jQuery('.benefit_image .center_image .benefits_logo_icon').click(function() { 104 var imglink = jQuery(this).data('imglink'); 105 jQuery('.benefits .benefit_image .center_image').removeClass('benefiticon-1 benefiticon-2 benefiticon-3 benefiticon-4 benefiticon-5 benefiticon-6'); 106 jQuery('.benefits .benefit_image .center_image').addClass(imglink); 107 jQuery('.custom_tab_section ul.nav-tabs-custom li a').each(function(){ 108 if(jQuery(this).data('show') == imglink) { 109 jQuery(this).click(); 110 } 111 }); 112 });*/ 113 114 jQuery(".benefit_image .center_image .benefits_logo_icon").mouseenter(function() { 115 jQuery('.benefit_image .center_image .benefit_overlay').removeClass('d-none'); 116 var imglink = jQuery(this).data('imglink'); 117 jQuery('.benefits .benefit_image .center_image').removeClass('benefiticon-1 benefiticon-2 benefiticon-3 benefiticon-4 benefiticon-5 benefiticon-6'); 118 jQuery('.benefits .benefit_image .center_image').addClass(imglink); 119 jQuery('.custom_tab_section ul.nav-tabs-custom li a').each(function(){ 120 if(jQuery(this).data('show') == imglink) { 121 jQuery(this).click(); 122 } 123 }); 124 setTimeout(function(){ 125 jQuery('.benefit_image .center_image .benefit_overlay').addClass('d-none'); 126 },500); 127 }).mouseleave(function() { 128 129 }); 130 131 132///////// 133 134//Machine section animation 135jQuery('.machine_icons_container .icons_inner .icon .hex').mouseenter(function(){
136 var top = parseInt(jQuery(this).offset().top) - parseInt(jQuery('section.machine').offset().top); 137 var left = parseInt(jQuery(this).offset().left); 138 var top_set = top - 15; 139 var left_set = left - 15; 140 jQuery('.machine_icons_container .icons_inner .icon .hex').removeClass('this_active'); 141 jQuery(this).addClass('this_active'); 142 jQuery('section.machine .hexbg').removeClass('opacity'); 143 jQuery('section.machine .hexbg').animate({'top': top_set, 'left': left_set}, 200); 144 var thename = jQuery(this).data('name'); 145 if(thename == '') { 146 jQuery('.machine_text_container .icon_text_name .text').addClass('opacity'); 147 }else { 148 jQuery('.machine_text_container .icon_text_name .text').html(thename); 149 jQuery('.machine_text_container .icon_text_name .text').removeClass('opacity'); 150 } 151}).mouseleave(function() { 152 153}); 154///////// 155 156 157//Tabs equal height coz footer jumps 158industry_tab_height(); 159jQuery(window).resize(industry_tab_height); 160function industry_tab_height() { 161 var industry_height = 0; 162 jQuery('.industry_solution .tab-content .tab-pane').each(function(){ 163 var the_height = jQuery(this).innerHeight(); 164 if(industry_height < the_height) { 165 industry_height = the_height; 166 } 167 }); 168 jQuery('.industry_solution .tab-content').innerHeight(industry_height); 169} 170/////////////////////////////////// 171 172 173//Footer background adjust 174footer_bg_adjust(); 175jQuery(window).resize(footer_bg_adjust); 176function footer_bg_adjust() { 177 var left_footer = jQuery('footer .form_left_value').offset().left; 178 jQuery('footer .footer_the_bg').width(left_footer); 179} 180/////////////////////////////////// 181 182 183//Solution Tabs Autoplay 184 185industrySolutiontabAutoslide(2); 186function industrySolutiontabAutoslide(start) { 187 var total_count = 0; 188 jQuery('.industry_solution .nav-pills-the-custom li').each(function(){ 189 total_count++; 190 }); 191 var first = start; 192 industryinterval = setInterval(function(){ 193 jQuery('.industry_solution .tab-content-custom .tab-pane').removeClass('active show'); 194 jQuery('.industry_solution .nav-pills-the-custom .click_tab_'+first).click(); 195 first++; 196 if(first > total_count) { 197 first = 1; 198 } 199 },10000); 200} 201 202 203//Benefits Autoplay 204benefitsAutoslide(1); 205function benefitsAutoslide(start) { 206 var total_count_b = 0; 207 jQuery('.benefits .benefit_text .custom_tab_section ul.nav-tabs-custom li').each(function(){ 208 total_count_b++; 209 }); 210 var first = start; 211 benefitsinterval = setInterval(function(){ 212 jQuery('.benefits .benefit_text .custom_tab_section .tab-content .tab-pane').removeClass('active show'); 213 jQuery('.benefits .benefit_text .custom_tab_section ul.nav-tabs-custom .benefits_li_'+first+' a').click(); 214 first++; 215 if(first > total_count_b) { 216 first = 1; 217 } 218 },8000); 219} 220 221 222//Banner section animation 223bannerAutoslide (2); 224function bannerAutoslide(start) { 225 var first = start; 226 bannerinterval = setInterval(function(){ 227 jQuery('.hidden_div .hidden_banner_link .bslide-'+first).click(); 228 first++; 229 if(first == 7) { 230 first = 1; 231 } 232 },3000); 233} 234 235function stopbannerinterval(){ 236 clearInterval(bannerinterval); 237 return false; 238} 239 240 241jQuery('.image_field .image_field_inner .center_image img.icon').mouseenter(function(){ 242 stopbannerinterval(); 243 var theclass = jQuery(this).data('theclass'); 244 var thename = jQuery(this).data('thename'); 245 jQuery('.image_field .image_field_inner .center_image').removeClass('main-1 main-2 main-3 main-4 main-5 main-6'); 246 jQuery('.image_field .image_field_inner .center_image').addClass(theclass); 247 jQuery('.image_field .image_field_inner .center_image .the_name').html(thename); 248 249 jQuery('.banner_link li').removeClass('active'); 250 jQuery('.banner_link li').each(function(){ 251 if(jQuery(this).data('numbericon') == theclass) { 252 jQuery(this).addClass('active'); 253 } 254 }); 255}).mouseleave(function() { 256 var count = jQuery('.banner_link li.active').data('counter'); 257 if(count == 6) { 258 var countStart = 1; 259 }else { 260 var countStart = count + 1; 261 } 262 bannerAutoslide (countStart); 263}); 264 265 266 267 268jQuery('.bottom_para_text .banner_link li').click(function(){ 269 stopbannerinterval(); 270 var thehiddendiv = jQuery(this).data('hiddendiv'); 271 jQuery('.hidden_div .hidden_banner_link li.'+thehiddendiv).click(); 272 var count = jQuery('.banner_link li.active').data('counter'); 273 if(count == 6) { 274 var countStart = 1; 275 }else { 276 var countStart = count + 1; 277 } 278 bannerAutoslide (countStart); 279}); 280 281jQuery('.hidden_div .hidden_banner_link li').click(function(){ 282 jQuery('.banner_link li').removeClass('active'); 283 jQuery('.hidden_div .hidden_banner_link li').removeClass('active'); 284 jQuery(this).addClass('active'); 285 var theicon = jQuery(this).data('numbericon'); 286 var thetitle = jQuery(this).text(); 287 var thetopdiv = jQuery(this).data('topdiv'); 288 jQuery('.bottom_para_text .banner_link li').removeClass('active'); 289 jQuery('.bottom_para_text .banner_link li.'+thetopdiv).addClass('active'); 290 jQuery('.image_field .image_field_inner .center_image').removeClass('main-1 main-2 main-3 main-4 main-5 main-6'); 291 jQuery('.image_field .image_field_inner .center_image').addClass(theicon); 292 jQuery('.image_field .image_field_inner .center_image .the_name').html(thetitle); 293}); 294///////// 295 296 297 298 299//Industry section animation 300/*var industrySlide = setInterval(industryAuto, 3000); 301var slide=1; 302function industryAuto() { 303 jQuery('.images_industry .industryright_image .industry_icon_'+slide).click(); 304 slide++; 305 if(slide == 7) { 306 slide = 1; 307 } 308}*/ 309 310industryAutoslide (2); 311function industryAutoslide(start) { 312 var first = start; 313 industryinterval = setInterval(function(){ 314 jQuery('.images_industry .industryright_image .industry_icon_'+first).click(); 315 first++; 316 if(first == 7) { 317 first = 1; 318 } 319 },3000); 320} 321 322function stopindustryinterval() { 323 clearInterval(industryinterval); 324 return false; 325} 326 327jQuery('.images_industry .industryright_image img').click(function(){ 328 var iconlink = jQuery(this).data('iconimage'); 329 jQuery('.images_industry .enlarged_image img').each(function(){ 330 if(jQuery(this).data('iconenlarge') == iconlink) { 331 jQuery(this).removeClass('hide_image'); 332 }else { 333 jQuery(this).addClass('hide_image'); 334 } 335 }); 336}); 337jQuery('.images_industry .industryright_image img').mouseenter(function(){ 338 stopindustryinterval(); 339 jQuery('.images_industry .industryright_image img').removeClass('active'); 340 jQuery(this).addClass('active'); 341 var iconlink = jQuery(this).data('iconimage'); 342 jQuery('.images_industry .enlarged_image img').each(function(){ 343 if(jQuery(this).data('iconenlarge') == iconlink) { 344 jQuery(this).removeClass('hide_image'); 345 }else { 346 jQuery(this).addClass('hide_image'); 347 } 348 }); 349}).mouseleave(function() { 350 var count = jQuery('.images_industry .industryright_image img.active').data('incounter'); 351 if(count == 6) { 352 var countStart = 1; 353 }else { 354 var countStart = count + 1; 355 } 356 industryAutoslide (countStart); 357}); 358 359 360 361///////// 362 363// Gets the video src from the data-src on each button 364var $videoSrc; 365jQuery('.video-btn').click(function() { 366 $videoSrc = $(this).data( "src" ); 367}); 368// console.log($videoSrc); 369
370// when the modal is opened autoplay it 371jQuery('#myModal').on('shown.bs.modal', function (e) { 372 373// set the video src to autoplay and not to show related video. Youtube related video is like a box of chocolates... you never know what you're gonna get 374jQuery("#video").attr('src',$videoSrc + "?autoplay=1&modestbranding=1&showinfo=0" ); 375}); 376 377 378 379// stop playing the youtube video when I close the modal 380jQuery('#myModal').on('hide.bs.modal', function (e) { 381 // a poor man's stop video 382 jQuery("#video").attr('src',$videoSrc); 383}); 384 385 386});
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.