PageSourceSearch

https://www.gruppospeleosavonese.it/pluginAppObj/pluginAppObj_52/main.js

js gruppospeleosavonese.it collected 2026-10-03 00:50:09 UTC 2,374 bytes, 66 lines download raw bytes

1function socialicons_pluginAppObj_52() {
2    
3    var containerWidth;
4    var btnWidth;
5    var btnHeight;
6    var btnMargin;
7    var numBtn; 
8    
9    x5engine.boot.push(function(){
10        
11        btnWidth = 50;
12        btnHeight = 50;
13        btnMargin = 0;
14        numBtn = $("#pluginAppObj_52 .social-icon").length;
15        
16        $('#imContent').on('breakpointChangedOrFluid', function (e, breakpoint) {
17            resizeSocials_pluginAppObj_52();
18        });
19        resizeSocials_pluginAppObj_52();
20    });
21
22       function resizeSocials_pluginAppObj_52() {
23           
24           /*reset margins*/
25           $("#pluginAppObj_52 .social-icon").removeClass("last-item-row");
26           $("#pluginAppObj_52 .social-icon").removeClass("last-row");
27           $("#pluginAppObj_52 .social-icon").removeClass("one-row");
28                 
29           containerWidth = $('#pluginAppObj_52').width();
30           
31           var buttonPerRow = 1;
32           if("horizontal" === "horizontal")
33                buttonPerRow = getButtonPerRow();
34               
35           if(buttonPerRow == 1){
36               $("#pluginAppObj_52 .social-icon:last-child").addClass("last-row");
37           }
38           else if(numBtn == buttonPerRow){
39               $("#pluginAppObj_52 .social-icon").addClass("last-row");
40               $("#pluginAppObj_52 .social-icon:last-child").addClass("last-item-row");  
41            }
42           else{
43               $("#pluginAppObj_52 .social-icon:nth-child(" + buttonPerRow + "n)").addClass("last-item-row");
44               $("#pluginAppObj_52 .social-icon:nth-child(n+" + parseInt(buttonPerRow+1) + ")").addClass("last-row");
45           }
46             
47           var fact = containerWidth < btnWidth ? containerWidth / btnWidth : 1;
48           $('#pluginAppObj_52 .social-icon, #pluginAppObj_52 .sides-container').css({
49               width: btnWidth * fact,
50               height: btnHeight * fact
51           });
52       }
53
54        function getButtonPerRow() {
55            var remaining = containerWidth - btnWidth;
56            var count = 1;
57            while (remaining >= btnWidth + (count == numBtn-1 ? 0 : btnMargin)) {
58                count++;
59                if(count == numBtn)
60                    break;
61                
62                remaining -= btnWidth + btnMargin;
63            }           
64            return count;
65        }
66}

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.