AppTweak日本上陸当初は、新型コロナウイルスの影響により多くのイベントが中止・延期となったり、オンライン …
:function(){if (!this.hasClass("notTop")){this.addClass("notTop");this.removeClass("top");if (this.onNotTop){this.onNotTop.call(this);}}},bottom:function(){if (!this.hasClass("bottom")){this.addClass("bottom");this.removeClass("notBottom");if (this.onBottom){this.onBottom.call(this);}}},notBottom:function(){if (!this.hasClass("notBottom")){this.addClass("notBottom");this.removeClass("bottom");if (this.onNotBottom){this.onNotBottom.call(this);}}},shouldUnpin:function(details){var scrollingDown = details.direction === "down";return scrollingDown && !details.top && details.toleranceExceeded;},shouldPin:function(details){var scrollingUp = details.direction === "up";return (scrollingUp && details.toleranceExceeded) || details.top;},addClass:function(className){this.elem.classList.add.apply( this.elem.classList,this.classes[className].split(" ") );},removeClass:function(className){this.elem.classList.remove.apply( this.elem.classList,this.classes[className].split(" ") );},hasClass:function(className){return this.classes[className].split(" ").every(function(cls){return this.classList.contains(cls);},this.elem);},update:function(details){if (details.isOutOfBounds){return;}if (this.frozen === true){return;}if (details.top){this.top();}else{this.notTop();}if (details.bottom){this.bottom();}else{this.notBottom();}if (this.shouldUnpin(details)){this.unpin();}else if (this.shouldPin(details)){this.pin();}}};Headroom.options ={tolerance:{up:0,down:0},offset:0,scroller:isBrowser() ? window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}};Headroom.cutsTheMustard = isSupported();return Headroom;}));if(Headroom.cutsTheMustard) { let headroomElements = document.querySelectorAll(".js-headroom"); headroomElements.forEach(function(element) { let headroom = new Headroom(element); headroom.init(); }); }