1
0
Fork 0

Facebook like button inside iframe

This commit is contained in:
magnolia-fan 2011-11-29 04:20:14 +04:00
parent aeea80997e
commit 09e63f0467
4 changed files with 2 additions and 23 deletions

View File

@ -14,5 +14,3 @@
//= require settings
//= require beathaven
//= require_tree ./social

View File

@ -1,19 +0,0 @@
$(function(){
// window.fbAsyncInit = function() {
// FB.init({
// appId : 'YOUR_APP_ID', // App ID
// channelURL : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
// status : true, // check login status
// cookie : true, // enable cookies to allow the server to access the session
// oauth : true, // enable OAuth 2.0
// xfbml : true // parse XFBML
// });
// };
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});

View File

@ -13,7 +13,7 @@ class window.Vkontakte
window.vkAsyncInit = ->
VK.init apiId: _vkontakte.getApiId()
_vkontakte.auth()
VK.Widgets.Like("vk-like", {type: "mini", height: 22, pageUrl: "http://beathaven.org/", text: "Like"})
VK.Widgets.Like("vk-like", {type: "mini", height: 20, pageUrl: "http://beathaven.org/", text: "Like"})
setTimeout ->
$('#vk_api_transport').append($('<script async="async" type="text/javascript" src="http://vkontakte.ru/js/api/openapi.js">'))

View File

@ -1,2 +1,2 @@
.fb-like{ "data-href" => "http://facebook.com/BeatHavenHQ", "data-send" => "false", "data-layout" => "button_count", "data-width" => "100", "data-show-faces" => "false", "data-font" => "lucida grande" }
%iframe.fb-like{ src: "https://www.facebook.com/plugins/like.php?layout=button_count&href=http://facebook.com/BeatHavenHQ", scrolling: "no", frameborder: 0, style: "border:none; width:90px; height:20px" }
#vk-like