PageSourceSearch

https://nablus.org/modules/mod_adhambanner/js/init.js

js nablus.org collected 2026-10-02 10:55:26 UTC 2,044 bytes, 77 lines download raw bytes

1/**
2 * Created by Alex on 6/1/2016.
3 */
4
5function recaptchaCallback(){
6
7    $('.btn-send-message').removeAttr('disabled');
8
9}
10function recapatchaExpired(){
11
12    $('.btn-send-message').attr('disabled');
13
14}
15
16$(document).ready(function(){
17
18
19
20
21
22    $('#modal_contact').on('show.bs.modal', function() {
23        $('.btn-send-message').removeClass("hidden");
24        $('.btn-close').addClass("hidden");
25    });
26
27
28    $("#searchword").keyup(function(event){
29
30   
31          $(".searchbox").attr('action','component/search/'+$('#searchword').val());
32
33        if(event.keyCode == 13){
34         
35            //$("#id_of_button").click();
36        }
37    });
38
39
40
41
42    $('.btn-send-message').click(function(e){
43
44
45        e.preventDefault();
46
47             var sender_name= $('#sender-name').val();
48        var sender_phone= $('#sender-phone').val();
49         var sender_email= $('#sender-email').val();
50        var message_text= $('#message-text').val();
51        var challenge= $('textarea [name="recaptcha_challenge_field"]').val();
52
53        $(this).html("<i class='fa fa-refresh fa-spin'></i> جاري الارسال");
54
55    //    $('#contact_form').ajaxForm({ url: "../../modules/mod_adhambanner/contact.php"});
56
57
58
59        $.ajax({
60            type: "POST",
61            url: "../../modules/mod_adhambanner/contact.php",
62            data: "sender_name=" + sender_name + "&sender_phone=" + sender_phone+ "&sender_email=" + sender_email  + "&msg=" + message_text + "&g-recaptcha-response=" + grecaptcha.getResponse()
63        }).done(function(status) {
64            $(this).html("ارسال");
65
66            if (status == "ok") {
67                // slide down the "ok" message to the user
68               $('.status').html("لقد تم ارسال الرسالة بنجاح");
69                $('.btn-send-message').html("ارسال");
70                $('.btn-send-message').addClass("hidden");
71                $('.btn-close').removeClass("hidden");
72            }
73        });
74
75    });
76
77});

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.