preview site for fix and fresh

This commit is contained in:
2026-07-22 05:07:13 -05:00
parent b19fdee30d
commit f70adf2a5e
1228 changed files with 38196 additions and 149050 deletions
@@ -0,0 +1,48 @@
(function($){
$.fn.scrollShowTime=function(o){
var getOption = {
correctionY: 100
, onShow: function(){}
}
$.extend(getOption, o);
return this.each(function(){
var _this = $(this)
,topOffset
,windowHeight
,_visible=false
,_win=$(window)
,_doc=$(document)
;
init();
function init(){
setTopOffset();
_this.addClass('hide_state');
addEventHandler();
}//end init
function setTopOffset(){
topOffset = _this.offset().top;
}
function addEventHandler(){
$(window).on('scroll',function(){
setTopOffset();
positionListener();
}).trigger('scroll');
$(window).on('resize', function(){
setTopOffset();
positionListener();
})
}
positionListener();
function positionListener(){
windowHeight = $(window).height();
if(((windowHeight+_doc.scrollTop()-getOption.correctionY) > topOffset) && (!_visible)){
_visible = true;
_this.toggleClass("hide_state show_state");
getOption.onShow();
}
}
})
}
})(jQuery)