Skip to content

Commit

Permalink
Merge branch 'master', remote branch 'official/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tamoot committed Mar 10, 2012
2 parents d79dd3d + a927d49 commit 9d70e8a
Show file tree
Hide file tree
Showing 16 changed files with 52 additions and 349 deletions.
39 changes: 0 additions & 39 deletions doc/ja/plugin/account_ad.txt

This file was deleted.

23 changes: 12 additions & 11 deletions js/jquery.socialbutton.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Dual licensed under the MIT or GPL Version 2 licenses. * Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license * http://jquery.org/license
* *
* Version: 1.8.0 * Version: 1.8.1
*/ */


/** /**
Expand Down Expand Up @@ -152,12 +152,12 @@
* $('#google').socialbutton('google_plusone'); * $('#google').socialbutton('google_plusone');
* *
* $('#google').socialbutton('google_plusone', { * $('#google').socialbutton('google_plusone', {
* button: 'standard', // synonym 'size'
* url: 'http://itra.jp', // synonym 'href'
* lang: 'ja', * lang: 'ja',
* parsetags: 'explicit', * parsetags: 'explicit',
* callback: 'some_callback_function', * callback: 'some_callback_function',
* count: true, * count: true
* href: 'http://itra.jp/',
* size: 'standard'
* }); * });
* *
*/ */
Expand Down Expand Up @@ -268,12 +268,12 @@ $.fn.socialbutton = function(service, options) {
padding: 7 padding: 7
}, },
google_plusone: { google_plusone: {
button: '', // small, standard, medium, tall
url: '',
lang: '', // en-US lang: '', // en-US
parsetags: '', // none(onload), explicit parsetags: '', // none(onload), explicit
callback: '', callback: '',
count: true, // true, false count: true // true, false
href: '',
size: '' // small, standard, medium, tall
} }
}; };


Expand Down Expand Up @@ -655,7 +655,7 @@ function socialbutton_hatena(target, options, defaults, index, max_index)
}); });


var tag = '<a' + attr + '><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a>' var tag = '<a' + attr + '><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a>'
+ '<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>'; + '<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button_wo_al.js" charset="utf-8" async="async"></script>';


$(target).html(tag); $(target).html(tag);
} }
Expand Down Expand Up @@ -684,13 +684,14 @@ function socialbutton_google_plusone(target, options, defaults, index, max_index
return; return;
} }


var size = options.size || options.button || defaults.button;
var href = options.href || options.url || defaults.url;

var lang = options.lang || defaults.lang; var lang = options.lang || defaults.lang;
var parsetags = options.parsetags || defaults.parsetags; var parsetags = options.parsetags || defaults.parsetags;


var callback = options.callback || defaults.callback; var callback = options.callback || defaults.callback;
var count = options.count != undefined ? options.count : defaults.count; var count = options.count != undefined ? options.count : defaults.count;
var href = options.href || defaults.href;
var size = options.size || defaults.size;


switch (size) { switch (size) {
case 'small': case 'small':
Expand Down Expand Up @@ -731,7 +732,7 @@ function socialbutton_google_plusone(target, options, defaults, index, max_index
script_params = '{' + script_params + '}'; script_params = '{' + script_params + '}';
} }


if (typeof gapi === "undefined" || typeof gapi.plusone === "undefined") { if (typeof gapi === 'undefined' || typeof gapi.plusone === 'undefined') {
$('body').append('<script type="text/javascript" src="https://apis.google.com/js/plusone.js">' + script_params + '</script>'); $('body').append('<script type="text/javascript" src="https://apis.google.com/js/plusone.js">' + script_params + '</script>');
} else { } else {
gapi.plusone.go(); gapi.plusone.go();
Expand Down
67 changes: 0 additions & 67 deletions plugin/account_ad.rb

This file was deleted.

2 changes: 1 addition & 1 deletion plugin/section_footer2.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def init_buttons_status


add_header_proc do add_header_proc do
<<-"EOS" <<-"EOS"
<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script> <script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button_wo_al.js" charset="utf-8" async="async"></script>
<style type="text/css">iframe.hatena-bookmark-button-frame {margin-bottom: -7px; }</style> <style type="text/css">iframe.hatena-bookmark-button-frame {margin-bottom: -7px; }</style>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<style type="text/css">iframe.twitter-share-button.twitter-count-horizontal {margin-bottom: -6px; }</style> <style type="text/css">iframe.twitter-share-button.twitter-count-horizontal {margin-bottom: -6px; }</style>
Expand Down
20 changes: 0 additions & 20 deletions plugin/zh/account_ad.rb

This file was deleted.

20 changes: 0 additions & 20 deletions plugin/zh/add_bookmark.rb

This file was deleted.

10 changes: 0 additions & 10 deletions plugin/zh/del_footer.rb

This file was deleted.

25 changes: 0 additions & 25 deletions plugin/zh/livedoor_weather.rb

This file was deleted.

38 changes: 0 additions & 38 deletions plugin/zh/nicovideo.rb

This file was deleted.

8 changes: 0 additions & 8 deletions plugin/zh/openid.rb

This file was deleted.

Loading

0 comments on commit 9d70e8a

Please sign in to comment.