cpjq("#cp_8").on("sliderWillLoad", function( event ) { var $ = window.lsjQuery || jQuery; $(this).on('click', '[data-share]', function(e) { var url = $(this).data('share'); if (url.indexOf('facebook.com/')>-1) { url += '&p[url]='+ encodeURI(location.href); } else { url += '&url='+ encodeURI(location.href); } window.open(url, 'ls-share', 'width=500,height=500'); }); }).on("popupWillLoad", function(event) { var $ = window.lsjQuery || jQuery; $(this).on('click', '[data-share]', function(e) { var url = $(this).data('share'); if (url.indexOf('facebook.com/')>-1) { url += '&p[url]='+ encodeURI(location.href); } else { url += '&url='+ encodeURI(location.href); } window.open(url, 'ls-share', 'width=500,height=500'); }); }).creativePopup({popupVersion: '1.6.8', type: 'popup', autoStart: true, keybNav: true, touchNav: true, skin: 'noskin', sliderFadeInDuration: 350, popupShowOnTimeout: 1, popupShowOnce: false, popupDisableOverlay: true, popupShowCloseButton: false, popupOverlayClickToClose: false, popupWidth: 100, popupHeight: 216, popupPositionHorizontal: 'left', popupDistanceLeft: 0, popupDistanceRight: 0, popupDistanceTop: 0, popupDistanceBottom: 0, popupDelayIn: 0, popupTransitionIn: 'slidefromleft', popupTransitionOut: 'slidetoleft', skinsPath: '/modules/creativepopup/views/css/core/skins/', plugins: ["popup"]}); ]]-->