|
|
|
|
@ -9,27 +9,7 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
// $(function(){ |
|
|
|
|
// var ot = $('.sharing_block').offset().top, |
|
|
|
|
// left = $('.sharing_block .social-likes').offset(); |
|
|
|
|
|
|
|
|
|
// console.log(left) |
|
|
|
|
|
|
|
|
|
// $(window).scroll(function(event) { |
|
|
|
|
// if( $(window).scrollTop() >= ot + 5 ){ |
|
|
|
|
// $('.sharing_block .social-likes').css({ |
|
|
|
|
// position: 'fixed', |
|
|
|
|
// top: '5px', |
|
|
|
|
// left: left + 'px' |
|
|
|
|
// });//.addClass('fixed'); |
|
|
|
|
// } else { |
|
|
|
|
// $('.sharing_block .social-likes').css('position', 'static')//.removeClass('fixed'); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
$('.social-likes').on('ready.social-likes', function(event, number) { |
|
|
|
|
// number is total number of shares |
|
|
|
|
|
|
|
|
|
var $sl = $('.sharing_block .social-likes'), |
|
|
|
|
ot = $('.sharing_block').offset().top, |
|
|
|
|
|