1var rtl; 2var homeSlider = jQuery('.home_slider'); 3var factsSlider = jQuery('.facts_slider'); 4 5if(jQuery('html').attr('lang') == 'en-US'){ 6 rtl = false; 7 nextTitle = 'Next'; 8 previousTitle = 'Previous'; 9}else{ 10 rtl = true; 11 nextTitle = '×××'; 12 previousTitle = '××§×××'; 13} 14/******************************************************************************************************/ 15jQuery(document).ready(function(){ 16 //purchase click event 17 jQuery(".tickets_status").click(function(){ 18 //fbq('track', 'Purchase', {value: '0.00', currency:'ILS'}); 19 }); 20 jQuery( '.ninja-forms-form' ).on( 'submitResponse', function( e, response ) { 21 //newsleter registration 22 if(response.form_id == 25 || response.form_id == 29 || response.form_id == 21){ 23 fbq('track', 'CompleteRegistration'); 24 fbq('track', 'Lead'); 25 } 26 if(response.form_id == 37 || response.form_id == 33 || response.form_id == 59){ 27 fbq('track', 'Lead'); 28 } 29 var errors = response.errors; 30 31 }); 32 jQuery("div#ninja_forms_field_30_div_wrap").click(function(e){ 33 e.preventDefault(); 34 jQuery(this).parents("form").submit(); 35 }); 36 //Parent header menu image 37 //Please DO NOT touch this 38 jQuery("nav.main_menu > div > ul > li > a").mouseenter(function(){ 39 //remove previous picture 40 //jQuery("span.parent_image_holder").remove(); 41 42 var pic_src = jQuery(this).find("img").attr("src"); 43 if( pic_src && (typeof pic_src !='undefined') ) { 44 var sub_menu_height = jQuery(this).parents("li").find("ul.sub-menu").height(); 45 jQuery(this).parents("li").find("ul.sub-menu li:first-child a").append("<span class='parent_image_holder'></span>"); 46 jQuery(this).parents("li").find("ul.sub-menu li:first-child a span.parent_image_holder").css({ 47 "background-image":"url("+pic_src+")", 48 "height":sub_menu_height+"px" 49 }); 50 } 51 }); 52 jQuery("nav.main_menu > div > ul > li > a").mouseleave(function(){ 53 //jQuery(this).parents("li").find("ul.sub-menu li:first-child a span.parent_image_holder").remove(); 54 }); 55 /**************/ 56 57 homeSlider.on("init", function(slick){ 58 jQuery('ul.slick-dots').wrap('<div class="slider_buttons"></div>'); 59 jQuery('ul.slick-pp').prependTo('.home_slider .slider_buttons'); 60 }); 61 62 jQuery('#filter_skills .input_checkbox').click(function(){ 63 var enable_submit = false; 64 jQuery('#filter_skills .input_checkbox').each(function(index){ 65 if(jQuery(this).is(':checked')){ 66 enable_submit = true; 67 } 68 }); 69 if(enable_submit){ 70 jQuery('#filter_skills #submit_skills').attr('disabled',false); 71 jQuery('#filter_skills .wrap_submit').removeClass('disabled'); 72 }else{ 73 jQuery('#filter_skills #submit_skills').attr('disabled',true); 74 jQuery('#filter_skills .wrap_submit').addClass('disabled'); 75 } 76 77 }); 78 79 jQuery('#floating_logo .wrap_for_hover').on('mouseover',function(){ 80 var wrapper = jQuery(this); 81 wrapper.addClass('display'); 82 setTimeout(function(){wrapper.removeClass('display');},7000); 83 }); 84 85 if(jQuery('body').hasClass('home')){ 86 87 if(jQuery(window).width() < 768 ){ 88 setTimeout(() => { handle_home_slick_slider(rtl); },500); 89 } else { 90 handle_home_slick_slider(rtl); 91 } 92 } 93 if(jQuery(window).width() > 1024 ){ 94 set_menu_attributes(); 95 } 96 97 //Accessibility 98 accessible_dropdown_focus(); 99 100 jQuery('.bubbles_messages').slick({ 101 arrows: false, 102 dots: false, 103 autoplay: true, 104 speed: 500, 105 fade: true, 106 rtl: rtl, 107 autoplaySpeed: 7000, 108 infinite: true, 109 slidesToShow: 1, 110 slidesToScroll: 1 111 }); 112 jQuery('.gallery_images , .facility_gallery, .page_gallery').slick({ 113 arrows: false, 114 dots: false, 115 autoplay: true, 116 speed: 500, 117 fade: true, 118 rtl: rtl, 119 autoplaySpeed: 3000, 120 infinite: true, 121 slidesToShow: 1, 122 slidesToScroll: 1 123 }); 124 125 if (jQuery('.slider_gallery').length){ 126 setTimeout(() => { 127 jQuery('.slider_gallery').slick({ 128 dots: true, 129 infinite: true, 130 speed: 700, 131 slidesToShow: 4, 132 slidesToScroll: 1, 133 rtl: true, 134 autoplay:true, 135 prevArrow: '<button class="slick_btn btn_left"><i class="fa fa-angle-left"></i></button>', 136 nextArrow: '<button class="slick_btn btn_right"><i class="fa fa-angle-right"></i></button>', 137 responsive: [ 138 { 139 breakpoint: 1024, 140 settings: { 141 slidesToShow: 3, 142 slidesToScroll: 1, 143 infinite: true, 144 dots: true 145 } 146 }, 147 { 148 breakpoint: 600, 149 settings: { 150 slidesToShow: 2, 151 slidesToScroll: 1,
152 arrows: false 153 } 154 }, 155 { 156 breakpoint: 480, 157 settings: { 158 slidesToShow: 2, 159 slidesToScroll: 1, 160 arrows: false 161 } 162 } 163 // You can unslick at a given breakpoint now by adding: 164 // settings: "unslick" 165 // instead of a settings object 166 ] 167 }); 168 169 },500); 170 } 171 // add Classes to wordpress gallery for additional styling 172 customize_wordpress_gallery(); 173 174 jQuery('#page_content .gallery').magnificPopup({ 175 delegate: 'a', 176 type: 'image', 177 mainClass: 'gallery_popup mfp-img-mobile', 178 }); 179 180 jQuery('li.print a').click(function(e){ 181 e.preventDefault(); 182 //printDiv('page_content'); 183 window.print(); 184 }); 185 186 jQuery('.post_image.video_item .play_video').magnificPopup({ 187 type:'inline', 188 midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href. 189 }); 190 191 jQuery('.plan_trip_page .plan_trip_btn').magnificPopup({ 192 type:'inline', 193 midClick: true, 194 callbacks: { 195 open: function() { 196 fixCheckboxTitle(jQuery('.wrap_checkbox label')); 197 } 198 } 199 }); 200 201 // Load Foundation (Last) 202 jQuery(document).foundation(); 203 204 205 //======== FAQ ==========// 206 jQuery(".collapse_toggle").click(function(event){ 207 event.preventDefault(); 208 $this = jQuery(this); 209 $thisP = $this.closest(".collapses_item"); 210 211 jQuery(".collapses_item").not($thisP).removeClass("active"); 212 jQuery(".collapses_item").not($thisP).find(".plus_minus_t").html("+"); 213 214 if($thisP.hasClass("active")) { 215 $thisP.removeClass("active"); 216 $thisP.find(".plus_minus_t").html("+"); 217 } else { 218 $thisP.addClass("active"); 219 $thisP.find(".plus_minus_t").html("-"); 220 } 221 }); 222 223 //======== /FAQ =========// 224 225}); // End of document.ready 226 227/***************************************************/ 228 229//Iframe logo click 230jQuery('iframe#header_logo_iframe').load(function(){ 231 var home_url = jQuery("#header .main_clickable_logo").data("homeurl"); 232 jQuery(this).contents().find("body").on('click', function(event) { 233 window.location.assign(home_url); 234 }); 235}); 236 237jQuery(window).load(function(){ 238 239 if(jQuery(window).width() > 1024 ){ 240 set_home_sidebar_heights(); 241 } 242 243 if(jQuery(window).width() <=768 ){ 244 jQuery('.columns.main_column').prependTo(jQuery('.row.prepended_row') ); 245 } 246 247 fixCheckboxTitle(jQuery('.wrap_checkbox label')); 248 facts_slider(rtl); 249 250}); // End of window.load 251 252var above_logo = jQuery('.above_float_logo').offset(); 253var floating_logo_offset = jQuery('#floating_logo').offset(); 254 255jQuery(window).scroll(function(){ 256 257 if(jQuery('.above_float_logo').length > 0){ 258 259 var currentScroll = jQuery(window).scrollTop(); 260 261 if(jQuery('body').hasClass('admin-bar')){ 262 if(currentScroll +32 >= floating_logo_offset.top){ 263 jQuery('#floating_logo').addClass('fixed'); 264 }else { 265 jQuery('#floating_logo').removeClass('fixed'); 266 } 267 }else{ // no admin-bar 268 if(currentScroll >= floating_logo_offset.top){ 269 jQuery('#floating_logo').addClass('fixed'); 270 }else { 271 jQuery('#floating_logo').removeClass('fixed'); 272 } 273 } 274 } 275 276}); 277/*************************************************** 278* FUNCTIONS 279* **************************************************/ 280// Add Class to wordpress gallery 281function customize_wordpress_gallery(){ 282 var addClass = ''; 283 if(jQuery('#page_content .gallery').length){ 284 jQuery('.gallery-item').each(function(index){ 285 jQuery(this).find('img').addClass('zoom_in'); 286 if(index %3 === 0){ 287 addClass = 'first'; 288 }else { 289 addClass = ''; 290 } 291 jQuery(this).addClass(addClass); 292 }); 293 } 294} 295// home slick slider 296function handle_home_slick_slider(rtl){ 297 homeSlider.slick({ 298 arrows: true, 299 dots: true, 300 autoplay: true, 301 speed: 600, 302 fade: true, 303 pauseOnHover: false, 304 rtl: rtl, 305 autoplaySpeed: 3000, 306 infinite: true, 307 slidesToShow: 1, 308 slidesToScroll: 1, 309 prevArrow: '<button type="button" class="slider_arr arr_prev" title="'+previousTitle+'">'+previousTitle+'</button>', 310 nextArrow: '<button type="button" class="slider_arr arr_next" title="'+nextTitle+'">'+nextTitle+'</button>' 311 }); 312 313 jQuery('ul.slick-pp li button.pause').click(function(e){ 314 e.preventDefault(); 315 jQuery('ul.slick-pp li.pause_trig').removeClass('active'); 316 jQuery('ul.slick-pp li.play_trig').addClass('active'); 317 homeSlider.slick('slickPause'); 318 }); 319 jQuery('ul.slick-pp li button.play').click(function(e){ 320 e.preventDefault(); 321 jQuery('ul.slick-pp li.play_trig').removeClass('active'); 322 jQuery('ul.slick-pp li.pause_trig').addClass('active'); 323 homeSlider.slick('slickPlay'); 324 }); 325} 326// facts slider 327function facts_slider(rtl){ 328 329 factsSlider.on('init', function(event, slick){ 330 if(!jQuery('body').hasClass('single-zone')){ 331 setFactsSliderHeights(); 332 } 333 }); 334 335 factsSlider.slick({ 336 arrows: true, 337 dots: false, 338 autoplay: false, 339 speed: 500, 340 pauseOnHover: false, 341 rtl: rtl, 342 autoplaySpeed: 4000, 343 infinite: true, 344 slidesToShow: 1, 345 slidesToScroll: 1, 346 // prevArrow: '<button type="button" class="slider_arr small arr_prev" title="'+previousTitle+'"><i class="fa fa-chevron-right">'+previousTitle+'</i></button>', 347 // nextArrow: '<button type="button" class="slider_arr small arr_next" title="'+nextTitle+'"><i class="fa fa-chevron-left">'+nextTitle+'</i></button>', 348 prevArrow: '<button type="button" class="btn_icon arr_prev" title="'+previousTitle+'"><i class="fa fa-chevron-left"></i></button>', 349 nextArrow: '<button type="button" class="btn_icon arr_next" title="'+nextTitle+'"><i class="fa fa-chevron-right"></i></button>', 350 responsive: [ 351 { 352 breakpoint: 640, 353 settings: { 354 autoplay: true, 355 dots: false, 356 arrows:false 357 } 358 } 359 ] 360 }); 361 362} 363// adjust heights in home main content 364function set_home_sidebar_heights(){ 365 var innerHeight = jQuery('.widgets_inner_wrapper').outerHeight(true); 366 var outerHeight = jQuery('.home_main_content').outerHeight(true); 367 368 var widgets_height = outerHeight; 369 if(innerHeight <= outerHeight){
370 widgets_height = innerHeight; 371 jQuery('.widgets_outer_wrapper').css('height',widgets_height+'px'); 372 } 373 374 var content = jQuery('.home_main_content'); 375 var sidebar = jQuery('.home_main_sidebar'); 376 var height = Math.max(content.outerHeight(true), sidebar.outerHeight(true)); 377 content.css('height',height+'px'); 378 sidebar.css('height',height+'px'); 379 380 var newSidebarHeight = jQuery('.home_main_sidebar .widgets_outer_wrapper').outerHeight(true) + jQuery('.home_main_sidebar .section_title').outerHeight(true); 381 382 if(height >= newSidebarHeight){ 383 widgets_height += height-newSidebarHeight; 384 jQuery('.widgets_outer_wrapper').css('height',widgets_height+'px'); 385 } 386 jQuery('.home .home_main_wrapper').animate({opacity: 1}, 500); 387 388} 389 390// adjust heights to skills checkboxes 391function fixCheckboxTitle(element){ 392 if( element.length ){ 393 var maxHeight = 0; 394 element.each( function() { 395 if( maxHeight < jQuery( this ).outerHeight() ) 396 maxHeight = jQuery( this ).outerHeight(); 397 }); 398 element.css( 'min-height' , ( maxHeight ) ); 399 new Foundation.Equalizer(jQuery('#home_second_part')).applyHeight(); 400 } 401} 402 403function set_menu_attributes(){ 404 var navMenuWidth = jQuery('nav.main_menu').width(); 405 var imgWidth = navMenuWidth-225; 406 jQuery('nav.main_menu .wrap_sub_menu > ul > li').each(function(index){ 407 jQuery(this).find('img').css('width',imgWidth+'px'); 408 var imgElement = jQuery(this).find('img'); 409 // imgElement.insertAfter(jQuery(this).find('a')); 410 // imgElement.wrap('<div class="img_holder"></div>'); 411 }); 412 413 // if(menu_colors.length !== 0){ 414 // jQuery('nav.main_menu > div > ul > li.menu-item-has-children').each(function(){ 415 // var list_element = jQuery(this); 416 // jQuery.each(menu_colors, function(k,v){ 417 // if(list_element.hasClass(k)){ 418 // list_element.attr('data-color',v); 419 // } 420 // }); 421 // }); 422 // } 423} 424 425function accessible_dropdown_focus(){ 426 // handle wrap_sub_menu 427 jQuery( "nav.main_menu ul > li > a" ) 428 .focus(function() { 429 var wrap_sub_menu = jQuery(this).parent().find('.wrap_sub_menu'); 430 if(wrap_sub_menu.length){ // i am top level 431 jQuery('.wrap_sub_menu').removeClass('focused'); // display : none 432 wrap_sub_menu.addClass('focused'); // display : block 433 } 434 }) 435 .focusout(function() { 436 var last_li_element; 437 var wrap_sub_menu = jQuery(this).parents('.wrap_sub_menu'); 438 var ul_sub_menu = jQuery(this).parents('ul.sub-menu'); 439 if(ul_sub_menu.length){ // i am top level 440 last_li_element = ul_sub_menu.find('li').last(); // find last item in sub menu 441 if(jQuery(this).parent('li').attr('id') == last_li_element.attr('id')){ // if you are last li in sub-menu 442 wrap_sub_menu.removeClass('focused'); 443 } 444 } 445 }); 446 //handle top li 447 jQuery('nav.main_menu ul ul.sub-menu li a') 448 .focus(function(){ 449 var li_parent = jQuery(this).parents('li.menu-item-has-children'); 450 var color = li_parent.data('color'); 451 li_parent.find('a').css('background-color',color); 452 }) 453 .focusout(function(){ 454 var ul_parent = jQuery(this).parents('ul.menu-depth-0'); 455 var li_parent = jQuery(this).parents('li.menu-item-has-children'); 456 var last_child = li_parent.find('.wrap_sub_menu ul li').last(); 457 if(jQuery(this).parent('li.menu-item-depth-1').attr('id') == last_child.attr('id')){ 458 li_parent.find('a').css('background-color','initial'); 459 } 460 }); 461 462 463 464 465 // on esc keyboard close sub-menu 466 jQuery(document).on('keyup',function(evt) { 467 if (evt.keyCode == 27) { 468 jQuery('.wrap_sub_menu').removeClass('focused'); 469 jQuery('li.menu-item-has-children a').css('background-color',''); 470 } 471 }); 472} 473 474function setFactsSliderHeights(){ 475 var factsWrapperHeight = jQuery('.home_facts_wrapper').outerHeight(true); 476 var titleHeight = jQuery('.home_facts_wrapper .wrap_title').outerHeight(true); 477 var bottomHeight = 59; 478 var factsSliderHeight = factsWrapperHeight-(titleHeight+bottomHeight+15); 479 jQuery('.fact_slide').each(function(index){ 480 jQuery(this).css('height',factsSliderHeight+'px'); 481 }); 482} 483 484 485 486 487 488 (function () { 489 var _atpopq = window._atpopq || (window._atpopq = []); 490 window._atpopobj = {}; 491 if (!_atpopq.loaded) { 492 var atpopjs = document.createElement('script'); 493 atpopjs.type = 'text/javascript'; 494 atpopjs.async = true; 495 atpopjs.src = '//cdn-media.web-view.net/popups/lib/v1/loader.min.js'; 496 var s = document.getElementsByTagName('script')[0]; 497 s.parentNode.insertBefore(atpopjs, s); 498 _atpopq.loaded = true; 499 } 500 _atpopq.push(['UserId', 'zz3tatddahuh']); 501 _atpopq.push(['PopupId', '3ff3a22a']); 502 _atpopq.push(['IsraelCode', '104']); 503 _atpopq.push(['CountryCode', '104']); 504 _atpopq.push(['IsEmbed', true]); 505 _atpopq.push(['IgnoreMainCss', true]); 506 _atpopq.push(['OnEventCallback', 'handleATPopupEvent']); 507 })(); 508 509 510 //Sample event handler function 511 function handleATPopupEvent(ev,args){ 512 switch(ev){ 513 case 'display': 514 //Do this when the popup is displayed 515 break; 516 case 'close': 517 //Do this when the popup gets closed by the user 518 break; 519 case 'submit': 520 //Do this when popup gets submitted and the user doesn't get redirected to a URL 521 break; 522 } 523 } 524 525 526 527jQuery('.ninja-forms-form').on('submit', function() { 528 jQuery(this).html('<p style="color:#000000;">×××פס × ×©×× ××צ×××!</p>'); 529}); 530 531jQuery('#ninja_forms_form_56').on('submit', function() { 532 jQuery(this).html('<p style="color:#000000;"><p style="text-align: center">ת××× ×¢× ×¤× ××ת×, × ××× ××צ×ר ×××ª× ×§×©×¨ ×××§××<br /><br /><a id="successMsgHomeBtn" style="background-color: #024084;text-align: center;color: #ffffff;padding: 6px 14px;text-decoration: none" href="#">×××ר ×××¡× ×××ת</a></p></p>'); 533});
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.