PageSourceSearch

https://amigolink.jp/cms/wp-content/themes/striking_r/js/jquery-sticker.min.js?ver=0.6.5

js amigolink.jp collected 2026-10-02 01:04:27 UTC 10,018 bytes, 3 lines download raw bytes

1/*! Striking Multiflex
2* Copyright (c) 2015 Lyon Holding Limited O/A www.thethemebuilders.com */
3!function(a,b,c,d){"use strict";var e=c(a),f=e.height(),g={count:0,started:!1,instances:[],types:{},generateId:function(){return this.count++,this.count},scroll:function(){c.each(g.instances,function(a,b){b.enabled&&(g.types[b.type].scroll(b),"function"===typeof b.options.scroll&&b.options.scroll.call(b))})},resize:function(){f=e.height(),c.each(g.instances,function(a,b){b.enabled&&(g.types[b.type].resize(b),g.types[b.type].scroll(b),"function"===typeof b.options.resize&&b.options.resize.call(b))})},start:function(a){this.started||(e.on("scroll.sticker",g.throttle(this.scroll,a)),e.on("orientationchange.sticker resize.sticker",g.throttle(this.resize,a)),this.started=!0)},stop:function(){this.started=!1,e.off(".sticker")},throttle:function(a,b){var d,e,f,c=Date.now||function(){return(new Date).getTime()},g=null,h=0,i=function(){h=c(),g=null,f=a.apply(d,e),d=e=null};return function(){var j=c(),k=b-(j-h);return d=this,e=arguments,k<=0?(clearTimeout(g),g=null,h=j,f=a.apply(d,e),d=e=null):g||(g=setTimeout(i,k)),f}}},h=c.Sticker=function(a,b){this.element=a,this.$element=c(a),this.type=b.type!==d?b.type:h.defaults.type,this.options=c.extend({},h.defaults,g.types[this.type].defaults,b),this.enabled=!1,this.sticky=!1;var e=this.options.namespace;this.classes={},this.classes.wrapper=e+"-wrapper",this.classes.enabled=e+"_enabled",this.classes.sticky=e+"_sticky",this.components={},this.init()};h.defaults={namespace:"sticker",type:"top",throttle:"250",init:null,destroy:null,scroll:null,resize:null,enable:null,disable:null,sticky:null,unsticky:null},h.registerType=function(a,b){g.types[a]=b},h.prototype={constructor:h,init:function(){this.id=g.generateId();var a=c("<div></div>").addClass(this.classes.wrapper),b=this.$element.attr("id");"undefined"!==typeof b&&a.attr("id",b+"-"+this.options.namespace+"-wrapper"),this.$element.wrapAll(a),this.$wrapper=this.$element.parent(),g.types[this.type].init(this),"function"===typeof this.options.init&&this.options.init.call(this),this.enable(),g.instances.push(this),g.start(this.options.throttle)},destroy:function(){this.$element.unwrap();for(var a in g.instances)g.instances[a].id===this.id&&g.instances.splice(a,1);0===g.instances.length&&g.stop(),"function"===typeof this.options.destroy&&this.options.destroy.call(this)},enable:function(){this.enabled=!0,g.types[this.type].enable(this),this.$wrapper.addClass(this.classes.enabled),g.types[this.type].scroll(this),"function"===typeof this.options.enable&&this.options.enable.call(this)},disable:function(){this.enabled=!1,this.sticky=!1,g.types[this.type].disable(this),this.$wrapper.removeClass(this.classes.sticky).removeClass(this.classes.enabled),"function"===typeof this.options.disable&&this.options.disable.call(this)},on:function(a,b){"string"===typeof a&&"function"===typeof b&&(this.options[a]=b)},off:function(a){"string"===typeof a&&(this.options[a]=null)},set:function(a,b){this.options[a]=b},update:function(){this.enabled&&g.types[this.type].scroll(this)}},h.registerType("top",{defaults:{topSpace:0,check:!0,boxClass:"box-layout",bodyWrapper:".body-wrapper",adminElement:"#wpadminbar",resetTopWrapper:function(a,b){if(""!=a.options.bodyWrapper){var d=c(a.options.bodyWrapper);if(d.length){var f=d[0].getBoundingClientRect(),g=f.top+parseInt(d.css("border-top-width"));g>0&&a.$element.css({top:g}),0==e.scrollTop()&&a.$element.css({top:""}),1==b&&0==g&&a.$element.css({top:0})}}},initBoxModeWidth:function(a){if(c("body").hasClass("box-layout")){var d=c("#header-sticker-wrapper");if(d.length){var e=d[0].getBoundingClientRect(),f=e.width,g=d.outerWidth(),h="#"+a.element.id+" .inner";f-=20,g>=940?c(h).css("width",f):c(h).css("width",""),"function"===typeof ThemeMakeElementFitToContainer&&ThemeMakeElementFitToContainer()}}}},init:function(){},scroll:function(a){if(""!=a.options.adminElement){var b=c(a.options.adminElement);if(b.length){var d=b[0].getBoundingClientRect();a.options.topSpace=d.height,d.top<0?(a.options.topSpace=d.height+d.top,a.options.topSpace<0&&(a.options.topSpace=0)):(a.sticky||a.$element.css({top:""}),a.options.topSpace=d.height)}}a.sticky||a.options.resetTopWrapper(a,!1);var f=e.scrollTop(),g=a.$wrapper.offset().top,h=a.options.topSpace;h>g&&g>=0&&(h=g);var i=g-h-f;i<0?a.sticky||(a.sticky=!0,a.$wrapper.addClass(a.classes.sticky),a.$element.css({position:"fixed",top:h}),"function"===typeof a.options.sticky&&a.options.sticky.call(a)):a.sticky&&(a.sticky=!1,a.$wrapper.removeClass(a.classes.sticky),a.$element.css({position:"",top:""}),"function"===typeof a.options.unsticky&&a.options.unsticky.call(a),a.options.resetTopWrapper(a,!0))}
3,resize:function(a){if(""!=a.options.adminElement){var b=c(a.options.adminElement);if(b.length){var d=b.css("position"),e=b.height(),f=b[0].getBoundingClientRect(),h=e;"absolute"==d&&f.top<0&&(h=0),a.options.topSpace=h,a.$element.css({top:a.options.topSpace}),g.types[a.type].scroll(a)}}a.$wrapper.css("height",a.$element.outerHeight(!0)),a.options.initBoxModeWidth(a,!1)},enable:function(a){if(a.$wrapper.css("height",a.$element.outerHeight(!0)),a.options.check){var b=a.$element.outerHeight(!0);a.checkInterval=setInterval(function(){b!=a.$element.outerHeight(!0)&&(b=a.$element.outerHeight(!0),a.$wrapper.css("height",a.$element.outerHeight(!0)))},500)}a.options.initBoxModeWidth(a,!1)},disable:function(a){a.options.check&&clearInterval(a.checkInterval),a.$element.css({position:"",top:""}),a.$wrapper.css("height","")}}),h.registerType("fill",{defaults:{useFlex:!0,check:!0,bodyWrapper:".body-wrapper",preventHopping:!1,disableStickyFooter:function(a,b){a.sticky=!1,a.$wrapper.removeClass(a.classes.sticky),a.$element.css("min-height",""),b&&"function"===typeof a.options.unsticky&&a.options.unsticky.call(a)},callback:null},init:function(a){a.options.useFlex&&this.vhSupport()&&this.flexSupport()||(a.options.useFlex=!1),a.paddingBottom=parseInt(a.$element.css("padding-bottom"),10)},scroll:function(a){if(!a.options.useFlex){var b=e.scrollTop(),d=c("body").height(),g=a.$element,h=c("body");if(a.options.preventHopping)return void(a.options.preventHopping=!1);if(f=e.height(),0===b&&d<=f){if(!a.sticky){var i=0,j=parseInt(c("body").css("margin-bottom"),10),k=parseInt(c("body").css("border-bottom-width")),l=parseInt(c("body").css("padding-bottom"));if(i=j,""!=a.options.bodyWrapper){if(0==k&&0==l){var m=parseInt(c(a.options.bodyWrapper).css("margin-bottom"),10);j<m&&(i=m)}}else i-=a.paddingBottom;var n=g[0].getBoundingClientRect(),o=c(h)[0].getBoundingClientRect(),p=f-o.bottom-i;p+=n.height,a.sticky=!0,a.$wrapper.addClass(a.classes.sticky),a.$element.css("min-height",p),"function"===typeof a.options.sticky&&a.options.sticky.call(a)}}else(0!==b&&d>f||0===b&&d>f)&&a.sticky&&a.options.disableStickyFooter(a,!0);"function"===typeof a.options.callback&&a.options.callback.call(a,b,d,f)}},resize:function(a){a.options.useFlex||a.options.disableStickyFooter(a,!1)},enable:function(a){if(a.options.useFlex)a.$wrapper.parent().addClass(a.options.namespace+"_fill-container"),a.$wrapper.addClass(a.options.namespace+"_fill");else if(a.options.check){var b=c("body").height();a.checkInterval=setInterval(function(){b!==c("body").height()&&(b=c("body").height(),a.options.disableStickyFooter(a,!1),g.types[a.type].scroll(a))},500)}},disable:function(a){a.options.useFlex?(a.$wrapper.parent().removeClass(a.options.namespace+"-fill-container"),a.$wrapper.removeClass(a.options.namespace+"-fill")):(a.options.check&&clearInterval(a.checkInterval),a.options.disableStickyFooter(a,!0))},flexSupport:function(){var a=b.body||b.documentElement,c=a.style,d="boxDirection";if("string"===typeof c[d])return!0;var e=["Moz","Webkit","Khtml","O","ms"];d=d.charAt(0).toUpperCase()+d.substr(1);for(var f=0;f<e.length;f++)if("string"===typeof c[e[f]+d])return!0;return!1},vhSupport:function(){var b=c('<div style="height:50vh;visibility:hidden;" />').appendTo("body"),d=parseInt(a.innerHeight/2,10),e=parseInt((a.getComputedStyle?a.getComputedStyle(b.get(0),null):b.get(0).currentStyle).height,10);return b.remove(),e===d}}),h.registerType("sidebar",{defaults:{topSpace:0,bottom:null,unbottom:null},init:function(){},scroll:function(a){var k,l,b=a.options.topSpace,c=e.scrollTop()+b,d=a.$element.outerHeight(),f=a.$parent.height(),g=parseInt(a.$parent.css("border-top-width"),10),h=parseInt(a.$parent.css("padding-top"),10),i=a.$parent.offset().top+g+h,j=a.$element.offset().top-parseInt(a.$element.css("padding-top"),10);!a.sticky&&c>j?(a.sticky=!0,a.$wrapper.addClass(a.classes.sticky),a.$element.css({position:"fixed",top:b}),"function"===typeof a.options.sticky&&a.options.sticky.call(a)):a.sticky&&(c<i?(a.sticky=!1,a.$wrapper.removeClass(a.classes.sticky),a.$element.css({position:"",top:"",bottom:""}),"function"===typeof a.options.unsticky&&a.options.unsticky.call(a)):(k=c+d>f+i,k?(a.bottomed=!0,l=parseInt(a.$parent.css("padding-bottom"),10),a.$element.css({position:"absolute",top:"",bottom:l}),"function"===typeof a.options.bottom&&a.options.bottom.call(a)):a.bottomed&&(a.bottomed=!1,a.$element.css({position:"fixed",bottom:"",top:b}),"function"===typeof a.options.unbottom&&a.options.unbottom.call(a))))},resize:function(){},enable:function(a){var b=a.$element.outerHeight(),c=a.$element.outerWidth(!0),d=a.$element.css("float"),e=a.$element.css("display"),f=a.$element.css("vertical-align");a.$wrapper.css({width:c,height:b,display:e,"vertical-align":f,"float":d}),a.$parent=a.$wrapper.parent(),a.$parent.css("position","relative"),a.bottomed=!1,a.sticky=!1},disable:function(a){a.$wrapper.css({width:"",height:"",display:"","vertical-align":"","float":""}),a.$element.css({position:"",top:""})}}
3),c.fn.sticker=function(a){if("string"===typeof a){var b=a,d=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=c.data(this,"sticker");a&&"function"===typeof a[b]&&a[b].apply(a,d)})}return this.each(function(){c.data(this,"sticker")||c.data(this,"sticker",new h(this,a))})}}(window,document,jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.