Skip to content

Commit 66fbd7c

Browse files
author
Ram swaroop
committed
g+ button changes
1 parent 4b8e477 commit 66fbd7c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

js/main.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Array.prototype.forEach.call(elements, function (element) {
2323

2424
// Share bar
2525
var share_bar = document.getElementsByClassName('share-bar');
26+
var po = document.createElement('script');
27+
po.type = 'text/javascript';
28+
po.async = true;
29+
po.src = 'https://apis.google.com/js/platform.js';
30+
var s = document.getElementsByTagName('script')[0];
31+
s.parentNode.insertBefore(po, s);
2632

2733
for (var i = 0; i < share_bar.length; i++) {
2834

@@ -33,7 +39,9 @@ for (var i = 0; i < share_bar.length; i++) {
3339

3440
'<iframe src="//www.facebook.com/plugins/like.php?href=' + encodeURIComponent(window.location) + '&amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;share=true&amp;height=21&amp;appId=217347368312341&amp;width=150" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>' +
3541

36-
'<iframe src="https://plusone.google.com/_/+1/fastbutton?bsv&amp;size=medium&amp;url=' + encodeURIComponent(window.location) + '" allowtransparency="true" frameborder="0" scrolling="no" title="+1" style="width:105px; height:21px;"></iframe>';
42+
'<div class="g-plusone" data-size="medium"></div>';
43+
44+
//'<iframe src="https://plusone.google.com/_/+1/fastbutton?bsv&amp;size=medium&amp;url=' + encodeURIComponent(window.location) + '" allowtransparency="true" frameborder="0" scrolling="no" title="+1" style="width:105px; height:21px;"></iframe>';
3745

3846
share_bar[i].innerHTML = html;
3947
share_bar[i].style.display = 'inline-block';

0 commit comments

Comments
 (0)