HOME
ウィズウィングループを知る
人を知る
仕事を知る
採用情報を知る
お知らせ
お問い合わせ
応募エントリー
就職説明会エントリー
まつなが整骨院
ウィズウィングループを知る
人を知る
仕事を知る
採用情報を知る
応募
エントリー
就職説明会
エントリー
$(() => { // スクロール量に合わせて要素の幅を変える関数 const scrollColourBar = () => { window.requestAnimationFrame(() => { const scrollAmount = $(document).scrollTop(); const documentHeight = $(document).height(); const windowHeight = $(window).height(); const scrollWidth = scrollAmount / (documentHeight - windowHeight) * 110; const targetElem = $('.line'); targetElem.css('height', scrollWidth + '%'); }); }; // 初期表示時 (ハッシュ付きでアクセスした場合にもスクロールする) scrollColourBar(); // スクロール・リサイズ時に再描画する $(window).on('scroll resize', scrollColourBar); });