PageSourceSearch

https://www.aviosuperficieastigiana.it/wp-content/plugins/wpvr/public/js/wpvr-public.js?ver=8.5.62

js aviosuperficieastigiana.it collected 2026-10-02 22:02:15 UTC 4,345 bytes, 126 lines download raw bytes

1(function($) {
2    'use strict';
3
4    /**
5     * All of the code for your public-facing JavaScript source
6     * should reside in this file.
7     *
8     * Note: It has been assumed you will write jQuery code here, so the
9     * $ function reference has been prepared for usage within the scope
10     * of this function.
11     *
12     * This enables you to define handlers, for when the DOM is ready:
13     *
14     * $(function() {
15     *
16     * });
17     *
18     * When the window is loaded:
19     *
20     * $( window ).load(function() {
21     *
22     * });
23     *
24     * ...and/or other possibilities.
25     *
26     * Ideally, it is not considered best practise to attach more than a
27     * single DOM-ready or window-load handler for a particular page.
28     * Although scripts in the WordPress core, Plugins and Themes may be
29     * practising this, we should strive to set a better example in our own work.
30     */
31
32})(jQuery);
33function wpvrhotspot(hotSpotDiv, hotspotData) {
34    const args = hotspotData.on_click_content;
35
36    if (args) {
37        const hasTextContent = args.replace(/<[^>]*>/g, '').trim() !== '';
38        const hasMediaContent = /<(img|video|audio|iframe|embed|object)\b[^>]*>/i.test(args);
39        const hasOtherContent = args.replace(/<(p|br|div|span)\b[^>]*\/?>/gi, '').trim() !== '';
40
41        if (hasTextContent || hasMediaContent || hasOtherContent) {
42            const cleanArgs = args.replace(/\\/g, '');
43
44            const $wrapper = jQuery(hotSpotDiv.target).parent().siblings(".custom-ifram-wrapper");
45            $wrapper.find('.custom-ifram').html(cleanArgs);
46            $wrapper.fadeIn();
47            jQuery(hotSpotDiv.target).closest(".pano-wrap").addClass("show-modal");
48        }
49    }
50}
51
52function wpvrtooltip(hotSpotDiv, args) {
53    if (args) {
54        const hasTextContent = args.replace(/<[^>]*>/g, '').trim() !== '';
55        const hasMediaContent = /<(img|video|audio|iframe|embed|object)\b[^>]*>/i.test(args);
56        const hasOtherContent = args.replace(/<(p|br|div|span)\b[^>]*\/?>/gi, '').trim() !== '';
57
58        if (hasTextContent || hasMediaContent || hasOtherContent) {
59            const cleanArgs = args.replace(/\\/g, '');
60
61            hotSpotDiv.classList.add('custom-tooltip');
62            const p = document.createElement('p');
63            p.innerHTML = cleanArgs;
64            hotSpotDiv.appendChild(p);
65
66            p.style.marginLeft = -(p.scrollWidth - hotSpotDiv.offsetWidth) / 2 + 'px';
67            p.style.marginTop = -p.scrollHeight - 12 + 'px';
68
69            // Optional: inject style once
70            if (!document.getElementById('wpvr-tooltip-style')) {
71                const style = document.createElement('style');
72                style.id = 'wpvr-tooltip-style';
73                style.textContent = `
74                    .table, .table td, .table th {
75                        border: 1px solid #dee2e6;
76                        border-collapse: collapse;
77                        padding: 8px;
78                    }
79                `;
80                document.head.appendChild(style);
81            }
82        }
83    }
84}
85
86jQuery(document).ready(function($) {
87
88    $(".cross").on("click", function(e) {
89        e.preventDefault();
90        $(this).parent(".custom-ifram-wrapper").fadeOut();
91        $(this).parents(".pano-wrap").removeClass("show-modal");
92
93        $('.vr-iframe').attr('src', '');
94        // $('iframe').attr('src', $('iframe').attr('src'));
95        if ($('#wpvr-video').length != 0) {
96            $('#wpvr-video').get(0).pause();
97        }
98
99        $(this).parent(".custom-ifram-wrapper").find('.custom-ifram').empty();
100
101    });
102
103});
104
105jQuery(document).ready(function($) {
106
107    var notice_active = wpvr_public.notice_active;
108    var notice = wpvr_public.notice;
109    if (notice_active == "true") {
110        if (!$.cookie("wpvr_mobile_notice")) {
111            if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
112                if ($(".pano-wrap")[0]) {
113                    $('body').append("<div class='wpvr-mobile-notice'><p>" + notice + "</p> <span class='notice-close'><i class='fa fa-times'></i></span></div>");
114                }
115            }
116        }
117    }
118
119    $('.wpvr-mobile-notice .notice-close').on('click', function() {
120        $('.wpvr-mobile-notice').fadeOut();
121        $.cookie('wpvr_mobile_notice', 'true');
122    });
123});
124
125
126

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.