Press ESC to close

Which modern cars are hybrids?

‘, enableHover: false, enableTracking: true, button: { twitter: { via: ”}}, click: function (api, options) { api.simulateClick(); api.openPopup(‘twitter’); } }) ; $(‘#facebook’).sharrre({ share: { facebook: true }, template: ”, enableHover: false, enableTracking: true, button: {layout: ‘box_count’}, click: function(api, options ) { api.simulateClick(); api.openPopup(‘facebook’); // Scrollable sharrre bar, contributed by Erik Frye. var $_shareContainer = $(“.sharrre-container”), $_header = $(‘#header’), $_postEntry = $(‘.entry’), $window = $(window), startSharePosition = $_shareContainer.offset (),//Object contentBottom = $_postEntry.offset().top + $_postEntry.outerHeight(), topOfTemplate = $_header.offset().top, topSpacing = _setTopSpacing(); //Triggered when scrolling 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( { //Top: scrollTop + topSpacing, left: startSharePosition.left, } ); } else if (scrollTop < startSharePosition.top + ( topSpacing - 1 ) ) { $_shareContainer.css( {position:'relative' } ); $_shareContainer.offset( { 顶部: $_postEntry.offset().top, 左侧:startSharePosition.left, } ); } }, // 调整大小时触发 shareMove = function() { startSharePosition = $_shareContainer.offset(); contentBottom = $_postEntry.offset().top + $_postEntry.outerHeight(); topOfTemplate = $_header.offset().top; _setTopSpacing(); }; setTimeout( function() { contentBottom = $_postEntry.offset().top + $_postEntry.outerHeight(); }, 2000); 函数_setTopSpacing(){ var distanceFromTop = 20; if( $window.width() > 1024 ) { topSpacing = distanceFromTop + $(‘.nav-wrap’).outerHeight(); } else { topSpacing = distance from top; return top spacing; } //Set event listener $window.on(‘scroll’, _ .throttle( function() { if ( $window.width() > 719 ) { shareScroll(); } else { $_shareContainer.css({ top: ”, left: ”, position: ” }) } } , 50 ) ); $window.on(‘resize’, _.debounce( function() { if ( $window.width() > 719 ) { shareMove(); } else { $_shareContainer.css({ top:’ ‘, left:’ ‘, position:” }) } }, 50 ) ); });

Leave a Reply Cancel reply

Canopy Tents Professional Customization

- Sponsored Ad -
Canopy Tents Professional Customization