diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-10-30 18:00:09 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-10-30 18:00:09 -0400 |
| commit | 72270af02efb9609482ea50e918fe6d2ca7785a2 (patch) | |
| tree | 058880c7147b6e4927e2663082faa9a9b4638ba2 /public/assets/javascripts/ui/z_share.js | |
| parent | 1efe4601867053e297e91e70388b48e90b12b61f (diff) | |
| parent | 75f6a29f57f6147c83c8fb60bc5d36d8c6268f72 (diff) | |
merge
Diffstat (limited to 'public/assets/javascripts/ui/z_share.js')
| -rw-r--r-- | public/assets/javascripts/ui/z_share.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/public/assets/javascripts/ui/z_share.js b/public/assets/javascripts/ui/z_share.js deleted file mode 100644 index d31aa89..0000000 --- a/public/assets/javascripts/ui/z_share.js +++ /dev/null @@ -1,25 +0,0 @@ -var share = { - init: function(){ - share.bind() - }, - bind: function(){ - $("#facebook").click(share.facebook) - $("#twitter").click(share.twitter) - }, - url: "http://vvalls.com/", - facebook_msg: "", - twitter_msg: "", - openLink: function (url) { - window.open(url, "_blank"); - }, - facebook: function () { - var url = "https://www.facebook.com/share.php?u=" + encodeURIComponent(share.url) + "&t=" + encodeURIComponent(share.facebook_msg); - share.openLink(url); - return false; - }, - twitter: function () { - var url = "https://twitter.com/home?status=" + encodeURIComponent(share.url + " " + share.twitter_msg); - share.openLink(url); - return false; - } -} |
