1/** 2 * Setmore Plus script 3 */ 4jQuery(document).ready(function ($) { 5 6 if (typeof( setmoreplus ) !== 'undefined') { 7 8 var isPx = ( 'px' === setmoreplus.width.charAt(setmoreplus.width.length - 2) ); 9 10 // Adjust popup on mobile devices. 11 var vWidth = document.documentElement.clientWidth; 12 var vHeight = document.documentElement.clientHeight; 13 if (vWidth < setmoreplus.breakpoint || ( isPx && vWidth < setmoreplus.width )) { 14 var mobileSettings = { 15 width: vWidth, 16 height: vHeight, 17 transition: 'none' 18 } 19 setmoreplus = $.extend(setmoreplus, mobileSettings); 20 } 21 22 // Specific elements. 23 $(".widget .setmore-iframe") 24 .add("a.setmore-iframe") 25 .add("button.setmore-iframe") 26 .add("li.setmore-iframe > a") 27 .add('a[href$="#setmoreplus"]') 28 .colorbox(setmoreplus); 29 30 // For themes that already have an Appointment button 31 // and you can only enter a link, use this page anchor. 32 $('a[href$="#setmoreplus"]').click(function (e) { 33 e.preventDefault(); 34 }); 35 } 36 37});
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.