File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ Array.prototype.forEach.call(elements, function (element) {
2323
2424// Share bar
2525var 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
2733for ( 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 ) + '&width&layout=button_count&action=like&show_faces=false&share=true&height=21&appId=217347368312341&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&size=medium&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&size=medium&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' ;
You can’t perform that action at this time.
0 commit comments