1jQuery(document).ready(function ($) { 2 3 $('.sf-menu .sub-menu a').each(function () { 4 var a = new RegExp('/' + window.location.host + '/'); 5 if (!a.test(this.href)) { 6 $(this).addClass("external"); 7 } 8 }); 9 10 $(document).on('click', '.sf-menu .sub-menu a.external', function (event) { 11 event.preventDefault(); 12 event.stopPropagation(); 13 window.open(this.href, '_blank'); 14 }); 15 16 $(document).on('click', 'a:not(.chosen-single)', function (event) { 17 var a = new RegExp('/' + window.location.host + '/'); 18 19 // SKIP IF NOT EXTERNAL 20 if (a.test(this.href)) { 21 return; 22 } 23 24 // SKIP VIDEO LIGHTBOX TRIGGERS 25 if ($(this).hasClass('magnific-popup') || $(this).hasClass('nectar_video_lightbox') || $(this).closest('.nectar-video-box').length) { 26 return; 27 } 28 29 event.preventDefault(); 30 event.stopPropagation(); 31 window.open(this.href, '_blank'); 32 }); 33 34});
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.