1var mapStyles = [ 2 { 3 "featureType": "water", 4 "elementType": "geometry", 5 "stylers": [ 6 { 7 "color": "#e9e9e9" 8 }, 9 { 10 "lightness": 17 11 } 12 ] 13 }, 14 { 15 "featureType": "landscape", 16 "elementType": "geometry", 17 "stylers": [ 18 { 19 "color": "#f5f5f5" 20 }, 21 { 22 "lightness": 20 23 } 24 ] 25 }, 26 { 27 "featureType": "road.highway", 28 "elementType": "geometry.fill", 29 "stylers": [ 30 { 31 "color": "#ffffff" 32 }, 33 { 34 "lightness": 17 35 } 36 ] 37 }, 38 { 39 "featureType": "road.highway", 40 "elementType": "geometry.stroke", 41 "stylers": [ 42 { 43 "color": "#ffffff" 44 }, 45 { 46 "lightness": 29 47 }, 48 { 49 "weight": 0.2 50 } 51 ] 52 }, 53 { 54 "featureType": "road.arterial", 55 "elementType": "geometry", 56 "stylers": [ 57 { 58 "color": "#ffffff" 59 }, 60 { 61 "lightness": 18 62 } 63 ] 64 }, 65 { 66 "featureType": "road.local", 67 "elementType": "geometry", 68 "stylers": [ 69 { 70 "color": "#ffffff" 71 }, 72 { 73 "lightness": 16 74 } 75 ] 76 }, 77 { 78 "featureType": "poi", 79 "elementType": "geometry", 80 "stylers": [ 81 { 82 "color": "#f5f5f5" 83 }, 84 { 85 "lightness": 21 86 } 87 ] 88 }, 89 { 90 "featureType": "poi.park", 91 "elementType": "geometry", 92 "stylers": [ 93 { 94 "color": "#dedede" 95 }, 96 { 97 "lightness": 21 98 } 99 ] 100 }, 101 { 102 "elementType": "labels.text.stroke", 103 "stylers": [ 104 { 105 "visibility": "on" 106 }, 107 { 108 "color": "#ffffff" 109 }, 110 { 111 "lightness": 16 112 } 113 ] 114 }, 115 { 116 "elementType": "labels.text.fill", 117 "stylers": [ 118 { 119 "saturation": 36 120 }, 121 { 122 "color": "#333333" 123 }, 124 { 125 "lightness": 40 126 } 127 ] 128 }, 129 { 130 "elementType": "labels.icon", 131 "stylers": [ 132 { 133 "visibility": "off" 134 } 135 ] 136 }, 137 { 138 "featureType": "transit", 139 "elementType": "geometry", 140 "stylers": [ 141 { 142 "color": "#f2f2f2" 143 }, 144 { 145 "lightness": 19 146 } 147 ] 148 }, 149 { 150 "featureType": "administrative", 151 "elementType": "geometry.fill", 152 "stylers": [ 153 { 154 "color": "#fefefe" 155 }, 156 { 157 "lightness": 20 158 } 159 ] 160 }, 161 { 162 "featureType": "administrative", 163 "elementType": "geometry.stroke", 164 "stylers": [ 165 { 166 "color": "#fefefe" 167 }, 168 { 169 "lightness": 17 170 }, 171 { 172 "weight": 1.2 173 } 174 ] 175 } 176]; 177 178 179$(document).ready(function () { 180 $('.company-history').find('.btn-load-more').on('click', function () { 181 var old_height = parseInt($('.spec-text-content-wrapper').css('height')); 182 $('.spec-text-content-wrapper').css('height', 'auto'); 183 var height = $('.spec-text-content-wrapper').outerHeight() + 17; 184 $('.spec-text-content-wrapper').css('height', old_height); 185 $('.spec-text-content-wrapper').animate({'height': height}, function () { 186 $('.company-history').find('.btn-load-more').hide(); 187 188 }); 189 return false; 190 }); 191 192 193 /* //////////////////////////////////////////////////////////// GENERAL //////////////////////////////////////////////////////////// */ 194 195 styledFormElements(); 196 styledScrollBar(); 197 closePopup(); 198 showTopPhones(); 199 headerCitySelect(); 200 showHeaderCountry(); 201 showMobileMenu(); 202 showFooterMobileSection(); 203 showConsultationFormPopup(); 204 initPromoSlider(); 205 initPhotoSlider(); 206 initOfferSlider(); 207 configureSpecText(); 208 initStickLeftSidebar(); 209 switchTabs(); 210 initAnchorLinks(); 211 initScrollOnTop(); 212 213 214 /* //////////////////////////////////////////////////////////// INDEX //////////////////////////////////////////////////////////// */ 215 216 initNewsSlide(); 217 configurePopularProgrammList(); 218 219 220 /* //////////////////////////////////////////////////////////// CATALOG //////////////////////////////////////////////////////////// */ 221 222 showDopParamsCatalogFilter(); 223 configureHeightCatalogListItems(); 224 225 226 /* //////////////////////////////////////////////////////////// VIDEO //////
226////////////////////////////////////////////////////// */ 227 228 configureHeightVideoListItems(); 229 230 231 /* //////////////////////////////////////////////////////////// TEAM //////////////////////////////////////////////////////////// */ 232 233 configureHeightTeamListItems(); 234 configureHeightCompanyTeamListItems(); 235 236 237 /* //////////////////////////////////////////////////////////// CAREER //////////////////////////////////////////////////////////// */ 238 239 showCareerItemDetailInfo(); 240 showResumeFormPopup(); 241 242 243 /* //////////////////////////////////////////////////////////// COUNTRY //////////////////////////////////////////////////////////// */ 244 configureHeightShollProgramListItems(); 245 246 247}); 248 249 250/* //////////////////////////////////////////////////////////// GENERAL //////////////////////////////////////////////////////////// */ 251 252// FORM ELEMENTS 253function styledFormElements () { 254 /* init placeholder */ 255 $('input[placeholder], textarea[placeholder]').placeholder(); 256 257 /* init phone mask */ 258 if ($(".phone-field").length) 259 //$(".phone-field").inputmask({"mask": "+7 (999) 999-99-99", "clearIncomplete": false}); 260 { 261 $(".phone-field").inputmask({ 262 mask: "99999999999", 263 placeholder: "", 264 clearIncomplete: false, 265 showMaskOnHover: false, 266 showMaskOnFocus: false 267 }); 268 } 269 270 /* styled select */ 271 if ($('.styled-select').length) { 272 $('.styled-select').selecter(); 273 } 274 275 /* styled select scroll */ 276 if ($('.selecter-options').length) { 277 $('.selecter-options').mCustomScrollbar({ 278 mouseWheel: {deltaFactor: 50} 279 }); 280 } 281 282 /* load file */ 283 if ($('.add-file-input').length) { 284 $('.add-file-input').on('change', function () { 285 realVal = $(this).val(); 286 lastIndex = realVal.lastIndexOf('\\') + 1; 287 if (lastIndex !== -1) { 288 realVal = realVal.substr(lastIndex); 289 $(this).parents('.add-file').find('.add-file-name').html(realVal); 290 } 291 }); 292 293 $('.add-file-input-maska').on('mouseenter mouseleave', function () { 294 $(this).parents('.add-file').find('.add-file-btn').toggleClass('is-hovered'); 295 }); 296 } 297 298 /* Remove error on focus field */ 299 $(document).on("focus", ".error-field", function () { 300 $(this).removeClass("error-field"); 301 }); 302} 303 304 305// STYLED SCROLL BAR 306function styledScrollBar () { 307 $(".styled-scroll-bar").mCustomScrollbar({ 308 mouseWheel: {deltaFactor: 50} 309 }); 310} 311 312 313// ALIGN HEIGHT ELEMS IN LINE 314function alignHeight (parent, countInLine) { 315 var max_height = 0; 316 317 var equal_elem = $(".js-equal-height"); 318 319 var equal_elems = parent.find(equal_elem).toArray(); 320 var line_count = Math.ceil(equal_elems.length / countInLine); 321 322 parent.find(equal_elem).css("height", "auto"); 323 324 for (var i = 0; i < line_count; i++) { 325 for (var j = 0; j < countInLine; j++) { 326 var elem = equal_elems[countInLine * i + j]; 327 328 if ($(elem).innerHeight() > max_height) { 329 max_height = $(elem).innerHeight(); 330 } 331 } 332 333 for (var z = 0; z < countInLine; z++) { 334 var result_elem = equal_elems[countInLine * i + z]; 335 $(result_elem).css("height", max_height); 336 } 337 338 max_height = 0; 339 } 340} 341 342 343// SHOW POPUP 344function showPopup (popupItem) { 345 var min_vertical_indent = 10, 346 popup_item_height = $(popupItem).innerHeight(); 347 348 var result_top_pos = $(window).scrollTop() + ($(window).height() - popup_item_height) / 2; 349 350 if (popup_item_height + min_vertical_indent * 2 > $(window).height()) { 351 result_top_pos = $(window).scrollTop() + min_vertical_indent; 352 } 353 354 $("#global-overlay").addClass("is-show"); 355 $(popupItem).css("top", result_top_pos).addClass("is-show"); 356} 357 358 359// CLOSE POPUP 360function closePopup () { 361 $("body").on("click", ".js-close-popup", function () { 362 hidePopup(); 363 }); 364 365 $("#global-overlay").on("click", function () { 366 if ($(".popup.is-show").length) { 367 hidePopup(); 368 } 369 }); 370} 371 372 373// HIDE POPUP 374function hidePopup () { 375 $("#global-overlay").removeClass("is-show"); 376 $(".popup.is-show").removeClass("is-show"); 377} 378 379 380// HEADER PHONES 381function showTopPhones () { 382 $(".js-show-choice-sity-list").on("click", function () { 383 if ($(".choice-sity").is(".is-show")) { 384 $(".choice-sity").removeClass("is-show"); 385 } else { 386 $(".choice-sity").addClass("is-show"); 387 } 388 }); 389 390 $(".choice-sity").on("mouseleave", function () { 391 $(".choice-sity").removeClass("is-show"); 392 }); 393} 394 395// HEADER CITY SELECT 396function headerCitySelect () { 397 var cur_city_name = $(".choice-current-sity-val").html(); 398 $(".choice-sity-list-item[data-city='" + cur_city_name + "']").hide(); 399 400 $(".choice-sity__phone").on("click", function () { 401 if ($(window).width() < 681) { 402 location.href = "tel:" + $(this).text(); 403 return false;
404 } 405 }); 406 407 $(".choice-sity-list-item").on("click", function () { 408 var $this = $(this); 409 var $parent = $(".choice-current-sity"); 410 var city = $this.attr("data-city"); 411 412 if ($(window).width() < 681) { 413 $(".choice-sity__phone", $this).click(); 414 return false; 415 } 416 417 $('.choice-current-sity-val', $parent).html(city); 418 $('> .choice-sity__phone', $parent).html($(".choice-sity__phone", $this).html()); 419 $('.choice-sity').removeClass('is-show'); 420 421 $(".choice-sity-list-item").show().filter($this).hide(); 422 423 $.post('/include/ajax-set-office.php', { 424 action: 'choice_office', 425 id: $this.attr('data-city_id'), 426 local: location.href 427 }, 428 function (data) { 429 if ( data.manager != null && typeof data.manager != 'undefined' ) { 430 if ( $('#img__manager_city').length ) { 431 $('#img__manager_city').attr('src', data.manager.img_src); 432 } 433 if ( $('#div__manager_name').length ) { 434 $('#div__manager_name').html(data.manager.name); 435 } 436 if ( $('#div__manager_preview_text').length ) { 437 $('#div__manager_preview_text').html(data.manager.preview_text); 438 } 439 if ( $('#div__manager_phone').length ) { 440 $('#div__manager_phone').html(data.manager.phone); 441 } 442 if ( $('#div__manager_email').length ) { 443 $('#div__manager_email').html(data.manager.email); 444 } 445 } 446 }, 'json' 447 ); 448 449 return false; 450 451 452 //console.log(city); 453 /*var fdata = new FormData(); 454 455 fdata.append('city', city); 456 457 $.ajax({ 458 url : '/ajax/select-city', 459 type: "POST", 460 data : fdata, 461 mimeType:"multipart/form-data", 462 contentType: false, 463 cache: false, 464 dataType: 'json', 465 processData:false, 466 success:function(data) 467 { 468 alert(data); 469 }, 470 error: function(data) 471 { 472 alert(data); 473 } 474 });*/ 475 }); 476} 477 478 479// HEADER COUNTRY 480function showHeaderCountry () { 481 $(".js-show-country-programm").on("click", function () { 482 if ($("#header-sity-programm").is(".is-show")) { 483 $("#header-sity-programm, .js-header-country-programm-overlay").removeClass("is-show"); 484 $(this).parents(".top-menu-item").removeClass("is-active"); 485 } 486 else { 487 $("#header-sity-programm, .js-header-country-programm-overlay").addClass("is-show"); 488 $(this).parents(".top-menu-item").addClass("is-active"); 489 } 490 }); 491 492 $(".js-header-country-programm-overlay").on("click", function () { 493 if ($("#header-sity-programm").is(".is-show")) { 494 $("#header-sity-programm, .js-header-country-programm-overlay").removeClass("is-show"); 495 $(".js-show-country-programm").parents(".top-menu-item").removeClass("is-active"); 496 } 497 }); 498} 499 500 501// SHOW MOBILE MENU 502function showMobileMenu () { 503 $(".js-show-mobile-menu").on("click", function () { 504 $(this).toggleClass("is-active"); 505 $("#global-overlay, #mobile-top-menu").toggleClass("is-show"); 506 }); 507 508 $("#global-overlay").on("click", function () { 509 if ($("#mobile-top-menu").is(".is-show")) { 510 $(".js-show-mobile-menu").click(); 511 } 512 }); 513 514 515 $(".js-show-mobile-podmenu").on("click", function () { 516 var mobile_menu_item = $(this).parents(".mobile-top-menu-list-item"); 517 518 if (mobile_menu_item.is(".is-active")) { 519 mobile_menu_item.removeClass("is-active"); 520 mobile_menu_item.siblings(".mobile-top-menu-list-item").removeClass("is-hidden"); 521 } 522 else { 523 mobile_menu_item.addClass("is-active"); 524 mobile_menu_item.siblings(".mobile-top-menu-list-item").addClass("is-hidden"); 525 } 526 }); 527} 528 529 530// SHOW FOOTER MOBILE SECTION 531function showFooterMobileSection () { 532 $(".js-show-mobile-footer-section").on("click", function () { 533 var mobile_footer_section = $(this).parents(".footer-section-item"); 534 535 if (mobile_footer_section.is(".is-active")) { 536 mobile_footer_section.parents(".footer").find(".footer-section-item").removeClass("is-hidden"); 537 mobile_footer_section.removeClass("is-active"); 538 } 539 else { 540 mobile_footer_section.parents(".footer").find(".footer-section-item").addClass("is-hidden"); 541 mobile_footer_section.addClass("is-active"); 542 } 543 }); 544} 545 546 547// SHOW CONSULTATION FORM 548function showConsultationFormPopup () { 549 $(".js-show-consultation-popup").on("click", function () { 550 showPopup("#consultation-form-popup"); 551 return false;
552 }); 553 554 /*$(".js-show-consultation-popup").fancybox({ 555 'overlayShow': true, // знаÑÐµÐ½Ð¸Ñ Ð¿Ð°ÑамеÑÑов можно поÑмоÑÑеÑÑ Ð½Ð° ÑайÑе ÑазÑабоÑÑика 556 'padding': 0, 557 'margin' : 0, 558 'scrolling' : 'no', 559 'titleShow': false, 560 'type': 'ajax', 561 'href': '/include/ajax-popup-consultation.php' 562 });*/ 563} 564 565 566// PROMO SLIDER 567function initPromoSlider () { 568 if ($(".js-promo-slider").length === 0) { 569 return false; 570 } 571 572 $(".js-promo-slider").slick({ 573 fade: true, 574 slidesToShow: 1, 575 slidesToScroll: 1, 576 adaptiveHeight: true, 577 arrows: false, 578 dots: true, 579 autoplay: true, 580 autoplaySpeed: 5000, 581 draggable: false 582 }); 583 584 $(".js-promo-slider").on('setPosition', function (event, slick) { 585 positioningPromoSliderPaging(); 586 }); 587 588 function positioningPromoSliderPaging () { 589 var promo_paging = $(".js-promo-slider").find(".slick-dots"); 590 promo_paging.css("left", $(".js-promo-slider").find(".promo-slider-slide-item__text").offset().left); 591 } 592} 593 594 595// PHOTO SLIDER 596function initPhotoSlider () { 597 if ($(".js-photo-slider").length === 0) { 598 return false; 599 } 600 601 $(".js-photo-slider").slick({ 602 slidesToShow: 1, 603 slidesToScroll: 1, 604 adaptiveHeight: true, 605 arrows: false, 606 dots: true 607 }); 608} 609 610 611// OFFERS SLIDER 612function initOfferSlider () { 613 if ($(".js-spec-offer-slider").length === 0) { 614 return false; 615 } 616 617 $(".js-spec-offer-slider").slick({ 618 fade: true, 619 draggable: false, 620 slidesToShow: 1, 621 slidesToScroll: 1, 622 adaptiveHeight: true, 623 arrows: false, 624 dots: true, 625 autoplay: true, 626 autoplaySpeed: 5000, 627 responsive: [ 628 { 629 breakpoint: 1025, 630 settings: { 631 fade: false, 632 autoplay: false 633 }, 634 } 635 ] 636 }); 637} 638 639 640// CONFIGURE SPEC TEXT 641function configureSpecText () { 642 if ($(".js-spec-text").length === 0) { 643 return false; 644 } 645 646 var max_height = 0, content_height = 0; 647 648 $(window).on("load resize", function () { 649 $(".js-spec-text").each(function () { 650 configureSpecTextHeight($(this)); 651 }); 652 }); 653 654 $(".js-show-all-spec-text").on("click", function () { 655 content_height = $(this).parents(".js-spec-text").find(".spec-text-content").innerHeight(); 656 max_height = $(this).parents(".js-spec-text").attr("data-max-heigh"); 657 658 $(this).parents(".js-spec-text").addClass("is-full"); 659 $(this).parents(".js-spec-text").find(".spec-text-content-wrapper").css("height", content_height); 660 }); 661 662 $(".js-hide-all-spec-text").on("click", function () { 663 max_height = $(this).parents(".js-spec-text").attr("data-max-heigh"); 664 665 $(this).parents(".js-spec-text").removeClass("is-full"); 666 $(this).parents(".js-spec-text").find(".spec-text-content-wrapper").css("height", max_height); 667 }); 668 669 function configureSpecTextHeight (specTextBlock) { 670 var spec_text_block = specTextBlock, 671 spec_text_wrapper = spec_text_block.find(".spec-text-content-wrapper"); 672 max_height = specTextBlock.attr("data-max-heigh"); 673 674 spec_text_block.removeClass("is-full"); 675 spec_text_wrapper.css("height", max_height); 676 677 content_height = specTextBlock.find(".spec-text-content").innerHeight(); 678 679 if (content_height > max_height) { 680 spec_text_wrapper.css("height", max_height + "px"); 681 spec_text_block.find(".spec-text-controls").show(); 682 spec_text_block.addClass("is-hidden"); 683 } 684 else { 685 spec_text_wrapper.css("height", "auto"); 686 spec_text_block.find(".spec-text-controls").hide(); 687 spec_text_block.removeClass("is-hidden"); 688 } 689 } 690} 691 692 693// STICK LEFT SIDEBAR 694function initStickLeftSidebar () { 695 if ($(".js-left-sidebar").length) { 696 var is_active_stick_left_sibar = false;
697 698 configureStickLeftSidebar(); 699 700 $(window).on("resize", function () { 701 configureStickLeftSidebar(); 702 }); 703 } 704 705 function configureStickLeftSidebar () { 706 707 var point_for_active = 960; 708 709 if ($(window).width() > point_for_active && is_active_stick_left_sibar === false) { 710 $(".js-left-sidebar").stick_in_parent({ 711 parent: ".js-section-with-sidebar" 712 }); 713 is_active_stick_left_sibar = true; 714 } 715 716 if ($(window).width() <= point_for_active && is_active_stick_left_sibar === true) { 717 $(".js-left-sidebar").trigger("sticky_kit:detach"); 718 is_active_stick_left_sibar = false; 719 } 720 } 721} 722 723 724// SWITCH TABS 725function switchTabs () { 726 if ($(".js-tabs-title").length === 0) { 727 return false; 728 } 729 730 $(".js-tabs-title").on("click", function () { 731 var tabs_block = $(this).parents(".js-tabs"), 732 result_tab_content_block = $(this).attr("data-tab-content"); 733 734 tabs_block.find(".js-tabs-title.is-active").removeClass("is-active"); 735 $(this).addClass("is-active"); 736 737 tabs_block.find(".tab-content-item.is-active").removeClass("is-active"); 738 $(result_tab_content_block).addClass("is-active"); 739 }); 740} 741 742 743// ANCHOR LINKS 744function initAnchorLinks () { 745 if ($(".js-anchor-link").length === 0) { 746 return false; 747 } 748 749 $(".js-anchor-link").on("click", function () { 750 var anchor_block = $(this).attr("data-anchor-link"); 751 752 if ($(anchor_block).length) { 753 var dop_indent = 20; 754 755 var anchor_block_top_position = $(anchor_block).offset().top - dop_indent; 756 $('html, body').animate({scrollTop: anchor_block_top_position}, 500); 757 } 758 759 return false; 760 }); 761} 762 763 764// SCROLL ON TOP PAGE 765function initScrollOnTop () { 766 if ($(".js-scroll-on-top").length === 0) { 767 return false; 768 } 769 770 $(window).on("scroll", function () { 771 if ($(window).scrollTop() >= $(window).height()) { 772 $(".js-scroll-on-top").addClass("is-show"); 773 } else { 774 $(".js-scroll-on-top").removeClass("is-show"); 775 } 776 }); 777 778 $(".js-scroll-on-top").on("click", function () { 779 $('html, body').animate({scrollTop: 0}, 500); 780 return false; 781 }); 782} 783 784 785/* //////////////////////////////////////////////////////////// INDEX //////////////////////////////////////////////////////////// */ 786 787 788// NEWS SLIDER 789function initNewsSlide () { 790 if ($(".js-news-slider").length === 0) { 791 return false; 792 } 793 794 var is_init_news_slider = false;
795 configureNewsSlider(); 796 797 $(window).on("resize", function () { 798 configureNewsSlider(); 799 }); 800 801 function configureNewsSlider () { 802 if ($(window).width() > 680) { 803 if (is_init_news_slider) { 804 return false; 805 } 806 807 $(".js-news-slider").slick({ 808 slidesToShow: 3, 809 slidesToScroll: 1, 810 adaptiveHeight: true, 811 draggable: false, 812 responsive: [ 813 { 814 breakpoint: 1280, 815 settings: { 816 slidesToShow: 2 817 }, 818 }, 819 { 820 breakpoint: 1024, 821 settings: { 822 slidesToShow: 2, 823 draggable: true 824 }, 825 }, 826 { 827 breakpoint: 960, 828 settings: { 829 slidesToShow: 1, 830 draggable: true 831 } 832 } 833 ] 834 }); 835 836 is_init_news_slider = true; 837 } 838 else { 839 if (is_init_news_slider) { 840 $(".js-news-slider").slick('unslick'); 841 is_init_news_slider = false;
842 } 843 } 844 } 845} 846 847 848// CONFIGURE POPULAR PROGRAMM LIST 849function configurePopularProgrammList () { 850 if ($(".popular-programm-list").length === 0) { 851 return false; 852 } 853 854 initAlignHeightPopularProgramms(); 855 856 $(window).on("load resize", function () { 857 initAlignHeightPopularProgramms(); 858 }); 859 860 function initAlignHeightPopularProgramms () { 861 if ($(window).width() > 1024) { 862 $(".popular-programm-list").each(function () { 863 alignHeight($(this), 4); 864 }); 865 } 866 else if ($(window).width() > 680) { 867 $(".popular-programm-list").each(function () { 868 alignHeight($(this), 2); 869 }); 870 } 871 } 872} 873 874 875/* //////////////////////////////////////////////////////////// CATALOG //////////////////////////////////////////////////////////// */ 876 877// SHOW DOP PARAMS CATALOG FILTER 878function showDopParamsCatalogFilter () { 879 if ($(".catalog-filter").length === 0) { 880 return false; 881 } 882 883 $(".js-show-all-catalog-filter-params").on("click", function () { 884 var catalog_filter = $(this).parents(".catalog-filter"); 885 886 if (catalog_filter.is(".is-show-all-params")) { 887 catalog_filter.find(".catalog-filter-dop-fields").stop().slideUp(300, function () { 888 catalog_filter.removeClass("is-show-all-params"); 889 document.cookie = "catalog_filter_dop_fields=false"; 890 }); 891 } 892 else { 893 catalog_filter.find(".catalog-filter-dop-fields").stop().slideDown(300, function () { 894 catalog_filter.addClass("is-show-all-params"); 895 document.cookie = "catalog_filter_dop_fields=true"; 896 }); 897 } 898 }); 899 900 if (window.location.href.split("?")[1] != undefined) { 901 if (window.location.href.split("?")[1].indexOf("COUNTRY") != -1) { 902 if (getCookie("catalog_filter_dop_fields") == "true") { 903 $(".js-show-all-catalog-filter-params").click(); 904 } 905 } else { 906 document.cookie = "catalog_filter_dop_fields=false"; 907 } 908 } else { 909 document.cookie = "catalog_filter_dop_fields=false"; 910 } 911 912 function getCookie (name) { 913 var matches = document.cookie.match(new RegExp( 914 "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" 915 )); 916 return matches ? decodeURIComponent(matches[1]) : undefined; 917 } 918} 919 920 921// CONFIGURE HEIGHT CATALOG LIST ITEMS 922function configureHeightCatalogListItems () { 923 if ($(".catalog-list").length === 0) { 924 return false; 925 } 926 927 initAlignHeightCatalogItems(); 928 929 $(window).on("load resize", function () { 930 initAlignHeightCatalogItems(); 931 }); 932 933 function initAlignHeightCatalogItems () { 934 if ($(window).width() > 1024) { 935 $(".catalog-list").each(function () { 936 alignHeight($(this), 3); 937 }); 938 } 939 else if ($(window).width() > 768) { 940 $(".catalog-list").each(function () { 941 alignHeight($(this), 2); 942 }); 943 } 944 /*else 945 { 946 $(".catalog-list").each(function() 947 { 948 alignHeight($(this), 1); 949 }); 950 }*/ 951 } 952} 953 954 955/* //////////////////////////////////////////////////////////// VIDEO //////////////////////////////////////////////////////////// */ 956 957// CONFIGURE HEIGHT VIDEO LIST ITEMS 958function configureHeightVideoListItems () { 959 if ($(".video-list").length === 0) { 960 return false; 961 } 962 963 initAlignHeightVideoItems(); 964 965 $(window).on("load resize", function () { 966 initAlignHeightVideoItems(); 967 }); 968 969 function initAlignHeightVideoItems () { 970 if ($(window).width() > 768) { 971 $(".video-list").each(function () { 972 alignHeight($(this), 2); 973 }); 974 } 975 else { 976 $(".video-list").each(function () { 977 alignHeight($(this), 1); 978 }); 979 } 980 } 981} 982 983 984/* //////////////////////////////////////////////////////////// TEAM //////////////////////////////////////////////////////////// */ 985
986// CONFIGURE HEIGHT TEAM LIST ITEMS 987function configureHeightTeamListItems () { 988 if ($(".team-list").length === 0) { 989 return false; 990 } 991 992 initAlignHeightTeamItems(); 993 994 $(window).on("load resize", function () { 995 initAlignHeightTeamItems(); 996 }); 997 998 function initAlignHeightTeamItems () { 999 if ($(window).width() > 1024) { 1000 $(".team-list").each(function () { 1001 alignHeight($(this), 3); 1002 }); 1003 } 1004 else if ($(window).width() > 480) { 1005 $(".team-list").each(function () { 1006 alignHeight($(this), 2); 1007 }); 1008 } 1009 else { 1010 $(".team-list").each(function () { 1011 alignHeight($(this), 1); 1012 }); 1013 } 1014 } 1015} 1016 1017 1018// CONFIGURE HEIGHT COMPANY TEAM LIST ITEMS 1019function configureHeightCompanyTeamListItems () { 1020 if ($(".main-team-list").length === 0) { 1021 return false; 1022 } 1023 1024 initAlignHeightCompanyTeamItems(); 1025 1026 $(window).on("load resize", function () { 1027 initAlignHeightCompanyTeamItems(); 1028 }); 1029 1030 function initAlignHeightCompanyTeamItems () { 1031 if ($(window).width() > 960) { 1032 $(".main-team-list").each(function () { 1033 alignHeight($(this), 4); 1034 }); 1035 } 1036 else if ($(window).width() > 480) { 1037 $(".main-team-list").each(function () { 1038 alignHeight($(this), 2); 1039 }); 1040 } 1041 else { 1042 $(".main-team-list").each(function () { 1043 alignHeight($(this), 1); 1044 }); 1045 } 1046 } 1047} 1048 1049 1050/* //////////////////////////////////////////////////////////// CAREER //////////////////////////////////////////////////////////// */ 1051 1052// SHOW CAREER ITEM DETAIL INFO 1053function showCareerItemDetailInfo () { 1054 if ($(".career-list-item").length === 0) { 1055 return false; 1056 } 1057 1058 $(".js-show-detail-career-info").on("click", function () { 1059 var career_item = $(this).parents(".career-list-item"); 1060 1061 if (career_item.is(".is-show")) { 1062 career_item.find(".career-list-item__detail").stop().slideUp(300, function () { 1063 career_item.removeClass("is-show"); 1064 }); 1065 } 1066 else { 1067 career_item.find(".career-list-item__detail").stop().slideDown(300, function () { 1068 career_item.addClass("is-show"); 1069 }); 1070 } 1071 }); 1072} 1073 1074// SHOW RESUME FORM POPUP 1075function showResumeFormPopup () { 1076 $(".js-show-resume-popup").on("click", function () { 1077 showPopup("#resume-form-popup"); 1078 return false; 1079 }); 1080} 1081 1082 1083/* //////////////////////////////////////////////////////////// COUNTRY //////////////////////////////////////////////////////////// */ 1084 1085// CONFIGURE HEIGHT SHOLL PROGRAM LISTI TEMS 1086function configureHeightShollProgramListItems () { 1087 if ($(".school-program-list").length === 0) { 1088 return false; 1089 } 1090 1091 initAlignHeightShollProgramItems(); 1092 1093 $(window).on("load resize", function () { 1094 initAlignHeightShollProgramItems(); 1095 }); 1096 1097 function initAlignHeightShollProgramItems () { 1098 if ($(window).width() > 960) { 1099 $(".school-program-list").each(function () { 1100 alignHeight($(this), 2); 1101 }); 1102 } 1103 else { 1104 $(".school-program-list").each(function () { 1105 alignHeight($(this), 1); 1106 }); 1107 } 1108 } 1109} 1110 1111///* /////////////////// add class to form for Google Tag ///////////////////// */ 1112// 1113//$(document).ready(function() { 1114// 1115// var divElement = document.getElementById('consultation-form-popup'); 1116// addClassForm(divElement, 'popup-form-gt'); 1117// 1118// divElement = document.getElementById('consultation-form-short'); 1119// addClassForm(divElement, 'short-form-gt'); 1120// 1121// divElement = document.getElementById('consultation-form-full'); 1122// addClassForm(divElement, 'full-form-gt'); 1123// 1124// divElement = document.getElementById('consultation-form-manager'); 1125// addClassForm(divElement, 'manager-form-gt'); 1126// 1127// divElement = document.getElementById('consultation-form-left');
1128// addClassForm(divElement, 'left-form-gt'); 1129// 1130// divElement = document.getElementById('form__signup-event'); 1131// addClassForm(divElement, 'event-form-gt'); 1132// 1133// 1134// function addClassForm(divElement, nameClass) { 1135// 1136// if (divElement != null) { 1137// var elements = divElement.getElementsByTagName('form'); 1138// 1139// for (var i = 0; i < elements.length; i++) { 1140// var el = elements[i]; 1141// $(el).addClass(nameClass); 1142// } 1143// } 1144// } 1145//});
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.