1// DOM Ready ============================================================= 2$(document).ready(function () { 3 4 var my_width = 0; 5 6 my_width = $(window).width(); 7 8 var show_text = "Test"; 9 10 var mouse_on = 0; 11 12 var box_left = 0; 13 var box_top = 0; 14 15 var menu_state = 0; 16 17 var menu_state_mobile = 0; 18 var menu_state_mobile_main = 0; 19 20 var menu_all_tabs_mobile = 0; 21 22 var all_lang_click = 0; 23 var all_lang_click_desktop = 0; 24 25 var menu_state_greetings_mobile = 0; 26 var menu_state_prophecy_mobile = 0; 27 var menu_state_holyfeasts_mobile = 0; 28 var menu_state_torah_mobile = 0; 29 var menu_state_hebrew_mobile = 0; 30 var menu_state_teaching_mobile = 0; 31 var menu_state_find_mobile = 0; 32 var menu_state_salvation_mobile = 0; 33 34 function getPosition(el) { 35 var xPos = 0; 36 var yPos = 0; 37 38 while (el) { 39 if (el.tagName == "BODY") { 40 // deal with browser quirks with body/window/document and page scroll 41 var xScroll = el.scrollLeft || document.documentElement.scrollLeft; 42 var yScroll = el.scrollTop || document.documentElement.scrollTop; 43 44 xPos += (el.offsetLeft - xScroll + el.clientLeft); 45 yPos += (el.offsetTop - yScroll + el.clientTop); 46 } else { 47 // for all other non-BODY elements 48 xPos += (el.offsetLeft - el.scrollLeft + el.clientLeft); 49 yPos += (el.offsetTop - el.scrollTop + el.clientTop); 50 } 51 52 el = el.offsetParent; 53 } 54 return { 55 x: xPos, 56 y: yPos 57 }; 58 } 59 60 function ScrollIntoPos(element_id) { 61 var myElement = document.querySelector(element_id); 62 var pos = getPosition(myElement); 63 64 window.scroll({ 65 top: pos.y + 40, 66 left: 0, 67 behavior: 'smooth' 68 }); 69 } 70 71 function disableScroll() { 72 if (window.addEventListener) // older FF 73 window.addEventListener('DOMMouseScroll', preventDefault, false); 74 window.onwheel = preventDefault; // modern standard 75 window.onmousewheel = document.onmousewheel = preventDefault; // older browsers, IE 76 window.ontouchmove = preventDefault; // mobile 77 document.onkeydown = preventDefaultForScrollKeys; 78 } 79 80 function enableScroll() { 81 if (window.removeEventListener) 82 window.removeEventListener('DOMMouseScroll', preventDefault, false); 83 window.onmousewheel = document.onmousewheel = null; 84 window.onwheel = null; 85 window.ontouchmove = null; 86 document.onkeydown = null; 87 } 88 89 $('body').mousemove(function () { 90 if (menu_state != 1 && menu_state != 2 && 91 menu_state != 11 && menu_state != 12 && 92 menu_state != 21 && menu_state != 22 && 93 menu_state != 31 && menu_state != 32 && 94 menu_state != 41 && menu_state != 42 && 95 menu_state != 51 && menu_state != 52 && 96 menu_state != 61 && menu_state != 62) { 97 hideAllMenus(); 98 } 99 }); 100 101 function resetMenuMobile() { 102 103 if (menu_state_mobile == menu_state_mobile_main) { 104 //Keep menu state if not changed 105 } 106 else { 107 108 //Greetings 109 if (menu_state_mobile_main == 1) { 110 $(".menu_item_line_greetings_mobile").css({ height: 85 }); 111 $(".menu_box_greetings_mobile").css({ "visibility": "hidden" }); 112 } 113 114 //Prophecy 115 if (menu_state_mobile_main == 2) { 116 $(".menu_item_line_prophecy_mobile").css({ height: 85 }); 117 $(".menu_box_prophecy_mobile").css({ "visibility": "hidden" }); 118 } 119 120 //Holy Feasts 121 if (menu_state_mobile_main == 3) { 122 $(".menu_item_line_holyfeasts_mobile").css({ height: 85 }); 123 $(".menu_box_holyfeasts_mobile").css({ "visibility": "hidden" }); 124 } 125 126 //Torah Portion 127 if (menu_state_mobile_main == 4) { 128 $(".menu_item_line_greetings_mobile").css({ height: 85 }); 129 $(".menu_box_greetings_mobile").css({ "visibility": "hidden" }); 130 $(".menu_item_line_prophecy_mobile").css({ height: 85 }); 131 $(".menu_box_prophecy_mobile").css({ "visibility": "hidden" }); 132 $(".menu_item_line_holyfeasts_mobile").css({ height: 85 }); 133 $(".menu_box_holyfeasts_mobile").css({ "visibility": "hidden" }); 134 $(".menu_item_line_hebrew_mobile").css({ height: 85 }); 135 $(".menu_box_hebrew_mobile").css({ "visibility": "hidden" }); 136 $(".menu_item_line_teaching_mobile").css({ height: 85 }); 137 $(".menu_box_teaching_mobile").css({ "visibility": "hidden" }); 138 $(".menu_item_line_find_mobile").css({ height: 85 }); 139 $(".menu_box_find_mobile").css({ "visibility": "hidden" }); 140 $(".menu_item_line_salvation_mobile").css({ height: 85 }); 141 $(".menu_box_salvation_mobile").css({ "visibility": "hidden" }); 142 } 143 144 //Hebrew 145 if (menu_state_mobile_main == 5) { 146 $(".menu_item_line_hebrew_mobile").css({ height: 85 }); 147 $(".menu_box_hebrew_mobile").css({ "visibility": "hidden" }); 148 } 149 150 //Teachings 151 if (menu_state_mobile_main == 6) { 152 $(".menu_item_line_teaching_mobile").css({ height: 85 }); 153 $(".menu_box_teaching_mobile").css({ "visibility": "hidden" }); 154 } 155 156 //Find 157 if (menu_state_mobile_main == 7) { 158 $(".menu_item_line_find_mobile").css({ height: 85 }); 159 $(".menu_box_find_mobile").css({ "visibility": "hidden" }); 160 } 161 162 //Salvation 163 if (menu_state_mobile_main == 8) { 164 $(".menu_item_line_salvation_mobile").css({ height: 85 }); 165 $(".menu_box_salvation_mobile").css({ "visibility": "hidden" }); 166 } 167 168 } 169 } 170 171 function hideAllMenus() { 172 //alert("hide"); 173 $("#menu_box_id_greetings").css({ opacity: 0 }); 174 $("#menu_box_id_greetings").css({ left: -1000 }); 175 $("#menu_box_id_prophetic").css({ opacity: 0 }); 176 $("#menu_box_id_prophetic").css({ left: -1000 }); 177 $("#menu_box_id_holyfeasts").css({ opacity: 0 }); 178 $("#menu_box_id_holyfeasts").css({ left: -1000 }); 179 $("#menu_box_id_hebrew").css({ opacity: 0 }); 180 $("#menu_box_id_hebrew").css({ left: -1000 }); 181 $("#menu_box_id_teachings").css({ opacity: 0 }); 182 $("#menu_box_id_teachings").css({ left: -1000 }); 183 $("#menu_box_id_find").css({ opacity: 0 }); 184 $("#menu_box_id_find").css({ left: -1000 }); 185 $("#menu_box_id_deliverance").css({ opacity: 0 }); 186 $("#menu_box_id_deliverance").css({ left: -1000 }); 187 } 188 189 function hideAllMenus_mobile() { 190 $(".menu_item_line_greetings_mobile").css({ height: 0 }); 191 $(".menu_item_line_prophecy_mobile").css({ height: 0 }); 192 $(".menu_item_line_holyfeasts_mobile").css({ height: 0 }); 193 $(".menu_item_line_torah_mobile").css({ height: 0 }); 194 $(".menu_item_line_hebrew_mobile").css({ height: 0 }); 195 $(".menu_item_line_teaching_mobile").css({ height: 0 }); 196 $(".menu_item_line_find_mobile").css({ height: 0 }); 197 $(".menu_item_line_salvation_mobile").css({ height: 0 }); 198 $(".menu_box_greetings_mobile").css({ "visibility": "hidden" }); 199 $(".menu_box_prophecy_mobile").css({ "visibility": "hidden" }); 200 $(".menu_box_holyfeasts_mobile").css({ "visibility": "hidden" }); 201 $(".menu_box_hebrew_mobile").css({ "visibility": "hidden" }); 202 $(".menu_box_teaching_mobile").css({ "visibility": "hidden" }); 203 $(".menu_box_find_mobile").css({ "visibility": "hidden" }); 204 $(".menu_box_salvation_mobile").css({ "visibility": "hidden" }); 205 } 206 207 function hideMenuBoxes_mobile() { 208 $(".menu_box_greetings_mobile").css({ "visibility": "hidden" }); 209 $(".menu_box_prophecy_mobile").css({ "visibility": "hidden" }); 210 $(".menu_box_holyfeasts_mobile").css({ "visibility": "hidden" }); 211 $(".menu_box_hebrew_mobile").css({ "visibility": "hidden" }); 212 $(".menu_box_teaching_mobile").css({ "visibility": "hidden" }); 213 $(".menu_box_find_mobile").css({ "visibility": "hidden" }); 214 $(".menu_box_salvation_mobile").css({ "visibility": "hidden" }); 215 $(".menu_box_greetings_mobile").css({ height: 0 }); 216 $(".menu_box_prophecy_mobile").css({ height: 0 }); 217 $(".menu_box_holyfeasts_mobile").css({ height: 0 }); 218 $(".menu_box_hebrew_mobile").css({ height: 0 }); 219 $(".menu_box_teaching_mobile").css({ height: 0 }); 220 $(".menu_box_find_mobile").css({ height: 0 }); 221 $(".menu_box_salvation_mobile").css({ height: 0 }); 222 $(".menu_item_line_greetings_mobile").css({ height: 85 }); 223 $(".menu_item_line_prophecy_mobile").css({ height: 85 }); 224 $(".menu_item_line_holyfeasts_mobile").css({ height: 85 }); 225 $(".menu_item_line_hebrew_mobile").css({ height: 85 }); 226 $(".menu_item_line_teaching_mobile").css({ height: 85 }); 227 $(".menu_item_line_find_mobile").css({ height: 85 }); 228 $(".menu_item_line_salvation_mobile").css({ height: 85 }); 229 } 230 231 function showAllMenus_mobile() { 232 $(".menu_item_line_greetings_mobile").css({ height: 85 }); 233 $(".menu_item_line_prophecy_mobile").css({ height: 85 }); 234 $(".menu_item_line_holyfeasts_mobile").css({ height: 85 }); 235 $(".menu_item_line_torah_mobile").css({ height: 85 }); 236 $(".menu_item_line_hebrew_mobile").css({ height: 85 }); 237 $(".menu_item_line_teaching_mobile").css({ height: 85 }); 238 $(".menu_item_line_find_mobile").css({ height: 85 }); 239 $(".menu_item_line_salvation_mobile").css({ height: 85 }); 240 //$(".menu_box_greetings_mobile").css({"visibility": "visible"}); 241 //$(".menu_box_prophecy_mobile").css({"visibility": "visible"}); 242 //$(".menu_box_hebrew_mobile").css({"visibility": "visible"}); 243 //$(".menu_box_teaching_mobile").css({"visibility": "visible"}); 244 //$(".menu_box_find_mobile").css({"visibility": "visible"}); 245 //$(".menu_box_salvation_mobile").css({"visibility": "visible"}); 246 } 247 248 249 250 $(".all-languages-right-div").click(function () { 251 //window.scrollTo(0,0); 252 $(".all_languages_div").fadeToggle(); 253 254 if (all_lang_click_desktop == 0) { 255 all_lang_click_desktop = 1; 256 $(".all-languages-right-div").css({ "z-index": "2210" }); 257 $("#menu_main_all_mobile").css({ "height": "150" }); 258 $("#menu_main_all_mobile").css({ "z-index": "2200" }); 259 $("#overlaywingR").css({ "visibility": "hidden" }); 260 $("#overlaywingL").css({ "visibility": "hidden" }); 261 } else { 262 all_lang_click_desktop = 0; 263 $(".all-languages-right-div").css({ "z-index": "10" }); 264 $("#menu_main_all_mobile").css({ "height": "150" }); 265 $("#menu_main_all_mobile").css({ "z-index": "10" }); 266 $("#overlaywingR").css({ "visibility": "visible" }); 267 $("#overlaywingL").css({ "visibility": "visible" }); 268 } 269 270 }); 271 $(".all-languages-right-div-mobile").click(function () { 272 //window.scrollTo(0,0); 273 $(".all_languages_div").fadeToggle(); 274 275 if (all_lang_click == 0) { 276 all_lang_click = 1; 277 $("#menu_main_all_mobile").css({ "height": "150" }); 278 $("#menu_main_all_mobile").css({ "z-index": "2200" }); 279 } else { 280 all_lang_click = 0; 281 $("#menu_main_all_mobile").css({ "height": "150" }); 282 $("#menu_main_all_mobile").css({ "z-index": "10" }); 283 } 284 285 }); 286 287 //MENU ALL TABS MOBILE
288 $('.scroll_btn_body').on('click', function () { 289 290 if (menu_all_tabs_mobile == 0) { 291 292 showAllMenus_mobile(); 293 294 $(".menu_all_tabs_mobile").css({ "visibility": "visible" }); 295 296 menu_all_tabs_mobile = 1; 297 $(".all-languages-right-div").css({ "z-index": "10" }); 298 $(".all-languages-right-div-mobile").css({ "visibility": "hidden" }); 299 300 $("#menu_main_all_mobile").css({ "height": "150" }); 301 $("#menu_main_all_mobile").css({ "z-index": "2200" }); 302 303 document.querySelector('#menu_id_greetings_mobile').scrollIntoView({ 304 behavior: 'smooth' 305 }); 306 307 if (all_lang_click == 1) { 308 var link = document.getElementById('all-languages-right-div-mobile-id'); 309 link.click(); 310 } 311 312 } else { 313 $(".menu_all_tabs_mobile").css({ "visibility": "hidden" }); 314 menu_all_tabs_mobile = 0; 315 $(".all-languages-right-div").css({ "z-index": "2200" }); 316 $(".all-languages-right-div-mobile").css({ "visibility": "visible" }); 317 $("#menu_main_all_mobile").css({ "height": "160" }); 318 $("#menu_main_all_mobile").css({ "z-index": "10" }); 319 hideAllMenus_mobile(); 320 hideMenuBoxes_mobile(); 321 } 322 323 }); 324 325 //GREETINGS MOBILE 326 $('#menu_id_greetings_mobile').on('click', function () { 327 328 // menu_state_prophecy_mobile = 0; 329 // menu_state_hebrew_mobile = 0; 330 // menu_state_teaching_mobile = 0; 331 // menu_state_find_mobile = 0; 332 // menu_state_salvation_mobile = 0; 333 334 // //hideAllMenus_mobile(); 335 // hideMenuBoxes_mobile(); 336 337 menu_state_mobile = 1; 338 339 $(".menu_item_line_greetings_mobile").css({ height: "auto" }); 340 $(".menu_box_greetings_mobile").css({ "visibility": "visible" }); 341 342 resetMenuMobile(); 343 344 menu_state_mobile_main = 1; 345 346 // if (menu_state_greetings_mobile == 0) { 347 348 // menu_state_greetings_mobile = 1; 349 350 // $(".menu_item_line_greetings_mobile").css({height:336}); 351 352 // $(".menu_box_greetings_mobile").css({"visibility": "visible"}); 353 354 // // document.querySelector('#menu_id_greetings_mobile').scrollIntoView({ 355 // // behavior: 'smooth' 356 // // }); 357 358 // //ScrollIntoPos("#menu_id_greetings_mobile"); 359 360 // } else { 361 362 // menu_state_greetings_mobile = 0; 363 364 // $(".menu_box_greetings_mobile").css({"visibility": "hidden"}); 365 // $(".menu_item_line_greetings_mobile").css({height:85}); 366 367 // //ScrollIntoPos("#menu_id_greetings_mobile"); 368 // } 369 370 }); 371 372 //PROPHECY MOBILE 373 $('#menu_id_prophecy_mobile').on('click', function () { 374 375 menu_state_mobile = 2; 376 377 $(".menu_item_line_prophecy_mobile").css({ height: "auto" }); 378 $(".menu_box_prophecy_mobile").css({ "visibility": "visible" }); 379 380 resetMenuMobile(); 381 382 menu_state_mobile_main = 2; 383 384 // menu_state_greetings_mobile = 0; 385 // menu_state_hebrew_mobile = 0; 386 // menu_state_teaching_mobile = 0; 387 // menu_state_find_mobile = 0; 388 // menu_state_salvation_mobile = 0; 389 390 // //hideAllMenus_mobile(); 391 // hideMenuBoxes_mobile(); 392 393 // if (menu_state_prophecy_mobile == 0) { 394 395 // menu_state_prophecy_mobile = 1; 396 397 // $(".menu_item_line_prophecy_mobile").css({height:226}); 398 // $(".menu_box_prophecy_mobile").css({"visibility": "visible"}); 399 400 // //ScrollIntoPos("#menu_id_prophecy_mobile"); 401 402 // } else { 403 404 // menu_state_prophecy_mobile = 0; 405 406 // $(".menu_box_prophecy_mobile").css({"visibility": "hidden"}); 407 // $(".menu_item_line_prophecy_mobile").css({height:85}); 408 409 // //ScrollIntoPos("#menu_id_prophecy_mobile"); 410 // } 411 412 }); 413 414 //HOLY FEASTS MOBILE 415 $('#menu_id_holyfeasts_mobile').on('click', function () { 416 417 menu_state_mobile = 3; 418 419 $(".menu_item_line_holyfeasts_mobile").css({ height: "auto" }); 420 $(".menu_box_holyfeasts_mobile").css({ "visibility": "visible" }); 421 422 resetMenuMobile(); 423 424 menu_state_mobile_main = 3; 425 426 // menu_state_greetings_mobile = 0; 427 // menu_state_hebrew_mobile = 0; 428 // menu_state_teaching_mobile = 0; 429 // menu_state_find_mobile = 0; 430 // menu_state_salvation_mobile = 0; 431 432 // //hideAllMenus_mobile(); 433 // hideMenuBoxes_mobile(); 434 435 // if (menu_state_prophecy_mobile == 0) { 436 437 // menu_state_prophecy_mobile = 1; 438 439 // $(".menu_item_line_prophecy_mobile").css({height:226}); 440 // $(".menu_box_prophecy_mobile").css({"visibility": "visible"}); 441 442 // //ScrollIntoPos("#menu_id_prophecy_mobile"); 443 444 // } else { 445 446 // menu_state_prophecy_mobile = 0; 447 448 // $(".menu_box_prophecy_mobile").css({"visibility": "hidden"}); 449 // $(".menu_item_line_prophecy_mobile").css({height:85}); 450 451 // //ScrollIntoPos("#menu_id_prophecy_mobile"); 452 // } 453 454 }); 455 456 //TORAH MOBILE 457 $('#menu_id_torah_mobile').on('click', function () { 458 459 // menu_state_greetings_mobile = 0; 460 // menu_state_prophecy_mobile = 0; 461 // menu_state_hebrew_mobile = 0; 462 // menu_state_teaching_mobile = 0; 463 // menu_state_find_mobile = 0; 464 // menu_state_salvation_mobile = 0; 465 466 // hideAllMenus_mobile(); 467 468 menu_state_mobile = 4; 469 470 resetMenuMobile(); 471 472 menu_state_mobile_main = 4; 473 474 }); 475 476 //HEBREW NAMES MOBILE 477 $('#menu_id_hebrew_mobile').on('click', function () { 478 479 menu_state_mobile = 5; 480 481 $(".menu_item_line_hebrew_mobile").css({ height: "auto" }); 482 $(".menu_box_hebrew_mobile").css({ "visibility": "visible" }); 483 484 resetMenuMobile(); 485 486 menu_state_mobile_main = 5; 487 488 // menu_state_greetings_mobile = 0; 489 // menu_state_prophecy_mobile = 0; 490 // menu_state_teaching_mobile = 0; 491 // menu_state_find_mobile = 0; 492 // menu_state_salvation_mobile = 0; 493 494 // //hideAllMenus_mobile(); 495 // hideMenuBoxes_mobile(); 496 497 // if (menu_state_hebrew_mobile == 0) { 498 499 // menu_state_hebrew_mobile = 1; 500 501 // $(".menu_item_line_hebrew_mobile").css({height:213}); 502 // $(".menu_box_hebrew_mobile").css({"visibility": "visible"}); 503 504 // //ScrollIntoPos("#menu_id_hebrew_mobile"); 505 506 // } else { 507 508 // menu_state_hebrew_mobile = 0; 509 510 // $(".menu_box_hebrew_mobile").css({"visibility": "hidden"}); 511 // $(".menu_item_line_hebrew_mobile").css({height:85}); 512 513 // //ScrollIntoPos("#menu_id_hebrew_mobile"); 514 515 // } 516 517 }); 518 519 //TEACHINGS MOBILE 520 $('#menu_id_teaching_mobile').on('click', function () { 521 522 menu_state_mobile = 6; 523 524 $(".menu_item_line_teaching_mobile").css({ height: "auto" }); 525 $(".menu_box_teaching_mobile").css({ "visibility": "visible" }); 526 527 resetMenuMobile(); 528 529 menu_state_mobile_main = 6; 530 531 // menu_state_prophecy_mobile = 0; 532 // menu_state_hebrew_mobile = 0; 533 // menu_state_greetings_mobile = 0; 534 // menu_state_find_mobile = 0; 535 // menu_state_salvation_mobile = 0; 536 537 // //hideAllMenus_mobile(); 538 // hideMenuBoxes_mobile(); 539 540 // if (menu_state_teaching_mobile == 0) { 541 542 // menu_state_teaching_mobile = 1; 543 544 // $(".menu_item_line_teaching_mobile").css({height:385}); 545 // $(".menu_box_teaching_mobile").css({"visibility": "visible"}); 546 547 // ScrollIntoPos("#menu_id_teaching_mobile"); 548 549 // } else { 550 551 // menu_state_teaching_mobile = 0; 552 553 // $(".menu_box_teaching_mobile").css({"visibility": "hidden"}); 554 // $(".menu_item_line_teaching_mobile").css({height:85}); 555 556 // ScrollIntoPos("#menu_id_teaching_mobile"); 557 558 // } 559 560 }); 561 562 //FIND YOUR WAY MOBILE 563 $('#menu_id_find_mobile').on('click', function () { 564 565 menu_state_mobile = 7; 566 567 $(".menu_item_line_find_mobile").css({ height: "auto" }); 568 $(".menu_box_find_mobile").css({ "visibility": "visible" }); 569 570 resetMenuMobile(); 571 572 menu_state_mobile_main = 7; 573 574 // menu_state_prophecy_mobile = 0; 575 // menu_state_hebrew_mobile = 0; 576 // menu_state_teaching_mobile = 0; 577 // menu_state_greetings_mobile = 0; 578 // menu_state_salvation_mobile = 0; 579 580 // //hideAllMenus_mobile(); 581 // hideMenuBoxes_mobile(); 582 583 // if (menu_state_find_mobile == 0) { 584 585 // menu_state_find_mobile = 1; 586 587 // $(".menu_item_line_find_mobile").css({height:458}); 588 // $(".menu_box_find_mobile").css({"visibility": "visible"}); 589 590 // //ScrollIntoPos("#menu_id_find_mobile"); 591 592 // //document.getElementById("menu_id_find_mobile").scrollIntoView(); 593 594 // $('html, body').animate({ 595 // scrollTop: $("#menu_id_find_mobile").offset().top 596 // }, 2000); 597 598 // } else { 599 600 // menu_state_find_mobile = 0; 601 602 // $(".menu_box_find_mobile").css({"visibility": "hidden"}); 603 // $(".menu_item_line_find_mobile").css({height:85}); 604 605 // //ScrollIntoPos("#menu_id_find_mobile"); 606 // //document.getElementById("menu_id_find_mobile").scrollIntoView(); 607 608 // $('html, body').animate({ 609 // scrollTop: $("#menu_id_find_mobile").offset().top 610 // }, 2000); 611 612 // } 613 614 }); 615 616 //SALVATION MOBILE
617 $('#menu_id_salvation_mobile').on('click', function () { 618 619 menu_state_mobile = 8; 620 621 $(".menu_item_line_salvation_mobile").css({ height: "auto" }); 622 $(".menu_box_salvation_mobile").css({ "visibility": "visible" }); 623 624 resetMenuMobile(); 625 626 menu_state_mobile_main = 8; 627 628 // menu_state_prophecy_mobile = 0; 629 // menu_state_hebrew_mobile = 0; 630 // menu_state_teaching_mobile = 0; 631 // menu_state_greetings_mobile = 0; 632 // menu_state_find_mobile = 0; 633 634 // //hideAllMenus_mobile(); 635 // hideMenuBoxes_mobile(); 636 637 // if (menu_state_salvation_mobile == 0) { 638 639 // menu_state_salvation_mobile = 1; 640 641 // $(".menu_item_line_salvation_mobile").css({height:183}); 642 643 // //$(".menu_box_salvation_mobile").css({height:280}); 644 645 // $(".menu_box_salvation_mobile").css({"visibility": "visible"}); 646 647 // ScrollIntoPos("#menu_id_salvation_mobile"); 648 649 // } else { 650 651 // menu_state_salvation_mobile = 0; 652 653 // $(".menu_box_salvation_mobile").css({"visibility": "hidden"}); 654 // $(".menu_item_line_salvation_mobile").css({height:85}); 655 656 // //$(".menu_box_salvation_mobile").css({height:0}); 657 658 // ScrollIntoPos("#menu_id_salvation_mobile"); 659 660 // } 661 662 }); 663 664 //GREETINGS 665 $('#menu_id_greetings').mouseenter(function () { 666 var $this = $(this); 667 668 $this 669 .addClass('active') 670 .find('div') 671 .slideDown(500, 'easeOutExpo'); 672 }).mouseleave(function () { 673 674 var $this = $(this); 675 $this 676 .removeClass('active') 677 .find('div') 678 .slideUp(500, 'easeOutExpo'); 679 }); 680 681 $('#menu_id_greetings').on('mousemove', function () { 682 683 hideAllMenus(); 684 685 menu_state = 1; 686 687 box_left = $('#menu_id_greetings').offset().left; 688 box_top = $('#menu_id_greetings').offset().top-30; 689 $("#menu_box_id_greetings").css({ top: box_top, left: box_left, position: 'absolute' }); 690 $("#menu_box_id_greetings").css({ opacity: 1 }); 691 692 693 }); 694 695 $('#menu_box_id_greetings').on('mousemove', function () { 696 697 menu_state = 2; 698 }); 699 700 $('#menu_box_id_greetings').on('mouseleave', function () { 701 menu_state = 0; 702 }); 703 704 $('#menu_id_greetings').on('mouseleave', function () { 705 menu_state = 0; 706 }); 707 708 //PROPHECIES 709 $('#menu_id_prophecies').on('mousemove', function () { 710 711 hideAllMenus(); 712 713 menu_state = 11; 714 715 box_left = $('#menu_id_prophecies').offset().left; 716 box_top = $('#menu_id_prophecies').offset().top-30; 717 $("#menu_box_id_prophetic").css({ top: box_top, left: box_left, position: 'absolute' }); 718 $("#menu_box_id_prophetic").css({ opacity: 1 }); 719 }); 720 721 $('#menu_box_id_prophetic').on('mousemove', function () { 722 menu_state = 12; 723 }); 724 725 $('#menu_box_id_prophetic').on('mouseleave', function () { 726 menu_state = 0; 727 }); 728 729 $('#menu_id_prophecies').on('mouseleave', function () { 730 menu_state = 0; 731 }); 732 733 //HOLY FEASTS 734 $('#menu_id_holyfeasts').on('mousemove', function () { 735 736 hideAllMenus(); 737 738 menu_state = 61; 739 740 box_left = $('#menu_id_holyfeasts').offset().left; 741 box_top = $('#menu_id_holyfeasts').offset().top-30; 742 $("#menu_box_id_holyfeasts").css({ top: box_top, left: box_left, position: 'absolute' }); 743 $("#menu_box_id_holyfeasts").css({ opacity: 1 }); 744 }); 745 746 $('#menu_box_id_holyfeasts').on('mousemove', function () { 747 menu_state = 62; 748 }); 749 750 $('#menu_box_id_holyfeasts').on('mouseleave', function () { 751 menu_state = 0; 752 }); 753 754 $('#menu_id_holyfeasts').on('mouseleave', function () { 755 menu_state = 0; 756 }); 757 758 //TORAH 759 $('#menu_id_torah').on('mousemove', function () { 760 }); 761 762 //HEBREW NAMES 763 $('#menu_id_hebrew').on('mousemove', function () { 764 765 hideAllMenus(); 766 767 menu_state = 21; 768 769 box_left = $('#menu_id_hebrew').offset().left; 770 box_top = $('#menu_id_hebrew').offset().top-30; 771 $("#menu_box_id_hebrew").css({ top: box_top, left: box_left, position: 'absolute' }); 772 773 if (my_width > 1024) { 774 $("#menu_box_id_hebrew").css({ top: box_top, left: box_left, position: 'absolute' }); 775 } else { 776 if (my_width > 691) { 777 $("#menu_box_id_hebrew").css({ top: box_top, left: box_left - 200, position: 'absolute' }); 778 } else { 779 $("#menu_box_id_hebrew").css({ top: box_top, left: box_left - 100, position: 'absolute' }); 780 } 781 } 782 783 if (my_width > 691) { 784 785 } else { 786 //$("#menu_box_id_hebrew").css({top:125, left: box_left, position:'absolute'}); 787 } 788 $(".menu_box_top_menu").css({ opacity: 1 }); 789 }); 790 791 $('#menu_box_id_hebrew').on('mousemove', function () { 792 menu_state = 22; 793 }); 794 795 $('#menu_box_id_hebrew').on('mouseleave', function () { 796 menu_state = 0; 797 }); 798 799 $('#menu_id_hebrew').on('mouseleave', function () { 800 menu_state = 0; 801 }); 802 803 //TEACHINGS 804 $('#menu_id_teachings').on('mousemove', function () { 805 806 hideAllMenus(); 807 808 menu_state = 31; 809 810 box_top = $('#menu_id_teachings').offset().top - 30; 811 box_left = $('#menu_id_teachings').offset().left; 812 813 if (my_width > 1100) { 814 $("#menu_box_id_teachings").css({ top: box_top, left: box_left, position: 'absolute' }); 815 } else { 816 if (my_width > 691) { 817 $("#menu_box_id_teachings").css({ top: box_top, left: box_left - 200, position: 'absolute' }); 818 } else { 819 $("#menu_box_id_teachings").css({ top: box_top, left: box_left - 100, position: 'absolute' }); 820 } 821 } 822 823 $("#menu_box_id_teachings").css({ opacity: 1 }); 824 }); 825 826 $('#menu_box_id_teachings').on('mousemove', function () { 827 menu_state = 32; 828 }); 829 830 $('#menu_box_id_teachings').on('mouseleave', function () { 831 menu_state = 0; 832 }); 833 834 $('#menu_id_teachings').on('mouseleave', function () { 835 menu_state = 0; 836 }); 837 838 //FIND YOUR WAY 839 $('#menu_id_find_your_way').on('mousemove', function () { 840 841 hideAllMenus(); 842 843 menu_state = 41; 844 845 box_left = $('#menu_id_find_your_way').offset().left; 846 box_top = $('#menu_id_find_your_way').offset().top - 30; 847 if (my_width > 1300) { 848 $("#menu_box_id_find").css({ top: box_top, left: box_left, position: 'absolute' }); 849 } else { 850 if (my_width > 1040) { 851 $("#menu_box_id_find").css({ top: box_top, left: box_left - 200, position: 'absolute' }); 852 } else { 853 $("#menu_box_id_find").css({ top: box_top, left: box_left, position: 'absolute' }); 854 } 855 } 856 $("#menu_box_id_find").css({ opacity: 1 }); 857 }); 858 859 $('#menu_box_id_find').on('mousemove', function () { 860 menu_state = 42; 861 }); 862 863 $('#menu_box_id_find').on('mouseleave', function () { 864 menu_state = 0; 865 }); 866 867 $('#menu_id_find_your_way').on('mouseleave', function () { 868 menu_state = 0; 869 }); 870 871 //DELIVERANCE 872 $('#menu_id_deliverance').on('mousemove', function () { 873 874 hideAllMenus(); 875 876 menu_state = 51; 877 878 box_left = $('#menu_id_deliverance').offset().left; 879 box_top = $('#menu_id_deliverance').offset().top - 40; 880 if (my_width > 1400) { 881 $("#menu_box_id_deliverance").css({ top: box_top, left: box_left - 300, position: 'absolute' }); 882 } else { 883 if (my_width > 1040) { 884 $("#menu_box_id_deliverance").css({ top: box_top, left: box_left - 200, position: 'absolute' }); 885 } else { 886 $("#menu_box_id_deliverance").css({ top: box_top, left: box_left, position: 'absolute' }); 887 } 888 } 889 $("#menu_box_id_deliverance").css({ opacity: 1 }); 890 891 }); 892 893 $('#menu_box_id_deliverance').on('mousemove', function () { 894 menu_state = 52; 895 }); 896 897 $('#menu_box_id_deliverance').on('mouseleave', function () { 898 menu_state = 0; 899 }); 900 901 $('#menu_id_deliverance').on('mouseleave', function () { 902 menu_state = 0; 903 }); 904 905}); 906
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.