PageSourceSearch

https://www.hitachi-zaidan.org/js/jp/add/modify.js

js hitachi-zaidan.org collected 2026-10-02 14:40:42 UTC 3,723 bytes, 125 lines download raw bytes

1/* **************************************************
2
3Name: modify.js
4
5Description: Sub Settings
6
7Create: 2019.02.01
8Update: 20xx.xx.xx
9
10Copyright 2019 Hitachi, Ltd.
11
12***************************************************** */
13
14
15/* Image Switch
161.imgƒ^ƒO‚̃Nƒ‰ƒX‚É[Switch]‚ðÝ’è
172.‰æ‘œƒtƒ@ƒCƒ‹–¼‚̐ڔöŒê‚É[_pc][_sp]‚‚¯‚Ä—pˆÓ
183.768ƒsƒNƒZƒ‹‚ʼn摜–¼‚ªØ‚è‘Ö‚í‚é
19=========================================================================================== */
20$(function () {
21	var $setElem = $('.Switch'),
22		pcName = '_pc',
23		spName = '_sp',
24		replaceWidth = 768;
25
26	$setElem.each(function () {
27		var $this = $(this);
28
29		function imgSize() {
30			var windowWidth = parseInt(window.innerWidth);
31			if (windowWidth >= replaceWidth) {
32				$this.attr('src', $this.attr('src').replace(spName, pcName)).css({
33					visibility: 'visible'
34				});
35			} else if (windowWidth < replaceWidth) {
36				$this.attr('src', $this.attr('src').replace(pcName, spName)).css({
37					visibility: 'visible'
38				});
39			}
40		}
41		$(window).resize(function () {
42			imgSize();
43		});
44		imgSize();
45	});
46});
47
48
49
50//================================================
51// Smooth Scroll ‚ð PageTop Link@‚Ɓ@HorizontalInnerLinks@‚ɐݒè
52//================================================
53
54$(document).ready(function() {
55  $(".PageTop li a").click(function(e) { 
56      $(this).attr("href", "javascript:void(0)")
57        $('body,html').animate({
58            scrollTop: 0
59        }, 600, "easeInOutCubic");
60  });
61  $(".HorizontalInnerLinks li a").click(function(e) { 
62     var id = $(this).attr('href');
63     var $id = $(id);
64     if ($id.length) {
65        var pos = $(id).offset().top;
66         $('body,html').animate({
67            scrollTop: pos
68        }, 600);
69     }
70  });
71});
72
73//================================================
74// ƒXƒ}ƒz‚ÆiPad‚ÌŽž‚Ƀ}ƒEƒXƒI[ƒo[‚ŃeƒLƒXƒg•\ަ‚³‚¹‚È‚¢
75//================================================
76$(document).ready(function() {
77    if ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0 ) {
78        $(".balloon").remove();
79    }
80});
81
82
83//================================================
84// Ž–‹Æ“à—e‚̉º•”ŒÅ’èƒeƒLƒXƒg‚̍‚‚³‚𑵂¦‚é
85//================================================
86
87$(window).on('load resize', function(){
88/*    var windowWidth = window.innerWidth;*/
89    var windowWidth = $(window).width();
90    if(windowWidth >= 767){
91/*    alert(windowWidth);*/
92        $('.WorksFrm .ListBox ul.LinkListStyle2').css('positon', 'absolute');
93
94        var max_height01 = 0;
95        $(".WColumnSet div.ListBox ul.LinkListStyle2").each(function() {
96            if($(this).height() > max_height01)
97                max_height01 = $(this).height();
98        });
99        $(".WColumnSet div.ListBox").height( max_height01 );
100    /*    $(".WColumnSet div.ListBox ul.LinkListStyle2").height( max_height01 );*/
101
102        var max_height02 = 0;
103        $(".WorksTopBox").each(function() {
104            if($(this).height() > max_height02)
105                max_height02 = $(this).height();
106        });
107        $(".WorksTopBox").height( max_height02 );
108    }else if(windowWidth <= 767) {
109        $('.WorksFrm .WorksTopBox').css('height', 'auto');
110        $('.WorksFrm .ListBox ul.LinkListStyle2').css('positon', 'static');
111        $('.WorksFrm .ListBox').css('height', 'auto');
112        $('.WorksFrm .ListBox ul.LinkListStyle2').css('height', 'auto');
113    /*alert("767ˆÈ‰º");*/
114
115/*
116
117            .WorksFrm .WorksTopBox {padding-bottom: 10px;height: auto;positon:static;}
118    .WorksFrm .ListBox {height: auto;}
119    .WorksFrm .ListBox ul.LinkListStyle2 {height: auto;position: static;}
120   */     
121        
122    }return false;
123});
124
125

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.