PageSourceSearch

https://jp.toto.com/data-migration/products/common/js/parts_common_1711.js

js toto.com collected 2026-09-24 08:47:20 UTC 5,227 bytes, 191 lines download raw bytes

1$(function(){
2"use strict";
3	$("#side_nav .close a").bind("click",function(){
4		$("#side_nav").addClass("close");
5		$("#side_nav a.link").hide();
6		$("#side_nav a.open").css("display","block");
7	});
8	$("#side_nav a.open").bind("click",function(){
9		$("#side_nav").removeClass("close");
10		$("#side_nav a.open").hide();
11		$("#side_nav a.link").css("display","block");
12	});
13});
14
15$(function(){
16	"use strict";
17	$(window).on("load resize",function(){
18		$(".match_height").matchHeight();
19	});
20});
21
22
23$(function(){
24	"use strict";
25	var winW=0;
26	var accordion1_flg=0;
27	$(window).on("load resize",function(){
28		winW=$(window).width();
29		if(winW >= 768){
30			$("#accordion1").show();
31		}
32	});
33	$("#accordion1 + .more_list a ,#accordion1 + .more_facility a").bind("click",function(){
34		var accordion_btn_txt = $(this).html();
35		if(accordion1_flg===0){
36			accordion1_flg=1;
37			$(this).html(accordion_btn_txt.replace('見る','閉じる'));
38			$(this).addClass("close");
39			$("#accordion1").slideDown(500);
40		}else{
41			accordion1_flg=0;
42			$(this).html(accordion_btn_txt.replace('閉じる','見る'));
43			$(this).removeClass("close");
44			$("#accordion1").slideUp(500);
45		}
46	});
47});
48
49function MM_openBrWindow(theURL,winName,features) { //v2.0
50  window.open(theURL,winName,features);
51}
52
53
54$(function(){
55"use strict";
56
57
58	if ( $('#side_nav2').length ) {
59		var $sideNav2 = $('#side_nav2');
60		var $fbtn = $("#f-btn");
61		var $sns = $("#sns");
62
63		var winW = 0;
64		var viewPc = false;
65
66		$(window).on("load",function(){
67			winW=$(window).width();
68			if(winW >= 768){
69				viewPc = true;
70			}
71			cvbtnInit();
72
73			$sideNav2.find(".close a").bind("click",function(){
74				if( $sideNav2.hasClass('close') ){
75					nav2_open();
76
77				}else{
78					nav2_close();
79				}
80			});
81			$sideNav2.find("a.open").bind("click",function(){
82				nav2_open();
83			});
84       });
85 
86       $(window).load(function(){
87           window.setTimeout( function(){
88               $(window).on('scroll', function(){
89                   var scrollTop = $(window).scrollTop();
90 
91                   if ( scrollTop > 50 ) {
92                       nav2_close();
93                   }
94               });
95           }, 1000 );
96       });
97
98
99
100		$(window).on("resize",function(){
101			winW=$(window).width();
102			if(winW >= 768){
103				viewPc = true;
104			}
105			cvbtnInit();
106		});
107
108
109		var cvbtnOpenPos = 0;
110		var cvbtnClosePos = 0;
111
112
113
114		function cvbtnInit(){
115			if( viewPc ){
116				cvbtnClosePos = $sideNav2.find("> nav > ul > li.showroom > dl > dt").height() + 1;
117				cvbtnOpenPos = $("#side_nav2").height() + 1;
118				$fbtn.css("bottom",cvbtnOpenPos + "px");
119				$fbtn.css("transition","all .2s ease-in-out");
120				$sns.css("transform","translateY(-" + cvbtnOpenPos + "px)");
121				$sns.css("transition","all .2s ease-in-out");
122
123			}else{
124				var navHight = $sideNav2.find("> nav > ul > li.showroom > dl > dt").height();
125				var iconPosY = (navHight / 2) - 6;
126				$sideNav2.find("> nav > ul > li.close > a").css("background-position-y",iconPosY + "px");
127				$fbtn.css("border-top","solid 1px #e7eced");
128
129			}
130		}
131
132
133		function nav2_open(){
134			$("#side_nav2").removeClass("close");
135			$sideNav2.find("a.open").hide();
136			$sideNav2.find("a.link").css("display","block");
137            $("#side_nav2").find("li.close a").text("close");
138			$("#side_nav2").css("transition","all .2s ease-in-out");
139
140
141			if(viewPc){
142				$("#side_nav2").css('transform',"translateY(0)");
143				$fbtn.css("bottom",cvbtnOpenPos + "px");
144				$sns.css("transform","translateY(-" + cvbtnOpenPos + "px)");
145
146			}else{
147				var navHight = $sideNav2.find("> nav > ul > li > dl > dt").height();
148				var fbtnHight = $fbtn.outerHeight();
149
150				$("#side_nav2").css('transform',"translateY(-" + fbtnHight + "px)");
151			}
152		}
153
154		function nav2_close(){
155			$("#side_nav2").addClass("close");
156	        $("#side_nav2").find("li.close a").text("open");
157			$sideNav2.find("a.link").hide();
158			$sideNav2.find("a.open").css("display","block");
159
160			$("#side_nav2").css("transition","all .2s ease-in-out");
161
162			if(viewPc){
163				var navHight = $("#side_nav2").height();
164				var navHeadHight = $sideNav2.find("> nav > ul > li > dl > dt").height();
165				navHight = navHight - navHeadHight;
166				$("#side_nav2").css('transform',"translateY(" + navHight + "px)");
167
168				$fbtn.css("bottom",cvbtnClosePos + "px");
169				$sns.css("transform","translateY(-" + cvbtnClosePos + "px)");
170			}else{
171				var navHight = $("#side_nav2").height();
172				var navHeadHight = $sideNav2.find("> nav > ul > li > dl > dt").height();
173				var fbtnHight = $("#f-btn").outerHeight();
174				navHight = navHight - navHeadHight - fbtnHight;
175				$("#side_nav2").css('transform',"translateY(" + navHight + "px)");
176
177			}
178		}
179
180	}
181});
182
183//カタらぼ 別ウィンドウ用script
184function CatalogViewOpenAction(url){
185    var catalogViewWnd;
186    catalogViewWnd = window.open(url, 'CatalogView', 'toolbar=no, location=no, status=no, scrollbars=no, menubar=no, width=1000, height=700, resizable=yes');
187}
188function openOldCat(url){
189    window.open(url,"new","width=1010,height=675,top=0,left=0,resizable=yes");
190    return false;
191}

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.