1$(document).scroll(function () { 2 if ($(document).scrollTop() == 0) { 3 $(".header").removeClass("offset"); 4 } else { 5 $(".header").addClass("offset"); 6 } 7}); 8 9$(document).ready(function () { 10 11 // Table Of Contents 12 $(".toc-toggle a").click(function (e) { 13 e.preventDefault(); 14 15 $(this).parents(".toc-container").toggleClass("active"); 16 $(this).parents(".toc-container").find(".toc-expendable").toggle("slow"); 17 }); 18 19 $("#toc").toc({ 20 content: ".rich-content", 21 headings: "h2,h3,h4,h5" 22 }); 23 24 // Sticky Content 25 jQuery('.sticky-content').theiaStickySidebar({ 26 additionalMarginTop: 70 27 }); 28 29 // Toggle Mobile Menu 30 31 $(function () { 32 33 $(".header .navigation .on").parents("li").addClass("on"); 34 35 36 }); 37 38 39 // header nav 40 41 $(".header nav a").each(function () { 42 43 var href = $(this).attr("href"); 44 45 if ($(this).attr("target") == "_blank") { 46 47 var html = $(this).html(); 48 html += ' <span class="offset">× ×¤×ª× ××××× ××ש</span><em class="fa fa-external-link"></em>'; 49 $(this).html(html); 50 } 51 }); 52 53 54 $(">li", ".header nav ul").focusin(function () { 55 if ($(window).width() >= 992) { 56 $(this).siblings().children("ul").hide(); 57 $(this).children("ul").show(); 58 } 59 }); 60 61 // Mobile Navigation 62 $(function () { 63 64 var addToggleButtons = function () { 65 $(".mobile-navigation nav li").each(function () { 66 var className = 'no-sub-menu'; 67 if ($(this).find("ul").length > 0) { 68 className = ''; 69 } 70 if ($(this).find("a").first().attr("target") == "_blank") { 71 className = 'external-link'; 72 } 73 $(this).find("span").first().prepend('<button class="toggle-sub-menu ' + className + '"></button>'); 74 }); 75 76 $(".mobile-navigation nav li .toggle-sub-menu").click(function () { 77 if ($(this).hasClass("no-sub-menu")) { 78 var href = $(this).parent().parent().find("a").attr("href"); 79 $(this).parent().find("a")[0].click(); 80 } else { 81 $(this).toggleClass("opened"); 82 $(this).parent().parent().find("ul").first().slideToggle(); 83 } 84 }); 85 }; 86 87 $(".mobile-navigation-close").click(function () { 88 $(".mobile-navigation").removeClass("open"); 89 }); 90 91 $(".toggle-nav").click(function (e) { 92 e.preventDefault(); 93 94 //$(".mobile-navigation").toggleClass("open").attr("tabindex", "-1").focus(); 95 $(".mobile-navigation").toggleClass("open").attr("tabindex", "1").focus(); 96 97 }); 98 99 addToggleButtons(); 100 }); 101 102 103 104 // Rich Content Links Icons 105 $(function () { 106 $(".rich-content a").each(function () { 107 108 if (!$(this).parent().hasClass("gallery") && $(this).parents(".magnificPopup-gallery").length == 0 && !$(this).hasClass("magnificPopup-picture")) { 109 110 var href = $(this).attr("href"); 111 112 if (href) { 113 if (href.substring(href.length - 3) == 'pdf') { 114 115 var html = $(this).html(); 116 117 html = '<em style="color: #df1818" class="fa fa-file-pdf-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 118 119 $(this).html(html); 120 $(this).attr("target", "_blank"); 121 } else if (href.substring(href.length - 3) == 'xls' || href.substring(href.length - 4) == 'xlsx') { 122 123 var html = $(this).html(); 124 125 html = '<em style="color: #19af11" class="fa fa-file-excel-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 126 127 $(this).html(html); 128 $(this).attr("target", "_blank"); 129 } else if (href.substring(href.length - 3) == 'doc' || href.substring(href.length - 4) == 'docx') { 130 131 var html = $(this).html(); 132 133 html = '<em style="color: #005aff" class="fa fa-file-word-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 134 135 $(this).html(html); 136 $(this).attr("target", "_blank"); 137 } else if (href.substring(href.length - 3) == 'jpg') { 138 139 var html = $(this).html(); 140 141 html = '<em style="color: #d12ba0" class="fa fa-file-image-o"></em> ' + html + '<span class="offset"> × ×¤×ª× ××××× ××ש</span>'; 142 143 $(this).html(html); 144 $(this).attr("target", "_blank"); 145 } else if ($(this).attr("target") == "_blank") { 146 147 var html = $(this).html(); 148 html += ' <span class="offset">× ×¤×ª× ××××× ××ש</span><em class="fa fa-external-link"></em>'; 149 $(this).html(html); 150 } 151 } 152 } 153 }); 154 155 $(".rich-content a.add-icon").each(function () { 156 var html = $(this).html(); 157 158 html = '<em style="color: blue" class="fa fa-link"></em> ' + html + ''; 159 160 $(this).html(html); 161 }); 162 }); 163 164 // Header Search 165 $(function () { 166 $("a.search").click(function (e) { 167 e.preventDefault(); 168 169 $(".header-search").slideToggle(function () { 170 if ($(this).is(":visible")) { 171 $("#q").focus(); 172 } 173 }); 174 175 }); 176 177 $(".header-search button.close").click(function (e) { 178 e.preventDefault();
179 $(".header-search").slideUp(); 180 $(".header .search").focus(); 181 }); 182 183 $("#q").autocomplete({ 184 source: function (request, response) { 185 var time = new Date().getTime(); 186 $.ajax({ 187 url: "./?searchAutoComplete=1", 188 dataType: "json", 189 data: { 190 term: request.term, 191 time: time 192 }, 193 success: function (data) { 194 response(data.slice(0, 10)); 195 } 196 }); 197 }, 198 minLength: 2, 199 select: function (event, ui) { 200 if (ui.item.type == "location") { 201 202 var currentHash = window.location.hash; 203 204 var hashParams = getHashParams(); 205 206 hashParams['lat'] = ui.item.lat; 207 hashParams['lng'] = ui.item.lng; 208 hashParams['zoom'] = 14; 209 210 window.location.hash = createHashParamsString(hashParams); 211 } else if (ui.item.type == "link") { 212 window.location = ui.item.link; 213 } 214 } 215 }); 216 }); 217}); 218 219 220/**/ 221 222$("#close-skip-ad").click(function (e) { 223 e.preventDefault(); 224 $(".skip-ad").fadeOut(); 225}); 226 227/**/ 228 229$("#print").click(function (e) { 230 e.preventDefault(); 231 window.print(); 232}); 233 234 235 236/* */ 237 238$(function () { 239 240 function loadComments() { 241 242 if (typeof comments_key !== 'undefined') { 243 244 $("#comments").load("./comments/?key=" + comments_key, function () { 245 246 $(".delete-comment").click(function (e) { 247 e.preventDefault(); 248 249 var href = $(this).attr("href"); 250 251 $.getJSON(href, function (response) { 252 if (response.success == '1') { 253 alert("×ת×××× × ×××§× ××צ×××!"); 254 $("#comment-" + response.id).fadeOut(); 255 } else { 256 alert(response.error); 257 } 258 }); 259 }); 260 261 }); 262 } 263 } 264 265 $("#post-comment-form").ajaxForm({ 266 dataType: 'json', 267 success: function (response) { 268 $("#post-comment-form").hide(); 269 $("#comment-posted").show().focus(); 270 if (response.success == '1') { 271 $("#post-comment-form").hide(); 272 $("#comment-posted").show().focus(); 273 274 loadComments(); 275 } else { 276 alert(response.error); 277 $("#comment-textarea").focus(); 278 } 279 } 280 }); 281 282 loadComments(); 283}); 284 285 286// ××פס ר×ש×× ×¢×¡×§×× 287$("#form-60").each(function () { 288 289 var SugiBakashaField = "#c77100"; 290 291 // Sugi bakasha 292 $(SugiBakashaField).html(""); 293 $(SugiBakashaField).append('<option value="">××ר</option>'); 294 295 var getSugiBikoretApiUrl = "./lola_tech_api.php?method=getReasons"; 296 297 $.getJSON(getSugiBikoretApiUrl, function (data) { 298 $.each(data, function (i, array) { 299 $(SugiBakashaField).append('<option value="' + array['code'] + '">' + array['descrip'] + '</option>'); 300 }); 301 }); 302 303 304 var getProfessionsApiUrl = "./lola_tech_api.php?method=getProfessions"; 305 var professions = []; 306 307 $.getJSON(getProfessionsApiUrl, function (data) { 308 console.log(data); 309 professions = data; 310 311 312 313 $(".row-c78100 table tbody tr td:nth-child(1)").each(function () { 314 315 var $input = $(this).find("input"); 316 317 var selectHtml = ''; 318 319 selectHtml += '<select class="form-control professions-select" name="' + $input.attr("name") + '" id="' + $input.attr("id") + '">'; 320 professions.forEach(function (v) { 321 selectHtml += '<option value="' + v['id'] + '">'; 322 selectHtml += v['text']; 323 selectHtml += '</option>'; 324 }); 325 selectHtml += '</select>'; 326 327 $input.remove(); 328 $(this).append(selectHtml); 329 330 }); 331 332 $(".row-c78100 table tbody tr td:nth-child(1)").each(function () { 333 $(this).find("input").attr("readonly", true); 334 }); 335 336 $(".professions-select").change(function () { 337 338 $(this).parent().next().find("input").val($(this).val()); 339 }); 340 341 342 }); 343 344 345 var getBaalStatusApiUrl = "./lola_tech_api.php?method=getBaalStatus"; 346 var baalStatus = []; 347 348 $.getJSON(getBaalStatusApiUrl, function (data) { 349 console.log(data); 350 baalStatus = data; 351 352 $(".row-c52100 table tbody tr td:nth-child(3)").each(function () { 353 354 var $input = $(this).find("input"); 355 356 var selectHtml = ''; 357 358 selectHtml += '<select class="form-control baal-status-select" name="' + $input.attr("name") + '" id="' + $input.attr("id") + '">';
359 baalStatus.forEach(function (v) { 360 selectHtml += '<option value="' + v['code'] + '">'; 361 selectHtml += v['descrip']; 362 selectHtml += '</option>'; 363 }); 364 selectHtml += '</select>'; 365 366 $input.remove(); 367 $(this).append(selectHtml); 368 369 }); 370 371 372 }); 373}); 374 375 376 377 378 379 380 381 382$(function () { 383 384 $(".services-toggle-btn").click(function () { 385 console.log('click'); 386 // opens window 387 $(this).toggleClass("active"); 388 $(".services-sidebar").toggleClass("active"); 389 }); 390 391 392 $(".services-sidebar .categories input").change(function () { 393 394 var categoryId = $(this).val(); 395 396 $(".category-icons").hide(); 397 398 $(".category-icons-" + categoryId).show(); 399 }); 400 401}); 402 403$(".services-category-btn").click(function (e) { 404 405 e.preventDefault(); 406 407 if ($(this).not('.active')) { 408 $(this).parent().find(".services-category-btn.active").removeClass("active"); 409 $(this).addClass('active'); 410 } 411 412 $(".services-category-item").hide(); 413 414 var category = $(this).data("category"); 415 416 $("#category_" + category).show().css("display", "flex"); 417 $("#category_" + category).addClass("active"); 418}); 419/*news*/ 420/* News newsTicker*/ 421 422$.getScript("assets/jquery.newsTicker.js", function (data, textStatus, jqxhr) { 423 424 var row_height = 22; 425 426 if ($(window).width() <= 991) { 427 row_height = 50; 428 } 429 430 $('.news-ticker').newsTicker({ 431 direction: 'up', 432 duration: 5000, 433 max_rows: 1, 434 pauseOnHover: 1, 435 row_height: row_height, 436 speed: 800, 437 prevButton: $('.news .prev'), 438 nextButton: $('.news .next'), 439 stopButton: $('.news .stop'), 440 startButton: $('.news .start'), 441 stop: function () { 442 $('.news .stop').hide(); 443 $('.news .start').show(); 444 }, 445 start: function () { 446 $('.news .stop').show(); 447 $('.news .start').hide(); 448 } 449 }); 450}); 451 452 453$('.trigger_nagish').on('click', function (e) { 454 e.preventDefault(); 455 $('.bNagish-toggle').trigger('click'); 456}) 457 458$(".intrested-in button").click(function () { 459 460 $(".intrested-in").toggleClass("active"); 461 462 if ($(".intrested-in").hasClass("active")) { 463 $(".intrested-in button").html('ס××ר <em class="fa fa-angle-up"></em>'); 464 } 465 else { 466 $(".intrested-in button").html('×× × ××¢×× ××× <em class="fa fa-angle-down"></em>'); 467 } 468}); 469 470$('#closeBthn').on("keydown", function (event) { 471 if (event.keyCode == 13 || event.which == 13) { 472 $('#bthn').remove(); 473 } 474}); 475 476$(".mobile-soc > a:last-child").on("keydown", function (event) { 477 if (event.keyCode == 9 || event.which == 9) { 478 $('.mobile-navigation .content').focus(); 479 } 480}) 481 482 483$('.herum-news-toggle').click(function () { 484 $(".herum-news-up-marquee").marquee('toggle'); 485 $(this).html() == '<i class="fa fa-play" aria-hidden="true"></i>' ? $(this).html('<i class="fa fa-pause" aria-hidden="true"></i>') : $(this).html('<i class="fa fa-play" aria-hidden="true"></i>'); 486}); 487 488$('.herum-news-toggle').on("keydown", function (e) { 489 if (e.keyCode == 13) { 490 $(".herum-news-up-marquee").marquee('toggle'); 491 $(this).html() == '<i class="fa fa-play" aria-hidden="true"></i>' ? $(this).html('<i class="fa fa-pause" aria-hidden="true"></i>') : $(this).html('<i class="fa fa-play" aria-hidden="true"></i>'); 492 } 493});
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.