Facebook wtyczka społecznościowa – aktualizacja

Drobna aktualizacja do http://darkgl.pl/index.php/2011/09/11/facebook-wtyczka-spolecznosciowa/

Strona do generowania wtyczki
https://developers.facebook.com/docs/plugins/like-box-for-pages?locale=pl_PL

Nowy kod

<style>
@media only screen and (device-width: 768px) {
	table.ipb_table .expander,
	table.ipb_table .ipsModMenu { visibility: visible; opacity: 0.2; }
	.post_block .post_controls { opacity: 1 !important;	}
}
.facebook{
float:left;
width:240px;
height:400px;
display:block;
background:url("http://amxx.pl/public/style_images/fbpodklad.png");
left:-210px;
padding:0;
position:fixed;
top:200px;
	z-index:10000;
} </style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
<script type="text/javascript">
var j = jQuery.noConflict();
var isVisible = false;
	j(function (){
		j(".facebook").click(function(){
			isVisible = !isVisible;
		
			if (isVisible)
				j(".facebook").stop(true, false).animate({left:"0"},"medium");
			else
				j(".facebook").stop(true, false).animate({left:"-210"},"medium");
	})
});
</script>
<div class="facebook"> 
<div style="color:#fff; padding:15px 5px 0 5px;"> 
<iframe src="http://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAMXXPL%2F178991888818498&width=200&height=363&colorscheme=dark&show_faces=true&header=true&stream=false&show_border=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:363px;" allowTransparency="true"></iframe> 
</div> 
</div>

Dodaj komentarz