git.schokokeks.org
Repositories
Help
Report an Issue
tor-webwml.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
dbccd8d01
Branches
Tags
bridges
docs-debian
jobs
master
press-clips
tor-webwml.git
rule-41
js
social.js
iAttempt at adding the rule-41 page
Sebastian Hahn
commited
dbccd8d01
at 2016-06-20 09:32:57
social.js
Blame
History
Raw
var shareUrl=tfrceConfig.shareCountURL||'https://thedaywefightback.org';$.ajax('https://d28jjwuneuxo3n.cloudfront.net/?networks=facebook,twitter,googleplus&url='+ shareUrl,{success:function(res,err){$.each(res,function(network,value){var count=value;if(count/10000>1){count=Math.ceil(count/1000)+'k'} $('[data-network="'+ network+'"]').attr('count',count);})},dataType:'jsonp',cache:true,jsonpCallback:'myCallback'});if(tfrceConfig.loadTotals){$.ajax('https://d28jjwuneuxo3n.cloudfront.net/?networks=facebook,twitter,googleplus&url=https://thedaywefightback.org',{success:function(res,err){$.each(res,function(network,value){var count=value;if(count/10000>1){count=Math.ceil(count/1000)+'k'} $('[data-network-totals="'+ network+'"]').attr('count',count);})},dataType:'jsonp',cache:true,jsonpCallback:'myCallback'});} function splitTime(msec){var dd=Math.floor(msec/1000/60/60/24);msec-=dd*1000*60*60*24;var hh=Math.floor(msec/1000/60/60);msec-=hh*1000*60*60;var mm=Math.floor(msec/1000/60);msec-=mm*1000*60;var ss=Math.floor(msec/1000);msec-=ss*1000;var ret=new Object();ret['d']=dd;ret['h']=hh;ret['m']=mm;ret['s']=ss;return ret;} $(".twlinkthis").click(function(){var url=$(this).attr("href");window.open(url,"Twitter","width=550,height=420");return false;}) $(".gpluslinkthis").click(function(){var url=$(this).attr("href");window.open(url,"Share on Google Plus","width=500,height=436");return false;})