$(function(){
    var socialBar = $('.social[data-url]');
    $.get('https://graph.facebook.com/?id=' + socialBar.data('url'), function(data) {
        $('.facebook .count', socialBar).html(data['shares']);
    })
    .fail(function() {
        $('.facebook .count', socialBar).html('0');
    });
    $.getJSON('https://urls.api.twitter.com/1/urls/count.json?callback=?', {'url': socialBar.data('url')}, function(data) {
        $('.twitter .count', socialBar).html(data['count']);
    })
    .fail(function() {
        $('.twitter .count', socialBar).html('0');
    });
    if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
	// Mobile device.
	$(".hidden.whatsapp").removeClass("hidden")
    }
});

$(function(){
    if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
	// Mobile device.
	$(".hidden.whatsapp").removeClass("hidden")
    }
});

Remove the URL count numbers now that twitter stopped reporting them.
Remove the URL count numbers now that twitter stopped reporting them.
