コンテンツにスキップ

利用者:Jkr2255/independentlyScrollableSidebar.js

お知らせ: 保存した後、ブラウザのキャッシュをクリアしてページを再読み込みする必要があります。

多くの WindowsLinux のブラウザ

  • Ctrl を押しながら F5 を押す。

Mac における Safari

  • Shift を押しながら、更新ボタン をクリックする。

Mac における ChromeFirefox

  • Cmd Shift を押しながら R を押す。

詳細についてはWikipedia:キャッシュを消すをご覧ください。

jQuery(function($){function c(){j.toggle(a.position().top!=0);k.toggle(f()>0)}function h(){return g.height()-i-a.outerHeight()}function l(e,b){typeof issWheelSpeed=="undefined"&&(issWheelSpeed=20);var d;e.preventDefault();d=b*issWheelSpeed+a.position().top;if(b>0){if(a.position().top==0)return;d>0&&(d=0)}else{if(!(f()>0))return;d<h()&&(d=h())}a.css("top",d);c()}var a=$("#mw-panel");$('<div id="iss-base"><div id="iss-top"></div></div>').appendTo("body");$("#iss-base,#iss-top").width(a.outerWidth(!0));
var i=a.position().top,b=$("#iss-top").css("top",i),g=$("#iss-base");a.appendTo(b).css("top",0);$("#p-logo").appendTo("body").css("top",0).css("position","fixed");var j=$('<div class="iss-btn up">\u25b2</div>').appendTo(b),k=$('<div class="iss-btn down">\u25bc</div>').appendTo(g);$("div.iss-btn").width(g.width()-4);var f=function(){return a.outerHeight(!0)+a.position().top-(g.height()-i)};$(window).resize(c);a.find("h5").click(function(){window.setTimeout(c,500)});c();typeof issSpeed=="undefined"&&
(issSpeed=250);$("div.iss-btn").mouseleave(function(){a.stop(!0);c()});k.mouseenter(function(){if(f()>0){var e=f()*1E3/issSpeed;a.animate({top:h()},e,"linear",c)}});j.mouseenter(function(){if(a.position().top!=0){var e=-a.position().top;a.animate({top:0},e*1E3/issSpeed,"linear",c)}});window.opera||typeof b.get(0).onmousewheel!="undefined"?b.bind("mousewheel",function(a){l(a,a.wheelDelta/120)}):b.bind("DOMMouseScroll",function(a){l(a,a.detail/-3)})});