From deb767b0d93194f500f37df5f1111571166158f8 Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 13 May 2013 16:05:57 +0900 Subject: [PATCH] sns.js --- js/sns.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 js/sns.js diff --git a/js/sns.js b/js/sns.js new file mode 100644 index 000000000..38ca4f725 --- /dev/null +++ b/js/sns.js @@ -0,0 +1,16 @@ +$(function() { + $(".share-facebook").click(function() { + window.open($(this).attr("href"), "win_facebook", "menubar=1,resizable=1,width=600,height=400"); + return false; + }); + + $(".share-twitter").click(function() { + window.open($(this).attr("href"), "win_twitter", "menubar=1,resizable=1,width=600,height=350"); + return false; + }); + + $(".share-googleplus").click(function() { + window.open($(this).attr("href"), "win_googleplus", "menubar=1,resizable=1,width=600,height=600"); + return false; + }); +}); \ No newline at end of file