由 蘋果仁 · 二月 4, 2018
雖然智慧型手機為我們的生活帶來許多便利,也有越來越多人手機都離不開身,就連洗澡也會將手機帶進浴室,可能是想在泡澡時邊玩手機,或是邊洗澡邊聽音樂,但這樣真的會讓意外發生的機率大增! 去年七月在美國德州發生一起意外悲劇,一名14歲的少女因為邊洗澡邊充電使用手機,導致觸電意外身亡,不過這種類似意外並不少見,前年在俄羅斯也曾發生一名14歲的少女在浴室內洗澡使用手機,…
',enableHover:false,enableTracking:true,buttons:{twitter:{via:''}},click:function(api,options){api.simulateClick();api.openPopup('twitter');}});$('#facebook').sharrre({share:{facebook:true},template:'
{total}',enableHover:false,enableTracking:true,buttons:{layout:'box_count'},click:function(api,options){api.simulateClick();api.openPopup('facebook');}});$('#googleplus').sharrre({share:{googlePlus:true},template:'
{total}',enableHover:false,enableTracking:true,buttons:{size:'tall'},urlCurl:'https://applealmond.com/wp-content/plugins/hueman-addons/addons/assets/front/js/sharrre.php',click:function(api,options){api.simulateClick();api.openPopup('googlePlus');}});var $_shareContainer=$(".sharrre-container"),$_header=$('#header'),$_postEntry=$('.entry'),$window=$(window),startSharePosition=$_shareContainer.offset(),contentBottom=$_postEntry.offset().top+$_postEntry.outerHeight(),topOfTemplate=$_header.offset().top,topSpacing=_setTopSpacing();shareScroll=function(){var scrollTop=$window.scrollTop()+topOfTemplate,stopLocation=contentBottom-($_shareContainer.outerHeight()+topSpacing);$_shareContainer.css({position:'fixed'});if(scrollTop>stopLocation){$_shareContainer.css({position:'relative'});$_shareContainer.offset({top:contentBottom-$_shareContainer.outerHeight(),left:startSharePosition.left,});} else if(scrollTop>=$_postEntry.offset().top-topSpacing){$_shareContainer.css({position:'fixed',top:'100px'});$_shareContainer.offset({left:startSharePosition.left,});}else if(scrollTop1024){topSpacing=distanceFromTop+$('.nav-wrap').outerHeight();}else{topSpacing=distanceFromTop;} return topSpacing;} $window.scroll(_.throttle(function(){if($window.width()>719){shareScroll();}else{$_shareContainer.css({top:'',left:'',position:''})}},50));$window.resize(_.debounce(function(){if($window.width()>719){shareMove();}else{$_shareContainer.css({top:'',left:'',position:''})}},50));});/*]]>*/
from 蘋果仁 – 你的科技媒體 http://ift.tt/2E1peqC
沒有留言:
張貼留言