grey person working

(function() {var s = document.createElement(‘SCRIPT’), s1 = document.getElementsByTagName(‘SCRIPT’)[0];s.type = ‘text/javascript’;s.async = true;s.src = ‘http://widgets.digg.com/buttons.js’;s1.parentNode.insertBefore(s, s1);})();

grey person working

#dd_ajax_float{
background:none repeat scroll 0 0 #FFFFFF;
border:1px solid #DDDDDD;
float:left;
margin-left:-120px;
margin-right:10px;
margin-top:10px;
position:absolute;
z-index:9999;
}jQuery(document).ready(function($){

var $postShare = $(‘#dd_ajax_float’);

if($(‘.dd_content_wrap’).length > 0){

var descripY = parseInt($(‘.dd_content_wrap’).offset().top) – 20;
var pullX = $postShare.css(‘margin-left’);

$(window).scroll(function () {

var scrollY = $(window).scrollTop();
var fixedShare = $postShare.css(‘position’) == ‘fixed’;

if($(‘#dd_ajax_float’).length > 0){

if ( scrollY > descripY && !fixedShare ) {
$postShare.stop().css({
position: ‘fixed’,
top: 16
});
} else if ( scrollY < descripY && fixedShare ) {
$postShare.css({
position: 'absolute',
top: descripY,
marginLeft: pullX
});
}

}

});
}
}); jQuery(document).ready(function($) {

if($(window).width()> 790){
$(‘#dd_ajax_float’).show()
}else{
$(‘#dd_ajax_float’).hide()
}

$(window).resize(function() {

if($(window).width()> 790){
$(‘#dd_ajax_float’).show()
}else{
$(‘#dd_ajax_float’).hide()
}

});

}); ;

Pin It