1$(document).on("scroll", function () { 2 if ($(window).width() > 1401) { 3 if ($(document).scrollTop() > 10) { 4 $("#header").addClass("sticky"); 5 } 6 else { 7 $("#header").removeClass("sticky"); 8 } 9 } 10}); 11$(window).load(function () { 12 $(".full-width-block").each(function () { 13 $(this).parent().addClass('full-width-field'); 14 }); 15 16 if (navigator.userAgent.indexOf('Mac') > 0) { 17 $('body').addClass('mac-os'); 18 } 19 20 if ($(window).width() < 1400) { 21 $("#header").addClass("sticky"); 22 } 23}); 24$(".search-icon .icon-search").on("click", function () { 25 $(".search-icon").addClass("close-search"); 26 //$(".search-icon").addClass("close-search"); 27 $(".search-overlay, .search-content").addClass("active"); 28 setTimeout(function () { 29 $('header #search-input').focus(); 30 }, 500); 31}); 32 33$(".icon-close, .search-overlay").on("click", function (e) { 34 if ($(e.target).attr('id')) { 35 return false; 36 } 37 else { 38 $(".search-overlay, .search-content").removeClass("active"); 39 $(".search-icon").removeClass("close-search"); 40 } 41}); 42 43$('.full-width-promo').each(function () { 44 var count = $(this).find('li').length; 45 if (count <= 1) { 46 $(this).next('.full-width-promo-arrows').hide(); 47 } 48 // setting for slick.js 49 $(this).slick({ 50 infinite: true, 51 slidesToShow: 1, 52 slidesToScroll: 1, 53 arrows: true, adaptiveHeight: false, 54 pauseOnHover: false, 55 appendArrows: $(this).next('.full-width-promo-arrows'), 56 prevArrow: '<button class="slick-prev slick-arrow"></button>', 57 nextArrow: '<button class="slick-next slick-arrow"></button>', 58 dots: true, 59 responsive: [ 60 { 61 breakpoint: 992, 62 settings: { 63 adaptiveHeight: false, 64 arrows: false, 65 dots: true 66 } 67 } 68 ] 69 }).slick('slickPause'); 70 71 // A function that start autoplay when entering the viewport 72 function triggerScroll(targetObj) { 73 let targetFlag = false; 74 let scrollTop = $(window).scrollTop(); 75 let scrollBottom = scrollTop + $(window).height(); 76 let targetTop = targetObj.offset().top; 77 let targetBottom = targetTop + targetObj.height(); 78 // while loading 79 if (scrollBottom > targetTop && scrollTop < targetBottom) { 80 if (!targetFlag) { 81 targetObj.slick('slickPlay'); 82 targetFlag = true; 83 } 84 } else { 85 // targetObj.slick('slickPause'); 86 targetFlag = false; 87 } 88 89 $(window).on('scroll', function () { 90 scrollTop = $(window).scrollTop(); 91 scrollBottom = scrollTop + $(window).height(); 92 targetTop = targetObj.offset().top; 93 targetBottom = targetTop + targetObj.height(); 94 if (scrollBottom > targetTop && scrollTop < targetBottom) { 95 // Start autoplay when entering the viewport 96 if (!targetFlag) { 97 targetObj.slick('slickPlay'); 98 targetFlag = true; 99 } 100 } else { 101 // Stop autoplay when you get out of the viewport 102 if (targetFlag) { 103 targetObj.slick('slickPause'); 104 targetFlag = false; 105 } 106 } 107 }); 108 } 109 // Execute function 110 if ($('.full-width-promo[data-slick]').length) { 111 $('.full-width-promo[data-slick]').each(function () { 112 triggerScroll($(this)); 113 }) 114 } 115 116 if ($(this).find('.bg-image').length > 1) { 117 var $imgHeight = $(this).find('.bg-image').innerHeight(); 118 $(this).attr('style', '--dotspos:' + $imgHeight + 'px') 119 } 120}); 121 122 123$('.full-width-promo li').each(function (a) { 124 if (a >= 2) { 125 $('.slick-dots').show(); 126 } else { 127 $('.slick-dots').hide(); 128 } 129}); 130 131$('.callout-block-slider').slick({ 132 infinite: true, 133 slidesToShow: 1, 134 slidesToScroll: 1, 135 arrow: true, 136 prevArrow: "<button type='button' class='slick-prev slick-arrow wow fadeInRight' data-wow-delay='1s' data-wow-duration='2s'></button>", 137 nextArrow: "<button type='button' class='slick-next slick-arrow wow fadeInLeft' data-wow-delay='1s' data-wow-duration='2s'></button>", 138 dots: true, 139}); 140 141 142$window = $(window); 143$slick_slider = $('.services-slider'); 144settings = { 145 infinite: true, 146 slidesToShow: 6, 147 slidesToScroll: 6, 148 arrow: true, 149 prevArrow: "<button type='button' class='slick-prev slick-arrow wow fadeInRight' data-wow-delay='1s' data-wow-duration='2s'></button>", 150 nextArrow: "<button type='button' class='slick-next slick-arrow wow fadeInLeft' data-wow-delay='1s' data-wow-duration='2s'></button>", 151 dots: false, 152 responsive: [ 153 { 154 breakpoint: 1200, 155 settings: { 156 slidesToShow: 5, 157 slidesToScroll: 5, 158 infinite: true, 159 dots: true 160 } 161 }, 162 { 163 breakpoint: 1024, 164 settings: { 165 slidesToShow: 4, 166 slidesToScroll: 4, 167 infinite: true, 168 dots: true 169 } 170 }, 171 { 172 breakpoint: 600, 173 settings: { 174 slidesToShow: 2, 175 slidesToScroll: 2 176 } 177 }, 178 { 179 breakpoint: 480, 180 settings: { 181 slidesToShow: 1, 182 slidesToScroll: 1 183 } 184 } 185 ] 186}; 187 188if ($window.width() > 767) { 189 $slick_slider.slick(settings); 190} 191 192$window.on('resize', function () { 193 if ($window.width() < 767) { 194 if ($slick_slider.hasClass('slick-initialized')) 195 $slick_slider.slick('unslick'); 196 return 197 } 198 if (!$slick_slider.hasClass('slick-initialized')) 199 return $slick_slider.slick(settings); 200 201 if ($(window).width() < 1400) { 202 $("#header").addClass("sticky"); 203 } 204}); 205 206 207$('.services-slider li').each(function (c) { 208 if (c >= 7) { 209 $('.services-slider .slick-dots').show(); 210 } else { 211 $('.services-slider .slick-dots').hide(); 212 } 213}); 214 215$('.employee-slider').slick({ 216 infinite: false, 217 slidesToShow: 4, 218 slidesToScroll: 1, 219 arrow: true, 220 dots: true, 221 responsive: [ 222 { 223 breakpoint: 1024, 224 settings: { 225 slidesToShow: 3, 226 slidesToScroll: 1, 227 infinite: false, 228 dots: true 229 } 230 }, 231 { 232 breakpoint: 600, 233 settings: { 234 slidesToShow: 2, 235 slidesToScroll: 1 236 } 237 }, 238 { 239 breakpoint: 480, 240 settings: { 241 slidesToShow: 1, 242 slidesToScroll: 1 243 } 244 } 245 ] 246}); 247 248if ($('.hero-landingpage-item').length > 1) { 249 $('.hero-landingpage-cover').slick({ 250 infinite: true, 251 slidesToShow: 1, 252 slidesToScroll: 1, 253 dots: true, 254 }); 255} 256 257if ($('.promo-md-slider').length > 0) { 258 $('.promo-md-slider').slick({ 259 infinite: true, 260 slidesToShow: 1, 261 slidesToScroll: 1, 262 dots: true, 263 adaptiveHeight: true, 264 arrows: true 265 }); 266} 267 268$('.employee-slider li').each(function (b) { 269 if (b >= 5) { 270 $('.employee-slider .slick-dots').show(); 271 } else { 272 $('.employee-slider .slick-dots').hide(); 273 } 274}); 275 276 277// video play 278 279var vID = 1; 280$('.video-content video').each(function () { 281 $(this).attr('id', 'html_video_' + vID); 282 vID++ 283}); 284 285var aID = 1; 286$('.video-content audio').each(function () { 287 $(this).attr('id', 'audio_wav' + aID); 288 aID++ 289}); 290 291$('.video-thumbnail').on('click', function () { 292 $(this).fadeOut(); 293 294 if ($('.video-content').hasClass('vimeo_video')) { 295 var vimeoLink = $(this).next('iframe').attr('data-src'); 296 $(this).next('iframe').attr('src', vimeoLink + '?autoplay=1') 297 } 298 if ($('.video-content').hasClass('youtube_video')) { 299 var ytLink = $(this).next('iframe').attr('data-src'); 300 $(this).next('iframe').attr('src', ytLink + '?enablejsapi=1&autoplay=1&mute=0&controls=1&loop=0&showinfo=0&rel=0&modestbranding=1') 301 } 302 if ($('.video-content').hasClass('html_video')) { 303 var vidID = $(this).next('video').attr('id'), 304 vidClip = document.querySelector('#' + vidID); 305 vidClip.play(); 306 } 307 if ($('.video-content').hasClass('audio_wav')) { 308 var audID = $(this).next('video').attr('id'), 309 audioClip = document.querySelector('#' + audID); 310 audioClip.play(); 311 } 312}); 313 314 315var accordions = document.getElementsByClassName("faq-accordion"); 316for (var i = 0; i < accordions.length; i++) { 317 accordions[i].onclick = function () { 318 this.classList.toggle('is-open'); 319 320 var content = this.nextElementSibling; 321 if (content.style.maxHeight) { 322 // accordion is currently open, so close it 323 content.style.maxHeight = null; 324 } else { 325 // accordion is currently closed, so open it 326 content.style.maxHeight = content.scrollHeight + "px"; 327 } 328 } 329} 330 331/// dropdown js 332var options = []; 333$('.filter-dropdown .filter-select-option').on('click', function (event) { 334 var $target = $(event.currentTarget), 335 val = $target.attr('data-value'), 336 $inp = $target.find('input'), 337 idx; 338 if ((idx = options.indexOf(val)) > -1) { 339 options.splice(idx, 1); 340 setTimeout(function () { $inp.prop('checked', false) }, 0); 341 } else { 342 options.push(val); 343 setTimeout(function () { $inp.prop('checked', true) }, 0); 344 } 345 $(event.target).blur(); 346 console.log(options); 347 return false;
348}); 349 350 351$('.main-menu>.menu-item-has-children>a').on('click touch', function (e) { 352 $('.main-menu>.menu-item-has-children>.mega-menu>.mega-menu-details>.mega-menu-title').next('').slideToggle(300); 353 $(this).toggleClass('active-submenu'); 354 $(this).closest('li').siblings().find('ul').hide(); 355 $(this).closest('li').siblings().find('a').removeClass('active-submenu'); 356}); 357$('.main-menu>.menu-item-has-children .sub-menu>.menu-item-has-children>a').on('click touch', function (e) { 358 $('.main-menu>.menu-item-has-children .sub-menu>.menu-item-has-children>a').next('').slideToggle(300); 359 $(this).toggleClass('active-submenu'); 360 $(this).closest('li').siblings().find('ul').hide(); 361 $(this).closest('li').siblings().find('a').removeClass('active-submenu'); 362}); 363 364$('.top-mobile-menu .menu-item-has-children>a').on('click touch', function (e) { 365 e.preventDefault(); 366 $('.top-mobile-menu .menu-item-has-children>a').next('').slideToggle(300); 367 $(this).toggleClass('active-submenu'); 368 $(this).closest('li').siblings().find('ul').hide(); 369 $(this).closest('li').siblings().find('a').removeClass('active-submenu'); 370}); 371 372$(document).ready(function () { 373 $('.vertical-tap-content').each(function (i, v) { 374 $(v).find('#tabs li:first').addClass('active') 375 $(v).find('.tab-content .tab-pane:first').addClass('active in'); // show for desktop 376 // $(v).find('.tab-content .tab-pane .collapse:first').addClass('in'); // show for mobile 377 }); 378}); 379 380 381$(document).ready(function () { 382 $("select.region-select").change(function () { 383 $(this).find("option:selected").each(function () { 384 var optionValue = $(this).attr("value"); 385 if (optionValue) { 386 $(".location-content").not("." + optionValue).hide(); 387 $("." + optionValue).show(); 388 $(".full-world-map-content").hide(); 389 } else { 390 $(".location-content").hide(); 391 $(".full-world-map-content").show(); 392 } 393 }); 394 }).change(); 395 $('.back-world button').on('click', function () { 396 $(".full-world-map-content").show(); 397 $(".location-content").hide(); 398 $('select.region-select option').prop('selected', function () { 399 return this.defaultSelected; 400 }); 401 }); 402 403 $(".location-mobile-dropdown button").on('click', function () { 404 $(".faq-content").slideToggle('fast'); 405 }); 406 setTimeout(function () { $('.section-contact-form .textbox-wrap .nf-field-element').prepend('<span class="submit-bg-h"></span>'); }, 500); 407 // on section scroll Start 408 409 var $ribbonSide = $('.section-connect-mc-dean'); 410 var $window = $(window); 411 412 function check_if_in_view() { 413 var window_height = $window.height(); 414 var window_top_position = $window.scrollTop(); 415 var window_bottom_position = (window_top_position + window_height); 416 417 $.each($ribbonSide, function () { 418 var $element = $(this); 419 var element_height = $element.outerHeight(); 420 var element_top_position = $element.offset().top + 60; 421 var element_bottom_position = (element_top_position + element_height); 422 if ((element_bottom_position >= window_top_position) && 423 (element_top_position <= window_bottom_position)) { 424 $element.addClass('show-bottom-icon'); 425 } else { 426 } 427 }); 428 } 429 $window.on('scroll resize', check_if_in_view); 430 $window.trigger('scroll'); 431 432 // on section scroll End 433 // counter js start 434 $('.counter').counterUp({ 435 delay: 10, 436 time: 1000 437 }); 438 // counter js end 439 $(document).ready(function () { 440 $(".addeventatc").css("display", "inline-block"); 441 }); 442 if ($('.related-details').length) { 443 $('.related-details').matchHeight({ 444 byRow: true, 445 property: 'min-height', 446 target: null, 447 remove: false 448 }); 449 } 450 /* Menu */ 451 $('.ubermenu-nav .ubermenu-has-submenu-drop > .ubermenu-target').after('<em class="caret-arrow">'); 452 $('.caret-arrow').on('click', function () { 453 if ($(this).parent('li').hasClass('ubermenu-active')) { 454 $(this).parent('li').removeClass('ubermenu-active'); 455 //$(this).removeClass('is-active'); 456 } else { 457 //$(this).addClass('is-active'); 458 $(this).parent('li').addClass('ubermenu-active'); 459 } 460 }); 461 462 $('.ubermenu-main .ubermenu-target[href="#hiddenmenu"]').parent().parent().prev().remove(); 463 $('.ubermenu-main .ubermenu-target[href="#hiddenmenu"]').parent().parent().remove(); 464 465 if ($(window).width() < 767) { 466 setTimeout(function () { 467 $('.ubermenu-target[href="#hiddenmenu"]').parent('li').parent('.ubermenu-item'); 468 $('header .ubermenu-main ul.ubermenu-nav > li.ubermenu-item-has-children ul .caret-arrow').trigger('click') 469 }, 200) 470 } 471 472 // close popup 473 $('.covid-popup .cp_footer .green-btn').on('click', function (e) { 474 e.preventDefault(); 475 $('.covid-popup').fadeOut(function () { 476 $('.covid-popup').remove() 477 }); 478 }); 479 // remove dots 480 $('ul.slick-dots').each(function () { 481 if ($(this).find('li').length <= 1) { 482 $(this).remove() 483 } 484 }) 485 486 // menu 487 $('.navbar-toggle.collapsed').click(function () { 488 $('.search-icon.close-search .icon-close').trigger('click'); 489 }); 490 $('.search-icon').click(function () { 491 $('.navbar-toggle').not('.collapsed').trigger('click'); 492 493 $('#header .search-overlay').attr('style', '--searchtop:' + $('#header').innerHeight() + 'px'); 494 }); 495 496 $('footer .ubermenu').attr('class', ''); 497 498 // horizontal tabbed 499 if ($('.horizontal_tabbed').length) { 500 501 $('.horizontal_tabbed').each(function () { 502 var $that = $(this), 503 $ht_contents_icons = $that.find('.ht_contents-icons'), 504 $ht_contents = $that.find('.ht_contents'), 505 $ht_tabs = $that.find('.ht_tabs'); 506 // horizontal contents icons 507 $ht_contents_icons.slick({ 508 slidesToShow: 1, 509 slidesToScroll: 1, 510 swipeToSlide: true, 511 dots: false, 512 arrows: true, 513 mobileFirst: true, 514 responsive: [{ 515 breakpoint: 1024, 516 settings: { 517 slidesToShow: 6, 518 } 519 }, 520 { 521 breakpoint: 575, 522 settings: { 523 slidesToShow: 3, 524 } 525 }, 526 ] 527 }); 528 529 $ht_tabs.find('.ht_tabs-list').first().stop().addClass('current'); 530 531 if ($(window).width() > 768) { 532 $ht_contents.find('.ht_contents-body').first().stop().fadeIn(); 533 } else { 534 $ht_contents.find('.ht_contents-body').first().stop().addClass('active'); 535 } 536 }); 537 538 $('.ht_tabs-list').click(function () { 539 $(this).siblings().stop().removeClass('current') 540 $(this).stop().addClass('current') 541 $(this).parent().next('.ht_contents').find('.ht_contents-body').stop().hide(); 542 $(this).parent().next('.ht_contents').find('.ht_contents-body').eq($(this).index()).stop().fadeIn(); 543 $('.ht_contents-icons').slick('setPosition'); 544 }) 545 546 $('.ht_contents-icons').slick('setPosition'); 547 548 $('.horizontal_tabbed .ht_contents-tab').click(function () { 549 $(this).parent().stop().toggleClass('active'); 550 $('.ht_contents-icons').slick('setPosition'); 551 }); 552 } 553 554 // Career page Taleo search box 555 $('.oracletaleocwsv2-top-content').click(function (d) { 556 $(this).parents('.form-group-wrap').siblings().find('.oracletaleocwsv2-popup-content').stop().slideUp(); 557 $(this).parents('.form-group-wrap').siblings().find('.oracletaleocwsv2-popup').removeClass('active'); 558 $(this).parents('.oracletaleocwsv2-popup').toggleClass('active'); 559 $(this).parents('.oracletaleocwsv2-popup').find('.oracletaleocwsv2-popup-content').stop().slideToggle(); 560 d.stopPropagation(); 561 }); 562 var cal_tooltip_tpl = $('.oracletaleocwsv2-form-group-full'); 563 $(document).on('click touchstart', 'body , html', function (e) { 564 if ((cal_tooltip_tpl[0] != e.target) && (!cal_tooltip_tpl.has(e.target).length)) { 565 $('.oracletaleocwsv2-popup-content').stop().slideUp(); 566 $('.oracletaleocwsv2-popup').removeClass('active'); 567 } 568 }); 569 570 $(document).keydown(function (d) { 571 if (d.keyCode == 27) { 572 if ($('.oracletaleocwsv2-popup').hasClass('active')) { 573 $('.oracletaleocwsv2-popup-content').stop().slideUp(); 574 $('.oracletaleocwsv2-popup').removeClass('active'); 575 } 576 } 577 }); 578 function checkall(popupElem) { 579 //get checkboxes 580 var checkboxGroup = popupElem.find('.oracletaleocwsv2-multiselect-content input[type="checkbox"]'); 581 //check them all 582 checkboxGroup.prop('checked', true); 583 } 584 585 function uncheckall(popupElem) { 586 //get checkboxes 587 var checkboxGroup = popupElem.find('.oracletaleocwsv2-multiselect-content input[type="checkbox"]'); 588 //uncheck them all 589 checkboxGroup.prop('checked', false); 590 } 591 592 $('.checkalltoggle').click(function (e) { 593 e.preventDefault(); 594 //check status of checkgroup 595 var checkboxGroup = $(this).closest('.oracletaleocwsv2-popup').find('.oracletaleocwsv2-multiselect-content input[type="checkbox"]'); 596 var checkboxGroupChecked = $(this).closest('.oracletaleocwsv2-popup').find('.oracletaleocwsv2-multiselect-content input[type="checkbox"]:checked'); 597 598 //get current status and change accordingly 599 if (checkboxGroupChecked.length == checkboxGroup.length) { 600 //all checked, so uncheck all 601 uncheckall($(this).closest('.oracletaleocwsv2-popup')); 602 //change status to unchecked to reflect new state 603 $(this).removeClass('allchecked'); 604 } else { 605 //whether none checked or some checked, check all 606 checkall($(this).closest('.oracletaleocwsv2-popup')); 607 $(this).addClass('allchecked'); 608 } 609 }); 610 611 $('.oracletaleocwsv2-multiselect-content input[type="checkbox"] , .checkalltoggle').on('click', function (e) { 612 613 //revert data if necessary 614 if ($(this).closest('.oracletaleocwsv2-popup').hasClass('oracletaleocwsv2-multiselect-popup')) { 615 616 //change output to reflect new choices 617 var output = ''; 618 var checkboxGroup = $(this).closest('.oracletaleocwsv2-popup').find('.oracletaleocwsv2-multiselect-content input[type="checkbox"]'); 619 var count = 0; 620 621 checkboxGroup.each(function () { 622 if ($(this).is(':checked')) { 623 output += $(this).parent().text().trim(); 624 output += ', '; 625 count++; 626 } 627 }); 628 629 //if count is 0, clear values; else, display values in input box 630 if (count == 0) { 631 $(this).closest('.form-group').find('.multiSelect_placeholder').val(''); 632 } else { 633 //trim last comma 634 output = output.substr(0, output.length - 2); 635 //put output into input box 636 $(this).closest('.form-group').find('.multiSelect_placeholder').val(output); 637 } 638 } 639 640 }); 641 $('.oracletaleocwsv2-multiselect-content input[type="checkbox"]').on('click', function (e) { 642 643 var checkboxGroup = $(this).parents('.oracletaleocwsv2-popup').find('.oracletaleocwsv2-multiselect-content input[type="checkbox"]'); 644 var checkboxGroupChecked = $(this).parents('.oracletaleocwsv2-popup').find('.oracletaleocwsv2-multiselect-content input[type="checkbox"]:checked'); 645 646 if (checkboxGroupChecked.length == checkboxGroup.length) { 647 $(this).parents('.oracletaleocwsv2-popup').find('.checkalltoggle').addClass('allchecked'); 648 } else { 649 $(this).parents('.oracletaleocwsv2-popup').find('.checkalltoggle').removeClass('allchecked'); 650 } 651 }); 652}); 653 654$(window).load(function () { 655 $('footer .ubermenu').attr('class', ''); 656 657 // horizontal tabbed 658 $(".ht_tabs").mCustomScrollbar({ 659 axis: "x" // horizontal scrollbar 660 }); 661 662 // Custom Checkbox ID generate 663 $('.career-form .checkbox').each(function (i) { 664 var aInput = $(this).find('input'); 665 aInput.attr('id', 'chk' + i) 666 aInput.next('label').attr('for', 'chk' + i); 667 }); 668 669}) 670 671 672
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.