Facebook like button inside iframe
This commit is contained in:
		
							parent
							
								
									aeea80997e
								
							
						
					
					
						commit
						09e63f0467
					
				| @ -14,5 +14,3 @@ | ||||
| //= require settings
 | ||||
| 
 | ||||
| //= require beathaven
 | ||||
| 
 | ||||
| //= require_tree ./social
 | ||||
|  | ||||
| @ -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')); | ||||
| }); | ||||
| @ -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">')) | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user