1$(document).scroll(function () { 2 if ($(document).scrollTop() == 0) { 3 $(".header").removeClass("offset"); 4 } 5 else { 6 $(".header").addClass("offset"); 7 } 8}); 9 10$(document).ready(function () { 11 12 // Table Of Contents 13 $(".toc-toggle a").click(function (e) { 14 e.preventDefault(); 15 16 $(this).parents(".toc-container").toggleClass("active"); 17 $(this).parents(".toc-container").find(".toc-expendable").toggle("slow"); 18 }); 19 20 $("#toc").toc({ 21 content: ".rich-content", 22 headings: "h2,h3,h4,h5" 23 }); 24 25 // Sticky Content 26 jQuery('.sticky-content').theiaStickySidebar({ 27 additionalMarginTop: 70 28 }); 29 30 // Toggle Mobile Menu 31 $(function () { 32 $(".header .navigation .on").parents("li").addClass("on"); 33 }); 34 35 // nav & accessibility 36 $(function () { 37 $(".header nav li").each(function () { 38 var arias = ''; 39 if ($(this).find("ul").length > 0) { 40 //$(this).find("span").first().find("a").attr('aria-expanded', 'false'); 41 $(this).find("span").first().find("a").attr('aria-expanded', 'true'); 42 } 43 }); 44 45 $(".header nav ul a").on("mouseover focus", function () { 46 if ($(this).parent().parent().find("ul").length > 0) { 47 //$(this).attr("aria-expanded", true); 48 } 49 }); 50 51 $(".header nav ul ul").mouseleave(function () { 52 //$(this).parent().find("span").first().find("a").attr("aria-expanded", false); 53 }); 54 55 $(">li", ".header nav ul").focusin(function () { 56 $(this).siblings().children("ul").hide(); 57 58 $(this).siblings().find("span").find("a").each(function () { 59 if ($(this).parent().parent().find("ul").length > 0) { 60 //$(this).attr("aria-expanded", false); 61 } 62 }); 63 64 $(this).children("ul").show(); 65 66 $(this).find("span").find("a").each(function () { 67 if ($(this).parent().parent().find("ul").length > 0) { 68 $(this).attr("aria-expanded", true); 69 } 70 }); 71 }); 72 73 $(".header nav ul li:last-child ul li:last-child a").blur(function () { 74 if ($(':focus').parents("nav").length == 0) { 75 $(".header nav ul ul").hide(); 76 } 77 }); 78 $(".logo").focus(function () { 79 $(".header nav ul ul").hide(); 80 }); 81 $(".header nav ul ul a").on('keydown', function (e) { 82 if (e.keyCode === 27) { 83 $(this).parent().parent().parent().hide(); 84 85 var $nextLI = $(this).parent().parent().parent().parent(); 86 87 if (!$nextLI.is(':last-child')) { 88 $nextLI.next().find("span").first().find("a").focus(); 89 } 90 else { 91 $nextLI.nextAll("a").focus(); 92 } 93 } 94 }); 95 }); 96 97 // Mobile Navigation 98 $(function () { 99 var addToggleButtons = function () { 100 $(".mobile-navigation nav li").each(function () { 101 var className = 'no-sub-menu'; 102 var arias = ''; 103 if ($(this).find("ul").length > 0) { 104 className = ''; 105 arias = 'aria-label="×¤×ª× / ס××ר תפר××" aria-expanded="false"'; 106 } 107 if ($(this).find("a").first().attr("target") == "_blank") { 108 className = 'external-link'; 109 } 110 $(this).find("span").first().prepend('<button class="toggle-sub-menu ' + className + '" ' + arias + '><span class="sr-only">×¤×ª× / ס××ר</span></button>'); 111 }); 112 113 $(".mobile-navigation nav li .toggle-sub-menu").click(function () { 114 if ($(this).hasClass("no-sub-menu")) { 115 var href = $(this).parent().parent().find("a").attr("href"); 116 $(this).parent().find("a")[0].click(); 117 } 118 else { 119 $(this).toggleClass("opened"); 120 $(this).parent().parent().find("ul").first().slideToggle(); 121 122 var expended = $(this).hasClass("opened"); 123 $(this).attr("aria-expanded", expended); 124 } 125 }); 126 }; 127 128 $(".mobile-navigation-close").click(function () { 129 $(".mobile-navigation").removeClass("open"); 130 $(".toggle-nav").attr("aria-expanded", false); 131 }); 132 133 var focusableElements = "a[href]:not([tabindex='-1'])," + 134 "area[href]:not([tabindex='-1'])," + 135 "input:not([disabled]):not([tabindex='-1'])," + 136 "select:not([disabled]):not([tabindex='-1'])," + 137 "textarea:not([disabled]):not([tabindex='-1'])," + 138 "button:not([disabled]):not([tabindex='-1'])," + 139 "iframe:not([tabindex='-1'])," +
140 "[tabindex]:not([tabindex='-1'])," + 141 "[contentEditable=true]:not([tabindex='-1'])"; 142 143 $(".toggle-nav").click(function (e) { 144 e.preventDefault(); 145 146 $(".mobile-navigation").toggleClass("open").attr("tabindex", "-1"); 147 148 var expanded = $(".mobile-navigation").hasClass("open"); 149 150 $(this).attr("aria-expanded", expanded); 151 152 $(this).find('.fa').toggleClass('fa-times fa-bars'); 153 154 setTimeout(function () { 155 if (expanded) { 156 $(".mobile-navigation").find(".mobile-navigation-close").focus(); 157 } 158 }, 500); 159 160 }); 161 162 $(".mobile-navigation").each(function () { 163 164 $(this).on('keydown', function (e) { 165 if (e.keyCode === 9) { 166 167 var firstTabStop = $(this).find(focusableElements).filter(":visible").not("[tabindex='-1']").first(); 168 var lastTabStop = $(this).find(focusableElements).filter(":visible").not("[tabindex='-1']").last(); 169 170 if (e.shiftKey) { 171 if ($(":focus").is(firstTabStop)) { 172 e.preventDefault(); 173 lastTabStop.focus(); 174 } 175 } else { 176 if ($(":focus").is(lastTabStop)) { 177 e.preventDefault(); 178 firstTabStop.focus(); 179 } 180 } 181 } 182 if (e.keyCode === 27) { 183 $(".mobile-navigation-close").trigger("click"); 184 } 185 }); 186 }); 187 188 addToggleButtons(); 189 }); 190 191 // Rich Content Links Icons 192 $(function () { 193 $(".rich-content a").each(function () { 194 195 if (!$(this).parent().hasClass("gallery") && $(this).parents(".magnificPopup-gallery").length == 0 && !$(this).hasClass("magnificPopup-picture")) { 196 197 var href = $(this).attr("href"); 198 199 if (href.substring(href.length - 3) == 'pdf') { 200 201 var html = $(this).html(); 202 203 html = '<em style="color: #df1818" class="fa fa-file-pdf-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 204 205 $(this).html(html); 206 $(this).attr("target", "_blank"); 207 } 208 else if (href.substring(href.length - 3) == 'xls' || href.substring(href.length - 4) == 'xlsx') { 209 210 var html = $(this).html(); 211 212 html = '<em style="color: #19af11" class="fa fa-file-excel-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 213 214 $(this).html(html); 215 $(this).attr("target", "_blank"); 216 } 217 else if (href.substring(href.length - 3) == 'doc' || href.substring(href.length - 4) == 'docx') { 218 219 var html = $(this).html(); 220 221 html = '<em style="color: #005aff" class="fa fa-file-word-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 222 223 $(this).html(html); 224 $(this).attr("target", "_blank"); 225 } 226 else if (href.substring(href.length - 3) == 'jpg') { 227 228 var html = $(this).html(); 229 230 html = '<em style="color: #d12ba0" class="fa fa-file-image-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 231 232 $(this).html(html); 233 $(this).attr("target", "_blank"); 234 } 235 else if ($(this).attr("target") == "_blank") { 236 237 var html = $(this).html(); 238 html += ' <span class="offset">× ×¤×ª× ××××× ××ש</span><em class="fa fa-external-link"></em>'; 239 $(this).html(html); 240 } 241 } 242 }); 243 244 $(".rich-content a.add-icon").each(function () { 245 var html = $(this).html(); 246 247 html = '<em style="color: blue" class="fa fa-link"></em> ' + html + ''; 248 249 $(this).html(html); 250 }); 251 }); 252 253 // Header Search 254 $(function () { 255 $(".header .search").click(function (e) { 256 e.preventDefault(); 257 258 $(".header-search").toggle("slow", function () { 259 if ($(this).is(":visible")) { 260 $("#q").focus(); 261 262 $(".header .search").attr("aria-expanded", true) 263 } 264 else { 265 $(".header .search").attr("aria-expanded", false) 266 } 267 }); 268 269 }); 270 271 $(".header-search button.close").click(function (e) { 272 e.preventDefault(); 273 $(".header-search").slideUp(); 274 $(".header .search").focus(); 275 }); 276 277 $("#q").autocomplete({ 278 source: function (request, response) { 279 var time = new Date().getTime(); 280 $.ajax({
281 url: "./?searchAutoComplete=1", 282 dataType: "json", 283 data: { 284 term: request.term, 285 time: time 286 }, 287 success: function (data) { 288 response(data.slice(0, 10)); 289 } 290 }); 291 }, 292 minLength: 2, 293 select: function (event, ui) { 294 if (ui.item.type == "location") { 295 296 var currentHash = window.location.hash; 297 298 var hashParams = getHashParams(); 299 300 hashParams['lat'] = ui.item.lat; 301 hashParams['lng'] = ui.item.lng; 302 hashParams['zoom'] = 14; 303 304 window.location.hash = createHashParamsString(hashParams); 305 } 306 else if (ui.item.type == "link") { 307 window.location = ui.item.link; 308 } 309 } 310 }); 311 }); 312}); 313 314 315/**/ 316 317$("#close-skip-ad").click(function (e) { 318 e.preventDefault(); 319 $(".skip-ad").fadeOut(); 320}); 321 322/**/ 323 324$("#print").click(function (e) { 325 e.preventDefault(); 326 window.print(); 327}); 328 329// in-page appointments 330$(function () { 331 332 if ($(".appointments").length > 0) { 333 334 $('head').append('<link href="content/appointments.css" type="text/css" rel="stylesheet" />'); 335 336 $.getScript("content/appointments.js", function (data, textStatus, jqxhr) { 337 338 }); 339 } 340}); 341 342// page phonebook 343$(".page-phonebook-category-title").click(function (e) { 344 345 e.preventDefault(); 346 347 $(this).parent().toggleClass("opened"); 348 349 var dest = "#q-" + $(this).data('id'); 350 351 $(dest).slideToggle(function () { 352 353 if ($(this).is(":visible")) { 354 $(this).focus(); 355 } 356 }); 357}); 358 359 360// skip ad accessibility 361 362$(".skip-ad").each(function () { 363 364 var focusableElements = "a[href]:not([tabindex='-1'])," + 365 "area[href]:not([tabindex='-1'])," + 366 "input:not([disabled]):not([tabindex='-1'])," + 367 "select:not([disabled]):not([tabindex='-1'])," + 368 "textarea:not([disabled]):not([tabindex='-1'])," + 369 "button:not([disabled]):not([tabindex='-1'])," + 370 "iframe:not([tabindex='-1'])," + 371 "[tabindex]:not([tabindex='-1'])," + 372 "[contentEditable=true]:not([tabindex='-1'])"; 373 374 375 $(this).find(focusableElements).first().focus(); 376 377 $(this).on('keydown', function (e) { 378 if (e.keyCode === 9) { 379 380 var firstTabStop = $(this).find(focusableElements).filter(":visible").not("[tabindex='-1']").first(); 381 var lastTabStop = $(this).find(focusableElements).filter(":visible").not("[tabindex='-1']").last(); 382 383 if (e.shiftKey) { 384 if ($(":focus").is(firstTabStop)) { 385 e.preventDefault(); 386 lastTabStop.focus(); 387 } 388 } else { 389 if ($(":focus").is(lastTabStop)) { 390 e.preventDefault(); 391 firstTabStop.focus(); 392 } 393 } 394 } 395 if (e.keyCode === 27) { 396 $(".mobile-navigation-close").trigger("click"); 397 } 398 }); 399}); 400 401 402 403$("#form-75").each(function () { 404 405 var updateCities = function () { 406 var religion_type = ""; 407 var region = ""; 408 409 $("input[name='c1728376518[]']:checked").each(function () { 410 religion_type += $(this).val() + ","; 411 }); 412 413 $("input[name='c95100[]']:checked").each(function () { 414 region += $(this).val() + ","; 415 }); 416 417 $("#c104100 span").remove(); 418 419 $.getJSON("kht.php?method=get_ext_form_cities&religion_type=" + religion_type + "®ion=" + region, function (data) { 420 421 $.each(data, function (key, name) { 422 423 424 $("#c104100").append(`<span class=""> <input type="checkbox" name="c104100[]" id="c104100-` + key + `" value="` + key + `"> <label for="c104100-` + key + `" class="d-inline">` + name + `</label></span>`); 425 }); 426 }); 427 }; 428 429 $.getJSON("kht.php?method=get_ext_form_html_by_step&t=2", function (data) { 430 console.log(data); 431 432 // ת×××× ×¢×ס××§ 433 434 $("#c1728299112").html(""); 435 436 $.each(data['prof_category_man'], function (key, name) { 437 438 $("#c1728299112").append(`<option value="` + key + `">` + name + `</option>`); 439 }); 440 441 // ×ש××× 442 443 $("#c41100").html(""); 444 445 $.each(data['mail_edu_list'], function (key, name) { 446 447 $("#c41100").append(`<option value="` + key + `">` + name + `</option>`); 448 }); 449 450 // ×××¤× ×××ש×× 451 452 $("#c1728376518 span").remove(); 453 454 $.each(data['city_religion_type_list'], function (key, name) { 455 456 if (key > 0) { 457 $("#c1728376518").append(`<span class=""> <input type="checkbox" name="c1728376518[]" id="c1728376518-` + key + `" value="` + key + `"> <label for="c1728376518-` + key + `" class="d-inline">` + name + `</label></span>`); 458 } 459 }); 460 461 // ×××ר ××××× 462 463 $("#c95100 span").remove(); 464 465 $.each(data['region_arr'], function (key, name) { 466 467 $("#c95100").append(`<span class=""> <input type="checkbox" name="c95100[]" id="c95100-` + key + `" value="` + key + `"> <label for="c95100-` + key + `" class="d-inline">` + name + `</label></span>`); 468 }); 469 470 // ××¦× ×שפ××ª× 471 472 $("#c44100").html(""); 473 474 $.each(data['family_status_list'], function (key, name) { 475 476 $("#c44100").append(`<option value="` + key + `">
476` + name + `</option>`); 477 }); 478 479 $("input[name='c1728376518[]'], input[name='c95100[]']").change(function () { 480 481 updateCities(); 482 }); 483 }); 484 485 $.getJSON("kht.php?method=get_ext_form_cities&t=2", function (data) { 486 console.log(data); 487 488 $("#c49100").html(""); 489 490 $.each(data, function (key, name) { 491 492 493 $("#c49100").append(`<option value="` + key + `">` + name + `</option>`); 494 }); 495 }); 496 497 498 499 500}); 501 502// page-gallery-slick 503$(function () { 504 $('.page-gallery-slick').slick({ 505 slidesToShow: 4, 506 slidesToScroll: 4, 507 dots: false, 508 infinite: false, 509 rtl: true, 510 arrows: true, 511 responsive: [ 512 { 513 breakpoint: 1200, 514 settings: { 515 slidesToShow: 3, 516 slidesToScroll: 1 517 } 518 }, 519 { 520 breakpoint: 992, 521 settings: { 522 slidesToShow: 2, 523 slidesToScroll: 1 524 } 525 }, 526 { 527 breakpoint: 600, 528 settings: { 529 slidesToShow: 1, 530 slidesToScroll: 1 531 } 532 } 533 ] 534 }); 535}); 536 537$('#nav-app').on('change', function () { 538 const url = $(this).val(); 539 540 if (url) { 541 window.open(url, '_blank'); // or window.location.href = url; 542 $(this).val(''); // reset back to "Select" 543 } 544}); 545 546 547 548 549// animate numbers 550$(window).scroll(testScroll); 551var viewed = false; 552 553function isScrolledIntoView(elem) { 554 var docViewTop = $(window).scrollTop() + 150; 555 var docViewBottom = docViewTop + $(window).height() + 150; 556 557 if (!$(elem).offset()) { 558 return 0; 559 } 560 var elemTop = $(elem).offset().top; 561 var elemBottom = elemTop + $(elem).height(); 562 563 return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); 564} 565 566function testScroll() { 567 if (isScrolledIntoView($(".numbers")) && !viewed) { 568 viewed = true; 569 $('.numbers em').each(function () { 570 var $this = $(this); 571 var countTo = parseInt($this.text().replace(/,/g, '')); 572 573 $this.prop('Counter', 0).animate({ 574 Counter: countTo 575 }, { 576 duration: 1200, 577 easing: 'swing', 578 step: function (now) { 579 $this.text(Math.ceil(now).toLocaleString()); 580 } 581 }); 582 }); 583 } 584} 585 586// edu.php page filtering by school 587$(document).ready(function () { 588 console.log('Category filter initialized'); 589 590 var $filterButtons = $('.category-filter-btn'); 591 console.log('Found buttons:', $filterButtons.length); 592 593 function filterByCategory(categoryId) { 594 console.log('Filtering by category:', categoryId); 595 596 // Update active button 597 $filterButtons.removeClass('active btn-primary').addClass('btn-outline-primary'); 598 599 // Add active to the clicked button 600 $filterButtons.filter('[data-category="' + categoryId + '"]') 601 .addClass('active btn-primary') 602 .removeClass('btn-outline-primary'); 603 604 // Filter facilities 605 var $facilityItems = $('.edu-facility-item'); 606 console.log('Total facilities:', $facilityItems.length); 607 608 if (categoryId === 'all') { 609 $facilityItems.show(); 610 } else { 611 $facilityItems.hide(); 612 $facilityItems.filter('[data-category="' + categoryId + '"]').show(); 613 } 614 } 615 616 $filterButtons.on('click', function () { 617 var categoryId = $(this).data('category'); 618 console.log('Clicked category:', categoryId); 619 620 // Update URL with parameter 621 var url = new URL(window.location); 622 if (categoryId === 'all') { 623 url.searchParams.delete('categoryid'); 624 } else { 625 url.searchParams.set('categoryid', categoryId); 626 } 627 window.history.pushState({}, '', url); 628 629 filterByCategory(categoryId); 630 }); 631 632 // Check for categoryid parameter on page load 633 var urlParams = new URLSearchParams(window.location.search); 634 var categoryIdParam = urlParams.get('categoryid'); 635 if (categoryIdParam) { 636 filterByCategory(categoryIdParam); 637 } 638});
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.