PageSourceSearch

https://www.sigma-sol.co.jp/common/js/function.js

js sigma-sol.co.jp collected 2026-10-07 13:02:11 UTC 3,132 bytes, 118 lines download raw bytes

1
2function MM_openBrWindow(theURL,winName,features) { //v2.0
3  window.open(theURL,winName,features);
4}
5
6
7$(function() {
8	$("#panel-btn").click(function() {
9		$("#h_navi").slideToggle(200);
10		$("#panel-btn-icon").toggleClass("close");
11		return false;
12	});
13});
14
15
16$(function(){
17	var $setElem = $('.imgChange'),
18	pcName = '_pc',
19	spName = '_sp',
20	replaceWidth = 640;
21
22	$setElem.each(function(){
23		var $this = $(this);
24		function imgSize(){
25			var windowWidth = parseInt($(window).width());
26			if(windowWidth >= replaceWidth) {
27				$this.attr('src',$this.attr('src').replace(spName,pcName)).css({visibility:'visible'});
28			} else if(windowWidth < replaceWidth) {
29				$this.attr('src',$this.attr('src').replace(pcName,spName)).css({visibility:'visible'});
30			}
31		}
32		$(window).resize(function(){imgSize();});
33		imgSize();
34	});
35});
36$(function(){
37	var $setElem = $('.imgChange2'),
38	pcName = '_pc',
39	spName = '_sp',
40	replaceWidth = 810;
41
42	$setElem.each(function(){
43		var $this = $(this);
44		function imgSize(){
45			var windowWidth = parseInt($(window).width());
46			if(windowWidth >= replaceWidth) {
47				$this.attr('src',$this.attr('src').replace(spName,pcName)).css({visibility:'visible'});
48			} else if(windowWidth < replaceWidth) {
49				$this.attr('src',$this.attr('src').replace(pcName,spName)).css({visibility:'visible'});
50			}
51		}
52		$(window).resize(function(){imgSize();});
53		imgSize();
54	});
55});
56
57
58$(function() {
59    var topBtn = $('#pagetop');    
60    topBtn.hide();
61    //スクロールが100に達したらボタン表示
62    $(window).scroll(function () {
63        if ($(this).scrollTop() > 100) {
64            topBtn.fadeIn();
65        } else {
66            topBtn.fadeOut();
67        }
68    });
69    //スクロールしてトップ
70    topBtn.click(function () {
71        $('body,html').animate({
72            scrollTop: 0
73        }, 500);
74        return false;
75    });
76});
77
78
79$(function() {
80	
81	//ロード or スクロールされると実行
82	$(window).on('load scroll', function(){
83		
84		//ヘッダーの高さ分(20px)スクロールするとfixedクラスを追加
85		if ($(window).scrollTop() > 20) {
86			$('#gHeaderArea').addClass('fixed');
87		} else {
88			//30px以下だとfixedクラスを削除
89			$('#gHeaderArea').removeClass('fixed');
90		}
91		
92	});
93
94    $(function(){
95    	function pagelink(heightnum){
96    	var headerHight = heightnum; 
97    	$("a.anchorlink").click(function(){
98			var href= $(this).attr("href");
99			var target = $(href == "#" || href == "" ? 'html' : href);
100			var position = target.offset().top-headerHight;
101			$("html, body").animate({scrollTop:position}, 600, "swing");
102			return false;
103		});
104		/* outpagelink */     
105		var url = $(location).attr("href");
106			if (url.indexOf("?id=") == -1) {
107		}else{
108			var url_sp = url.split("?id=");
109			var hash = "#" + url_sp[url_sp.length - 1];
110			var target2 = $(hash);
111			var position2 = target2.offset().top-headerHight;
112			$("html, body").animate({scrollTop:position2}, 600, "swing");
113		}
114	}
115	pagelink(50);//ヘッダーの高さを入れる
116	});
117
118});

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.