PageSourceSearch

https://alwataniyaschool.edu.kw/schools/alwataniyaschool_edu/assets/js/p-scripts.js

js alwataniyaschool.edu.kw collected 2026-10-02 01:04:25 UTC 4,687 bytes, 154 lines download raw bytes

1let rtlCheck0 = false;
2function mobCloseParentMenu(){
3    if(rtlCheck0 == true){
4        $('.p-aside-inner-wrapper').delay(0).animate({right: '-100%'}, 1000);
5    }else{
6        $('.p-aside-inner-wrapper').delay(0).animate({left: '-100%'}, 1000);
7    }
8    setTimeout(function(){
9        $('#p-aside').fadeOut(500);
10    }, 100);
11}
12function toggleSearch(){
13    $('div.p-head-item.head-search-form').slideToggle();
14}
15
16function mobOpenParentMenu(){
17    setTimeout(function(){
18        $('#p-aside').fadeIn(500);
19    }, 100);
20    if(rtlCheck0 == true){
21        $('.p-aside-inner-wrapper').delay(0).animate({right: '0'}, 1000);
22    }else{
23        $('.p-aside-inner-wrapper').delay(0).animate({left: '0'}, 1000);
24    }
25}
26
27// function chatItemClick(e) {
28//     document.querySelectorAll(".chat-item").forEach(function (item) {
29//       item.classList.remove("active");
30//     });
31//     e.classList.add("active");
32//     if (window.innerWidth <= 767.98) {
33//       $(".chats-list").fadeOut();
34//       $(".chat-messages").fadeIn();
35//     }
36// }
37
38function chatFns(){
39    if ($("#chat-mob-back-btn")) {
40        $("#chat-mob-back-btn").click(function (e) {
41          e.preventDefault();
42          e.stopPropagation();
43          $(".chat-messages").fadeOut();
44          $(".chats-list").fadeIn();
45        });
46    }
47    if ($(".chat-user-toggle")) {
48        $(".chat-user-toggle").click(function (e) {
49          e.preventDefault();
50          e.stopPropagation();
51          $(".chat-user-actions").slideToggle();
52        });
53    }
54    if ($("#userActionsToggler")) {
55        $("#userActionsToggler").click(function () {
56          $("#user-actions").slideToggle();
57        });
58    }
59}
60
61$(document).ready(function () {
62    if($('body').hasClass('rtl')){
63        rtlCheck0 = true;
64    }
65    chatFns();
66    
67    $('body').on('click', function(e){
68        if($(window).innerWidth() < 992){
69            if($(e.target).closest('.head-search-form').length == 0 && $(e.target).closest('.head-search-icon').length == 0){
70                $('.head-search-form').slideUp();
71            }
72            if($(e.target).closest('.p-aside-inner-wrapper').length == 0 && $(e.target).closest('#p-navbar-toggler-lnk').length == 0){
73                mobCloseParentMenu();
74            }    
75        }
76    });
77
78    
79    $(".chat-item").click(function() {
80        $(".chat-item").not($(this)).removeClass('active');
81        $(this).addClass("active");
82        if (window.innerWidth <= 767.98) {
83            if(rtlCheck0 == true){
84                $('.chat-container-inner').delay(0).animate({right: '-100%'}, 1000);
85            }else{
86                $('.chat-container-inner').delay(0).animate({left: '-100%'}, 1000);
87            }
88        }
89    });
90    $("#back-to-chats-btn").click(function() {
91        if (window.innerWidth <= 767.98) {
92            if(rtlCheck0 == true){
93                $('.chat-container-inner').delay(0).animate({right: '0'}, 1000);
94            }else{
95                $('.chat-container-inner').delay(0).animate({left: '0'}, 1000);
96            }
97        }
98    });
99    
100
101    $('[data-toggle="tooltip"]').tooltip();
102    
103    $(".file-upload-field").on("change", function () {
104        let val = $(this).val();
105        val = val.replace(/.*(\/|\\)/, "");
106        $(".file-upload-wrapper label .file-txt").text(val);
107    });
108    
109    $("#p-profile").click(function(){
110        // alert('clicked');
111        $('#p-profile-modal').modal('show');
112    });
113    $(".collapse-head").click(function(){
114        $(".collapse-body").slideToggle();
115        $(".collapse-blk").toggleClass('active');
116    });
117
118
119    $('.dropdown-trigger').on('click', function(){
120        $('.dropdown-list').not($(this).closest('.dropdown-blk').find('.dropdown-list')).slideUp();
121        $(this).closest('.dropdown-blk').find('.dropdown-list').slideToggle();
122    });
123
124    $('body').on('click', function(e){
125        if($(e.target).closest('.dropdown-blk').length == 0){
126            $('.dropdown-list').slideUp();
127        }
128    });
129
130    $('#p-toggle-aside').on ('click', function(){
131        $("#main-content").toggleClass('hide-aside');
132    });
133
134    $('#openEditPass').click(function(){
135        $('#editPassBlk').slideToggle();
136    });
137
138});
139
140var clickEvent;
141if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))){ 
142    clickEvent = 'touchstart';
143}else{
144    clickEvent = 'click';
145}
146$(document).on(clickEvent, '.attach-blk-btn', function(){
147    $(this).closest('.attach-blk').find('.attach-blk-inner').slideToggle();
148}); 
149
150$(document).on('change','.attach-upload', function(){
151    let val = $(this).val();
152    val = val.replace(/.*(\/|\\)/, "");
153    $(this).closest(".attach-blk").find(".form-control").text(val);
154});

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.