Help! The fixes here fixed the pinterest problem back in 2014 but stupid me updated the module and now it doesn't work again. I tried both code fixes listed in this feed but neither worked even though they worked a few years ago for me. Any help would be greatly appreciated. My website is luckyskunks.com. Here's the code I have now:
$(document).ready(function(){
$('button.social-sharing').on('click', function(){
type = $(this).attr('data-type');
if (type.length)
{
switch(type)
{
case 'twitter':
window.open('https://twitter.com/intent/tweet?text=' + sharing_name + ' ' + encodeURIComponent(sharing_url), 'sharertwt', 'toolbar=0,status=0,width=640,height=445');
break;
case 'facebook':
window.open('http://www.facebook.com/sharer.php?u=' + sharing_url, 'sharer', 'toolbar=0,status=0,width=660,height=445');
break;
case 'google-plus':
window.open('https://plus.google.com/share?url=' + sharing_url, 'sharer', 'toolbar=0,status=0,width=660,height=445');
break;
case 'pinterest':
var img_url = sharing_img;
if (typeof $("#bigpic").attr('src') != 'undefined' && $("#bigpic").attr('src') != '') {
img_url = $("#bigpic").attr('src');
}
window.open('http://www.pinterest.com/pin/create/button/?media=' + img_url + '&url=' + sharing_url, 'sharerpinterest', 'toolbar=0,status=0,width=660,height=445');
break;