--- a/src/js/utils.js Tue Jan 03 16:19:24 2012 +0100
+++ b/src/js/utils.js Tue Jan 03 17:14:01 2012 +0100
@@ -134,6 +134,22 @@
IriSP.__guidCounter += 1;
return prefix + IriSP.__guidCounter;
};
+
+/** returns an url to share on facebook */
+IriSP.mkFbUrl = function(url) {
+ return "http://www.facebook.com/share.php?u=" + "I'm watching " + url;
+};
+
+/** returns an url to share on twitter */
+IriSP.mkTweetUrl = function(url) {
+ return "http://twitter.com/home?status=" + "I'm sharing " + url;
+};
+
+/** returns an url to share on google + */
+IriSP.mkGplusUrl = function(url) {
+ return "";
+};
+
/* for ie compatibility
if (Object.prototype.__defineGetter__&&!Object.defineProperty) {
Object.defineProperty=function(obj,prop,desc) {