PageSourceSearch

https://www.risu-shop.jp/journal/wp-content/themes/risu_blog/js/custom_2.js?ver=1.0.0

js risu-shop.jp collected 2026-10-04 20:11:10 UTC 1,182 bytes, 28 lines download raw bytes

1/*========= ページ内リンク ===============*/  
2window.addEventListener('DOMContentLoaded', function(){
3    var windowWidth = $(window).width();
4    var headerHight = 200; 
5    jQuery('a[href^="#"]').click(function() {
6    var speed = 1000;
7    var href= jQuery(this).attr("href");
8    var target = jQuery(href == "#" || href == "" ? 'html' : href);
9    var position = target.offset().top-headerHight;
10    jQuery('body,html').animate({scrollTop:position}, speed, 'swing');
11    return false;
12   });
13
14
15/*========= タブ切替 ===============*/ 
16$(".js-content:first-of-type").css("display", "block");
17// タブをクリックすると
18$(".js-tab").on("click", function () {
19// 現在選択されているタブからcurrentを外す
20$(".current").removeClass("current");
21// クリックされたタブにcurrentクラスを付与
22$(this).addClass("current");
23// クリックされた要素が何番目か取得(クリックしたタブのインデックス番号を取得)
24const index = $(this).index();
25// クリックしたタブのインデックス番号と同じコンテンツを表示
26$(".js-content").hide().eq(index).fadeIn(800);
27});
28});

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.