1$(document).ready(function () { 2 disableLinks('.wrap__page-content a, .wrap__editable-content a'); 3 4 // fix an issue when a form is present on a page along with FixedScrollBlock 5 // FixedScrollBlock is not recalculated after form is loaded (result: incorrect positioning of an element which position is controlled by FixedScrollBlock) 6 // check if form component exists on page 7 if ($('.form').length) { 8 // this part is initialized on forms load 9 $('body').on('SMBLeadsFormReady', function() { 10 // check if FixedScrollBlock plugin data exists, refresh if true 11 if (typeof $('body').data('FixedScrollBlock') !== 'undefined') { 12 $('body').data('FixedScrollBlock').refresh(); 13 } 14 }); 15 } 16 //global fix for mm navigation issue 17 setTimeout(function() { 18 $('body').removeClass('mm-slideout mm-page') 19 }, 1000); 20 21 $('a.dd-lightbox').fancybox(); 22}); 23 24function disableLinks(el) { 25 $(el).each(function(){ 26 if($(this).attr('href') === '#' || $(this).attr('href') === 'javascript.void(0)') { 27 $(this).click(function(e){ 28 e.preventDefault(); 29 }); 30 } 31 }); 32}
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.