diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-10 11:19:10 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:51 -0700 |
commit | 23ac4b846d34b297740d9bf369b4860e9947af94 (patch) | |
tree | 012d789a667a29760a30cc1084c592f71fe864a8 /theme/javascript/utils/sharing.js | |
parent | 691d04e99470e566eb11e9e58fe8109eeda6094c (diff) | |
download | gitbook-23ac4b846d34b297740d9bf369b4860e9947af94.zip gitbook-23ac4b846d34b297740d9bf369b4860e9947af94.tar.gz gitbook-23ac4b846d34b297740d9bf369b4860e9947af94.tar.bz2 |
Add sharing to instapaper
Diffstat (limited to 'theme/javascript/utils/sharing.js')
-rwxr-xr-x | theme/javascript/utils/sharing.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/theme/javascript/utils/sharing.js b/theme/javascript/utils/sharing.js index 1d133d3..0c9f88d 100755 --- a/theme/javascript/utils/sharing.js +++ b/theme/javascript/utils/sharing.js @@ -16,6 +16,9 @@ define([ }, "weibo": function($el) { window.open("http://service.weibo.com/share/share.php?content=utf-8&url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)) + }, + "instapaper": function($el) { + window.open("http://www.instapaper.com/text?u="+encodeURIComponent(url)) } }; |