Future Smartphones May Feature Tiny Airbags To Cushion Fall

Share the joy

stLight.options({publisher:’a89b9619-964d-41d9-adb7-31dfd1baeca8′});

email

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

//put content div class, when scroll beyond this y, float it
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’;

//make sure .post_share exists
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($) { window.setTimeout(‘loadGoogle1_13695()’,1000);window.setTimeout(‘loadLinkedin_13695()’,1000);window.setTimeout(‘loadTwitter_13695()’,1000); }); function loadGoogle1_13695(){ jQuery(document).ready(function($) { $(‘.dd-google1-13695’).remove();$.getScript(‘https://apis.google.com/js/plusone.js’); }); } function loadLinkedin_13695(){ jQuery(document).ready(function($) { $(‘.dd-linkedin-13695’).remove();$.getScript(‘http://platform.linkedin.com/in.js’); }); } function loadTwitter_13695(){ jQuery(document).ready(function($) { $(‘.dd-twitter-13695’).remove();$.getScript(‘http://platform.twitter.com/widgets.js’); }); } jQuery(document).ready(function($) {

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

$(window).resize(function() {

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

});

}); ;


Share the joy

Author: Solon Harmony Dolor

A passion for technology and journalism makes this upcoming writer very interested in social media and technology news. Fresh from finishing an English and Journalism degree from the University of the Philippines Diliman, he aims to bring interesting news to our readers . Don't forget to subscribe and receive our latest posts in your inbox.

Share This Post On