1 2var dtDirectorSocialShare = { 3 4 dtInit : function() { 5 6 // Social Share Toggle 7 8 jQuery('.wdt-listings-social-share-container').each(function () { 9 10 jQuery(this).find('.wdt-listings-social-share-item-icon').on('click', function(e) { 11 jQuery('.wdt-listings-social-share-container').removeClass('active'); 12 jQuery(this).parents('.wdt-listings-social-share-container').toggleClass('active'); 13 e.stopPropagation(); 14 }); 15 16 }); 17 18 jQuery('body:not(.wdt-listings-social-share-container)').on('click', function() { 19 jQuery('.wdt-listings-social-share-container').each(function () { 20 21 if(jQuery(this).length > 0 && jQuery(this).hasClass('active')) { 22 jQuery(this).toggleClass('active'); 23 } 24 25 }); 26 }); 27 28 29 } 30 31}; 32 33 34jQuery(document).ready(function() { 35 36 if(!wdtfrontendobject.elementorPreviewMode) { 37 dtDirectorSocialShare.dtInit(); 38 } 39 40}); 41 42 43( function( $ ) { 44 45 var dtDirectorSocialShareJs = function($scope, $){ 46 dtDirectorSocialShare.dtInit(); 47 }; 48 49 $(window).on('elementor/frontend/init', function(){ 50 if(wdtfrontendobject.elementorPreviewMode) { 51 elementorFrontend.hooks.addAction('frontend/element_ready/wdt-widget-sp-social-share.default', dtDirectorSocialShareJs); 52 } 53 }); 54 55} )( jQuery );
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.