]> _ Git - fluidbook-html5.git/commitdiff
done #2831 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 13 Sep 2019 15:32:43 +0000 (17:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 13 Sep 2019 15:32:43 +0000 (17:32 +0200)
js/libs/fluidbook/fluidbook.share.js

index 6976d4f465b8a3571ac2a92f0c03c3a279a9ded9..4359abedc80e9bfccea4a32d9d08c3bb885d601f 100644 (file)
@@ -165,6 +165,9 @@ FluidbookShare.prototype = {
         if (this.fluidbook.datas.viadeo) {
             shareLinks['viadeo'] = 'Viadeo';
         }
+        if (this.fluidbook.datas.pinterest) {
+            shareLinks['pinterest'] = 'Pinterest';
+        }
 
         // Generate links
         for (var shareType in shareLinks) {
@@ -266,4 +269,8 @@ FluidbookShare.prototype = {
         this.fluidbook.wopen('http://www.viadeo.com/shareit/share/?url=' + encodeURIComponent(this.getShareURL(url)), 'share_viadeo', 'width=650,height=400');
         this.fluidbook.stats.track(12);
     },
+    sendPinterest: function (url) {
+        this.fluidbook.wopen('http://pinterest.com/pin/create/button/?url=' + encodeURIComponent(this.getShareURL(url)) + '&media=' + encodeURIComponent('https://workshop.fluidbook.com/services/facebook_thumbnail?id=' + this.fluidbook.datas.id + '&j=' + Date.now()) + '"','width=650,height=400');
+        this.fluidbook.stats.track(12);
+    }
 };
\ No newline at end of file