PageSourceSearch

https://diamond-rm.net/wp-content/themes/drm_online/js/common.js?ver=20250625

js diamond-rm.net collected 2026-10-02 03:29:40 UTC 3,175 bytes, 124 lines download raw bytes

1// wordpress jQuery ・ォ・ラ・サ・・ッ
2jQuery(function($){
3
4//スムーズスクロール
5$(function() {
6	// #で始まるアンカーをクリックした場合に処理
7	$("a[href^='#']").not('.modal').click(function() {
8		// スクロールの速度
9		var speed = 500;
10		// ミリ秒
11		// アンカーの値取得
12		var href = $(this).attr("href");
13		// 移動先を取得
14		var target = $(href == "#" || href == "" ? 'html' : href);
15		// 移動先を数値で取得
16		var position = target.offset().top;
17		// スムーススクロール
18		$('html,body').animate({scrollTop : position}, speed, 'swing');
19		return false;
20	});
21});
22
23//追従アイコン
24$(function() {
25	var topBtn = $('.banner-follow');
26	var showFlag = false;
27	topBtn.css({'bottom':'-300px','opacity':'0'});
28	var showFlag = false;
29	var windowWidth = window.innerWidth;
30	//スクロールが100に達したらボタン表示
31	$(window).scroll(function() {
32		if ($(this).scrollTop() > 200) {
33			if (showFlag == false) {
34				showFlag = true;
35				topBtn.stop().animate({
36					'opacity' : '1',
37					'bottom' : '0',
38				}, 200);
39			}
40		} else {
41			if (showFlag) {
42				showFlag = false;
43				topBtn.stop().animate({
44					'opacity' : '0',
45					'bottom' : '-300px',
46				}, 500);
47			}
48		}
49	});
50});
51
52// サイドメニュースライダー
53$(function() {
54  var swiper = new Swiper('.swiper-container-side', {
55    loop: true,
56   autoplay: {
57      delay: 7000,
58      disableOnInteraction: true
59    },
60    pagination: {
61      el: '.swiper-pagination',
62      type: 'bullets',
63      clickable: true,
64    },
65
66  });
67});
68
69// リード施策でサイドメニューにボタンを入れる場合ボタンだけを表示させる
70$(function() {
71 var asideChild = $('aside.side-stycky').children().children();
72 	asideChild.has('a').css('display','block');
73});
74
75
76// 。チ・ワ・ソ・ヌラキ樟・ミ・ハゥ`、ャマ訷ィ、・
77$('.box-under-ad-close').click(function () {
78	$('.box-under-ad').hide();
79});
80
81//統計データリンクテーブル開閉
82$(document).ready(function() {
83	$('#retaildata-list-toggle').click(function(){
84		$('.retaildata-list-old').slideToggle("fast");
85	});
86});
87
88// 関連記事タブ
89$(function(){
90	$('.tab_keyword_button').on('click', function(){
91	  let index = $('.tab_keyword_button').index(this);
92  
93	  $('.tab_keyword_button').removeClass('tab_keyword_button_active');
94	  $(this).addClass('tab_keyword_button_active');
95	  $('.tab_keyword_content').removeClass('tab_keyword_content_active');
96	  $('.tab_keyword_content').eq(index).addClass('tab_keyword_content_active');
97	});
98}); 
99
100// よくある質問アコーディオン
101$('.accordion-header').click(function() {
102	$(this).next().slideToggle();
103	$(this).toggleClass('active');
104});
105
106// 「詳細を見る」
107$('.view-details-button span').click(function() {
108	$(this).parent().parent().css({
109		'height': 'auto',
110	});
111	$(this).parent().css({
112		'background': 'none',
113	});
114	$(this).css({
115		'display': 'none',
116	});
117})
118
119
120});//END jQuery カプセル化
121
122function searchBook() {
123	document.keysearch.submit();
124}

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.