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 $(this).parent(".custom-ifram-wrapper").fadeOut(); 59 $(this).parents(".pano-wrap").removeClass("show-modal"); 60 61 $('.vr-iframe').attr('src', ''); 62 // $('iframe').attr('src', $('iframe').attr('src')); 63 if ($('#wpvr-video').length != 0) { 64 $('#wpvr-video').get(0).pause(); 65 } 66 67 }); 68 69}); 70 71jQuery(document).ready(function($) { 72 73 var notice_active = wpvr_public.notice_active; 74 var notice = wpvr_public.notice; 75 if (notice_active == "true") { 76 if (!$.cookie("wpvr_mobile_notice")) { 77 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 78 if ($(".pano-wrap")[0]) { 79 $('body').append("<div class='wpvr-mobile-notice'><p>" + notice + "</p> <span class='notice-close'><i class='fa fa-times'></i></span></div>"); 80 } 81 } 82 } 83 } 84 85 $('.wpvr-mobile-notice .notice-close').on('click', function() { 86 $('.wpvr-mobile-notice').fadeOut(); 87 $.cookie('wpvr_mobile_notice', 'true'); 88 }); 89});
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.