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$(document).ready(function(){ 33 $(".vrowl-carousel").owlCarousel({ 34 margin:20, 35 autoWidth:true, 36 }); 37$(document).ready(function(){ 38 if ($(".pnlm-panorama-info:visible").length > 0) { 39 $("#controls").css('bottom', '55px'); 40 } 41}); 42}); 43 44$(document).ready(function(){ 45 if ($(".pnlm-panorama-info:visible").length > 0) { 46 $("#controls").css('bottom', '55px'); 47 } 48}); 49 50})( jQuery ); 51 52function wpvrhotspot(hotSpotDiv, args) { 53 var argst = args.replace(/\\/g, ''); 54 jQuery(document).ready(function($){ 55 $(hotSpotDiv.target).parent().siblings(".custom-ifram").html(argst); 56 $(hotSpotDiv.target).parent().siblings(".custom-ifram").fadeToggle(); 57 $(hotSpotDiv.target).parent().parent(".pano-wrap").toggleClass("show-modal"); 58 59 }); 60} 61 62function wpvrtooltip(hotSpotDiv, args) { 63 hotSpotDiv.classList.add('custom-tooltip'); 64 var span = document.createElement('span'); 65 args = args.replace(/\\/g, ""); 66 span.innerHTML = args; 67 hotSpotDiv.appendChild(span); 68 span.style.marginLeft = -(span.scrollWidth - hotSpotDiv.offsetWidth) / 2 + 'px'; 69 span.style.marginTop = -span.scrollHeight - 12 + 'px'; 70} 71 72 73jQuery(document).ready(function($){ 74 75 $(".cross").on("click", function(e){ 76 e.preventDefault(); 77 $(this).siblings(".custom-ifram").fadeOut(); 78 $(this).parent(".pano-wrap").removeClass("show-modal"); 79 $('iframe').attr('src', $('iframe').attr('src')); 80 }); 81 }); 82 83jQuery(document).ready(function($){ 84 $('#cp-logo').on('click', function(){ 85 $(this).toggleClass('show'); 86 }); 87 88});
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.