PageSourceSearch

https://www.federtamburellolivescore.it/js_v5122/front-end/wall.js

js federtamburellolivescore.it collected 2026-09-29 01:29:36 UTC 6,480 bytes, 166 lines download raw bytes

1var shift;
2
3$(document).ready(function(){
4    $("abbr.timeago").timeago();
5    textarea('textarea-reply',20,9);
6    textarea('textarea-post',20,9);
7    $(document).on('keydown', ".textarea-reply", function(e) {
8        if(e.keyCode==16){
9            shift = true;
10        }
11        if(e.keyCode==13 && !shift){
12            var formdata= $(this).parent("form").serialize();
13            var $boxthread = $(this).closest('.box-thread');
14            if($boxthread.find("textarea[name=text]").val()!=""){
15                $.ajax({
16                    type: "POST",
17                    async: false,
18                    url: URL_W_MASTER+"system/include/ajax/public/common.php",
19                    data: formdata+"&op=7",
20                    success: function(response){
21                        var obj = $.parseJSON(response);                    
22                        if(!obj.logged){
23                            suggestionFeedback("registration",false,"","reply");
24                        }else{
25                            var obj = $.parseJSON(response);                    
26                            if(!obj.errors){
27                                $boxthread.find("textarea[name=text]").val("");
28                                $boxthread.find(".write-reply").before(obj.reply)                        
29                                $boxthread.find("abbr.timeago").timeago();
30                                if($("#"+$boxthread.attr("id")+" .social-panel .n-reply").length > 0){
31                                    $("#"+$boxthread.attr("id")+" .social-panel .n-reply").html("<div class='icon'></div>"+(parseInt($("#"+$boxthread.attr("id")+" .social-panel .n-reply").text())+1));
32                                }
33                            }else{
34                                alertFeedback(obj.errors);
35                            }
36                        }
37                    }
38                });
39            }
40            return(false);            
41        }
42    });
43    $(document).on('keyup', ".textarea-reply,.textarea-post", function(e) {
44        if(e.keyCode==16){
45            shift = false;
46        }
47    });  
48    
49    $(document).on('keydown', ".textarea-post", function(e) {
50        if(e.keyCode==16){
51            shift = true;
52        }
53        if(e.keyCode==13 && !shift){
54            var formdata = $(this).closest("form").serialize();            
55            var $form = $(this).closest("form");
56            
57            $form.append('<img class=\"loading\" src="'+URL_W_MASTER+'tpl/img/loading.gif" />');
58            
59            if($form.find("textarea[name=text]").val()!=""){
60                setTimeout(function(){
61                    $.ajax({
62                        type: "POST",
63                        async: false,
64                        url: URL_W_MASTER+"system/include/ajax/public/common.php",
65                        data: formdata+"&op=9",
66                        success: function(response){	
67                            $form.find('.loading').remove();
68                            var obj = $.parseJSON(response);
69                            if(!obj.logged){
70                                suggestionFeedback("registration",false,"","post");
71                            }else{
72                                if(!obj.errors){
73                                    $form.find("textarea[name=text]").val("");
74                                    $(".posts-container").prepend(obj.post);
75                                    textarea('textarea-reply',20,9);
76                                    $("abbr.timeago").timeago();
77                                    textarea('textarea-post',20,9);
78                                }else{
79                                    alertFeedback(obj.errors);
80                                }
81                            }
82                        }
83                    });
84                },500);
85            }
86            return(false);            
87        }
88    });
89});
90
91function textarea(classe,h,exs){
92    if($('textarea.'+classe).length > 0){        
93        $('textarea.'+classe).autoResize({
94            minHeight: h,
95            extraSpace: exs
96        });
97    }
98}
99
100function more_reply(pwid,lp){
101    $.ajax({
102        type: "POST",
103        async: false,
104        url: URL_W_MASTER+"system/include/ajax/public/common.php",
105        data: "op=8&pwid="+pwid+"&lp="+lp,
106        success: function(response){	
107            var obj = jQuery.parseJSON(response);
108            if(!obj.errors){
109                $("#more_reply_"+pwid).after(obj.reply);
110                $("#more_reply_"+pwid).replaceWith(obj.more);
111                $("abbr.timeago").timeago();
112            }else{
113                alertFeedback(obj.errors)
114            }
115        }
116    });
117}
118
119function more_post(entity,lp,id,container,type){
120    var idName;
121    if(entity === "league"){
122        idName = "lid";
123    }else if(entity === "tournament"){
124        idName = "tid";
125    }else{
126        idName = "id";
127    }
128    var container_ID = "";
129    if(container !== ''){
130        container_ID = "#"+container+" ";
131    }
132    if(lp === 0){
133        $(container_ID+".box-thread").remove();
134    }
135    $(container_ID+".show-more-container").css("display","block");
136    $(container_ID+".show-more-container").empty().html('<img src="'+URL_W_MASTER+'tpl/img/loading.gif" />');
137    setTimeout(function(){
138        $.ajax({
139            type: "POST",
140            async: false,
141            url: URL_W_MASTER+"system/include/ajax/public/common.php",
142            data: "op=13&entity="+entity+"&lp="+lp+"&"+idName+"="+id+"&container="+container+"&type="+type,
143            success: function(response){	
144                var obj = jQuery.parseJSON(response);
145                if(!obj.errors){
146                    $(container_ID+".show-more-container").before(obj.post);
147                    if(obj.more == ""){
148                        $(container_ID+".show-more-container").css("display","none");
149                    }else{
150                        $(container_ID+".show-more-container").empty().html(obj.more);
151                    }
152                    $("abbr.timeago").timeago();
153                    textarea('textarea-reply',20,9);
154                }else{
155                    alertFeedback(obj.errors)
156                }
157            }
158        });
159    },500);
160}
161
162function show_more_text(postID,el){
163    var container = ($(el).closest("p"));
164    $(container).children(".text_exposed").css("display","none");
165    $(container).children(".text_complete").css("display","inline");
166}

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.