public
Created

Kindle It widget

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10
l = 'http://fivefilters.org/kindle-it/send.php?url='+encodeURIComponent(window.location.href);
e = l+'&context=download&format=epub';
m = l+'&context=download&format=mobi';
function pop(){
h = 527;
w = 873;
wd = window.open(l, 'KindleIt','scrollbars=no,menubar=no,height='+h+',width='+w+',resizable=yes,toolbar=no,location=no,status=no,top='+((screen.height/2)-(h/2))+',left='+((screen.width/2)-(w/2)));
}
document.write('<p style="text-align:center;font-weight:bold;"><a href="javascript:void(0);" onclick="pop()">Kindle It</a> | <a href="'+e+'" target"_blank">ePub</a> | <a href="'+m+'" target"_blank">mobi</a></p>');
document.write('<p style="text-align:center;">Powered by <a href="http://fivefilters.org/kindle-it/">FiveFilters.org</a> (<a href="http://fivefilters.org/fundraising/donate.php?id=kindle-it-v1">donate</a>)</p>');

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.