PageSourceSearch

https://tunisavia.com.tn/wp-content/plugins/wpvr/public/js/wpvr-public.js?ver=7.2.3

js tunisavia.com.tn collected 2026-10-02 23:16:50 UTC 2,609 bytes, 87 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 );
33
34function wpvrhotspot(hotSpotDiv, args) {
35	var argst = args.replace(/\\/g, '');
36	jQuery(document).ready(function($){
37		$(hotSpotDiv.target).parent().siblings(".custom-ifram-wrapper").find('.custom-ifram').html(argst);
38		$(hotSpotDiv.target).parent().siblings(".custom-ifram-wrapper").fadeToggle();
39		$(hotSpotDiv.target).parent().parent(".pano-wrap").toggleClass("show-modal");
40	});
41}
42
43function wpvrtooltip(hotSpotDiv, args) {
44	hotSpotDiv.classList.add('custom-tooltip');
45	var span = document.createElement('span');
46	args = args.replace(/\\/g, "");
47	span.innerHTML = args;
48	hotSpotDiv.appendChild(span);
49	span.style.marginLeft = -(span.scrollWidth - hotSpotDiv.offsetWidth) / 2 + 'px';
50	span.style.marginTop = -span.scrollHeight - 12 + 'px';
51}
52
53
54jQuery(document).ready(function($){
55
56	$(".cross").on("click", function(e){
57        e.preventDefault();
58
59		$(this).parent(".custom-ifram-wrapper").fadeOut();
60        $(this).parents(".pano-wrap").removeClass("show-modal");
61
62		$('iframe').attr('src', $('iframe').attr('src'));
63		if($('#wpvr-video').length != 0) {
64			$('#wpvr-video').get(0).pause();
65		}
66
67    });
68});
69
70jQuery(document).ready(function($){
71		var notice_active = wpvr_public.notice_active;
72		var notice = wpvr_public.notice;
73		if (notice_active == "true") {
74			if (!$.cookie("wpvr_mobile_notice")) {
75				if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
76					if ($(".pano-wrap")[0]){
77						$('body').append("<div class='wpvr-mobile-notice'><p>"+notice+"</p> <span class='notice-close'><i class='fa fa-times'></i></span></div>");
78					}
79				}
80			}
81		}
82
83  $('.wpvr-mobile-notice .notice-close').on('click', function(){
84      $('.wpvr-mobile-notice').fadeOut();
85      $.cookie('wpvr_mobile_notice', 'true');
86  });
87});

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.