PageSourceSearch

https://agmetroquadro.it/js/app.js

js agmetroquadro.it collected 2026-10-02 01:03:58 UTC 7,565 bytes, 231 lines download raw bytes

1$(window).load(function() {
2    setTimeout(function () {
3        $(".page_loader").fadeOut("fast");
4    }, 100)
5});
6
7// WOW Initialization
8wow = new WOW(
9    {
10        animateClass: 'animated',
11        offset:       100,
12        mobile: false
13    }
14);
15wow.init();
16
17// Banner slider
18(function( $ ) {
19    //Function to animate slider captions
20    function doAnimations( elems ) {
21        //Cache the animationend event in a variable
22        var animEndEv = 'webkitAnimationEnd animationend';
23        elems.each(function () {
24            var $this = $(this),
25                $animationType = $this.data('animation');
26            $this.addClass($animationType).one(animEndEv, function () {
27                $this.removeClass($animationType);
28            });
29        });
30    }
31    //Variables on page load
32    var $myCarousel = $('#carousel-example-generic'),
33        $firstAnimatingElems = $myCarousel.find('.item:first').find("[data-animation ^= 'animated']");
34
35    //Initialize carousel
36    $myCarousel.carousel();
37
38    //Animate captions in first slide on page load
39    doAnimations($firstAnimatingElems);
40
41    //Pause carousel
42    $myCarousel.carousel('pause');
43
44    //Other slides to be animated on carousel slide event
45    $myCarousel.on('slide.bs.carousel', function (e) {
46        var $animatingElems = $(e.relatedTarget).find("[data-animation ^= 'animated']");
47        doAnimations($animatingElems);
48    });
49    $('#carousel-example-generic').carousel({
50        interval:3000,
51        pause: "false"
52    });
53
54})(jQuery);
55
56// Page scroller.
57$.scrollUp({
58    scrollName: 'page_scroller',
59    scrollDistance: 300,
60    scrollFrom: 'top',
61    scrollSpeed: 500,
62    easingType: 'linear',
63    animation: 'fade',
64    animationSpeed: 200,
65    scrollTrigger: false,
66    scrollTarget: false,
67    scrollText: '<i class="fa fa-chevron-up"></i>',
68    scrollTitle: false,
69    scrollImg: false,
70    activeOverlay: false,
71    zIndex: 2147483647
72});
73
74// Counter
75function isCounterElementVisible($elementToBeChecked)
76{
77    var TopView = $(window).scrollTop();
78    var BotView = TopView + $(window).height();
79    var TopElement = $elementToBeChecked.offset().top;
80    var BotElement = TopElement + $elementToBeChecked.height();
81    return ((BotElement <= BotView) && (TopElement >= TopView));
82}
83
84$(window).scroll(function () {
85    $( ".counter" ).each(function() {
86        isOnView = isCounterElementVisible($(this));
87        if(isOnView && !$(this).hasClass('Starting')){
88            $(this).addClass('Starting');
89            $(this).prop('Counter',0).animate({
90                Counter: $(this).text()
91            }, {
92                duration: 3000,
93                easing: 'swing',
94                step: function (now) {
95                    $(this).text(Math.ceil(now));
96                }
97            });
98        }
99    });
100});
101
102// Range Sliders
103$(".range-slider-ui").each(function () {
104    var minValue = $(this).attr('data-min');
105    var maxValue = $(this).attr('data-max');
106
107    var ValueFrom = $(this).attr('data-from');    
108    if (ValueFrom == null) {
109        ValueFrom = minValue;
110    };
111
112    var ValueTo = $(this).attr('data-to');
113    if (ValueTo == null) {
114        ValueTo = maxValue;
115    };
116
117    var unit = $(this).attr('data-unit');
118    
119    $(this).append("<input type='text' class='min-value' disabled/><input type='text' class='max-value' disabled/>");
120    $(this).slider({
121        range: true,
122        min: minValue,
123        max: maxValue,
124        values: [parseInt(ValueFrom), parseInt(ValueTo)],
125        slide: function (event, ui) {
126            event = event;
127            $(this).children(".min-value").val( ui.values[0].toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") +" "+ unit);
128            $(this).children(".max-value").val(ui.values[1].toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") + " " + unit);
129            document.getElementById("HfSliderMin").value = ui.values[0].toString();
130            document.getElementById("HfSliderMax").value = ui.values[1].toString();
131            
132        
133            //$(this).attr('minvalue').val(ui.values[0].toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") + " " + unit);
134            //$(this).attr('maxvalue').val(ui.values[1].toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") + " " + unit);
135        }
136    });
137    $(this).children(".min-value").val( $(this).slider("values", 0).toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")+" "+ unit);
138    $(this).children(".max-value").val($(this).slider("values", 1).toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") + " " + unit);
139    document.getElementById("HfSliderMin").value = $(this).slider("values", 0).toString();
140    document.getElementById("HfSliderMax").value = $(this).slider("values", 1).toString();
141    //$(this).attr('minvalue').val($(this).slider("values", 0).toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") + " " + unit);
142    //$(this).attr('maxvalue').val($(this).slider("values", 1).toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") + " " + unit);
143
144});
145
146// Select picket
147$('.selectpicker').selectpicker();
148
149// Search option's icon toggle
150$('.search-options-btn').click(function () {
151    $('.search-contents').toggleClass('show-search-area');
152    $('.search-options-btn .fa').toggleClass('fa-chevron-down');
153});
154
155(function(){
156    $('#ourPartners').carousel({ interval: 3600 });
157}());
158
159(function(){
160    $('.our-partners .item').each(function(){
161        var itemToClone = $(this);
162        for (var i=1;i<4;i++) {
163            itemToClone = itemToClone.next();
164            if (!itemToClone.length) {
165                itemToClone = $(this).siblings(':first');
166            }
167            itemToClone.children(':first-child').clone()
168                .addClass("cloneditem-"+(i))
169                .appendTo($(this));
170        }
171    });
172}());
173
174// Background video playing script
175$(document).ready(function () {
176    $(".player").mb_YTPlayer();
177});
178
179// Multilevel menuus
180$('[data-submenu]').submenupicker();
181
182// Expending/Collapsing advance search content
183$('.show-more-options').click(function () {
184    if($(this).find('.fa').hasClass('fa-minus-circle'))
185    {
186        $(this).find('.fa').removeClass('fa-minus-circle');
187        $(this).find('.fa').addClass('fa-plus-circle');
188    }
189    else{
190        $(this).find('.fa').removeClass('fa-plus-circle');
191        $(this).find('.fa').addClass('fa-minus-circle');
192    }
193});
194
195// Implementing mCustomScrollbar
196$(".map-content-sidebar").mCustomScrollbar(
197    {theme:"minimal-dark"}
198);
199
200var windowHeight = $( window ).height();
201$('#map').css('height', windowHeight);
202if(windowHeight > 500)
203{
204    $('.map-content-sidebar').css('height', windowHeight);
205}
206$('.map-content-sidebar').css('height', windowHeight);
207
208var videoWidth = $('.properties-details-section').width();
209videoHeight = videoWidth * .61;
210$('.properties-details-section iframe').css('height', videoHeight);
211
212function changeColorSchema(name) {
213    $('link[id="style_sheet"]').attr('href', 'css/skins/'+name+'.css');
214    if(name == 'default'){
215        $('.logo img').attr('src', 'img/logos/logo.png');
216    }
217    else{
218        $('.logo img').attr('src', 'img/logos/'+name+'-logo.png');
219    }
220}
221
222function togglePanel() {
223    $('.option-panel').toggleClass('option-panel-collased');
224}
225
226Dropzone.autoDiscover = false;
227$(function() {
228    $("div#myDropZone").dropzone({
229        url : "/file-upload"
230    });
231});

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.