PageSourceSearch

https://www.otsukael.com/common/js/common.js

js otsukael.com collected 2026-10-06 18:34:25 UTC 2,182 bytes, 76 lines download raw bytes

1$(function(){
2	if($(window).width() <= 768){
3		//sp right menu
4		$('#open .open,.close_sp').on('click',function(){
5			$('#pageslide').stop().animate({width: 'toggle'})
6		})
7
8		//sp Accordion menu
9		var over_flg = false;
10		$('#tab_box span').on('click',function(){
11
12			if ($(this).attr('class') == 'selected') {
13				// メニュー非表示
14				$(this).removeClass('selected').next('.down').slideUp('fast');
15			} else {
16				// 表示しているメニューを閉じる
17				$('#tab_box span').removeClass('selected');
18				$('.down').hide();
19
20				// メニュー表示
21				$(this).addClass('selected').next('.down').slideDown('fast');
22			}
23		});
24		// マウスカーソルがメニュー上/メニュー外
25		$('#tab_box span,.down').hover(function(){
26			over_flg = true;
27		}, function(){
28			over_flg = false;
29		});
30
31		// メニュー領域外をクリックしたらメニューを閉じる
32		$(document).on('click',function (e) {
33			if (!$(e.target).closest('#pageslide').length) {
34				$('#pageslide').stop().animate({width: 'hide'})
35			}
36			if (over_flg == false) {
37				$('#tab_box span').removeClass('selected');
38				$('.down').slideUp('fast');
39			}
40		})
41	}
42	/* pagetop button */
43	//ボタン表示スクリプト
44	var pagetop = $('#page_top');
45	pagetop.hide();
46
47	$(window).scroll(function () {
48		if ($(this).scrollTop() > 100) {
49			pagetop.fadeIn();
50		} else {
51			pagetop.fadeOut();
52		}
53	});
54
55	$('a[href^="#"]').click(function() {
56		//意図しないアンカー発火防止
57		if(!$(this).closest('ul').hasClass('no_anker')){
58			var href= $(this).attr('href');
59			var target = $(href == '#' || href == '' ? 'html' : href);
60			var position = target.offset().top;
61			//移動するスクリプト
62			$('html,body').animate({scrollTop: position}, 500, 'swing');
63			return false;
64		}
65	});
66
67	/*catalogdl button*/
68	//カタログダウンロード時にポップアップを表示させる
69	$('.catalog_dl').click(function() {
70		if(!confirm("ダウンロードを行います。\n「OK」をクリックすると、ダウンロードを開始します")){
71			return false;
72		}else{
73			return true;
74		}
75	});
76});

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.