1// JavaScript Document 2 3 4//OJSÇÁ 5 6//bodyAonloadÝè 7//##################################################################### 8 9if(window.addEventListener) { 10 window.addEventListener("load", function() { 11 imgRollover(); 12 tabChange(); 13 inputClear(); 14 }, false); 15} 16else if(window.attachEvent) { 17 window.attachEvent("onload", function() { 18 imgRollover(); 19 tabChange(); 20 inputClear(); 21 }); 22} 23 24//鼅 25//##################################################################### 26 27//[I[o[ 28function imgRollover() { 29 if(document.getElementsByTagName) { 30 var images = document.getElementsByTagName("img"); 31 var input = document.getElementsByTagName("input"); 32 33 var imgOff = new Array(); 34 var imgOn = new Array(); 35 for(var i=0; i < images.length; i++) { 36 if(images[i].src.match(/(.*_)off(\..*)$/)) { 37 imgOff[i] = new Image(); 38 imgOn[i] = new Image(); 39 imgOff[i].src = images[i].src; 40 imgOn[i].src = RegExp.$1 + 'on' + RegExp.$2; 41 42 images[i].onmouseover = function() { 43 this.setAttribute("src", this.src.replace("_off.", "_on.")); 44 } 45 images[i].onmouseout = function() { 46 this.setAttribute("src", this.src.replace("_on.", "_off.")); 47 } 48 } 49 } 50 51 var inputOff = new Array(); 52 var inputOn = new Array(); 53 for(var i=0; i < input.length; i++) { 54 if(input[i].src.match(/(.*_)off(\..*)$/)) { 55 inputOff[i] = new Image(); 56 inputOn[i] = new Image(); 57 inputOff[i].src = input[i].src; 58 inputOn[i].src = RegExp.$1 + 'on' + RegExp.$2; 59 60 input[i].onmouseover = function() { 61 this.setAttribute("src", this.src.replace("_off.", "_on.")); 62 } 63 input[i].onmouseout = function() { 64 this.setAttribute("src", this.src.replace("_on.", "_off.")); 65 } 66 } 67 } 68 } 69} 70 71 72function tabChange() { 73 if (!document.getElementById('tabList')) return; 74 var tabList = document.getElementById('tabList').getElementsByTagName('a'); 75 76 for (var i = 0; i < tabList.length; i++) { 77 tabList[i].onclick = function() { 78 var currentNum = getElementIndex(this.parentNode); 79 var idName = this.hash.replace(/#/, ''); 80 81 for (var i = 0; i < tabList.length; i++) { 82 var idName = tabList[i].hash.replace(/#/, ''); 83 84 if (currentNum == i) { 85 document.getElementById(idName).style.display = 'block'; 86 tabList[i].className = 'selected'; 87 } 88 else { 89 document.getElementById(idName).style.display = 'none'; 90 tabList[i].className = ''; 91 } 92 }; 93 94 return false; 95 }; 96 } 97} 98 99function inputClear() { 100 if (!document.getElementById("specialist")) return false; 101 var text = "OL¯ÒLü"; 102 var input = document.getElementById("specialist"); 103 104 input.onfocus = function() { 105 if (this.value == text) this.value = ""; 106 } 107 input.onblur = function() { 108 if (this.value == "") this.value = text; 109 } 110} 111 112function getElementIndex(element) { 113 var i = 0; 114 115 while (element = element.previousSibling) { 116 if (element.nodeType == 1) i++; 117 } 118 119 return i; 120} 121 122 123 124 125 126 127// alpha button 128 129$(function(){ 130 $("img.alpha",this).hover(function(){ 131 $(this).fadeTo(100, 0.8); 132 },function(){ 133 $(this).fadeTo(100, 1.0); 134 }); 135 $("ul.alpha img",this).hover(function(){ 136 $(this).fadeTo(100, 0.8); 137 },function(){ 138 $(this).fadeTo(100, 1.0); 139 }); 140}); 141 142// page link 143$(function(){ 144 $('a[href^=#]').click(function() { 145 var speed = 400; 146 var href= $(this).attr("href"); 147 var target = $(href == "#" || href == "" ? 'html' : href); 148 var position = target.offset().top; 149 $('body,html').animate({scrollTop:position}, speed, 'swing'); 150 return false; 151 }); 152}); 153 154/* 155 * fixHeight - jQuery Plugin 156 * http://www.starryworks.co.jp/blog/tips/javascript/fixheightjs.html 157 * 158 * Author Koji Kimura @ STARRYWORKS inc. 159 * http://www.starryworks.co.jp/ 160 * 161 * Licensed under the MIT License 162 * 163 */ 164 165 166(function($){ 167 168 var isInitialized = false; 169 var parents = []; 170 var textHeight = 0; 171 var $fontSizeDiv; 172 173 $.fn.fixHeight = function() { 174 this.each(function(){ 175 var childrenGroups = getChildren( this ); 176 177 $.each( childrenGroups, function(){ 178 179 var $children = $(this); 180 if ( !$children.filter(":visible").length ) return; 181 182 var row = []; 183 var top = 0; 184 $children.each(function(){ 185 if ( top != $(this).position().top ) { 186 $(row).sameHeight();
187 row = []; 188 top = $(this).position().top; 189 } 190 row.push(this); 191 }); 192 if ( row.length ) $(row).sameHeight(); 193 }); 194 195 196 }); 197 init(); 198 return this; 199 } 200 201 $.checkFixHeight = function( i_force ) { 202 if ( $fontSizeDiv.height() == textHeight && i_force !== true ) return; 203 textHeight = $fontSizeDiv.height(); 204 $(parents).fixHeight(); 205 } 206 207 $.fn.sameHeight = function() { 208 var maxHeight = 0; 209 this.css("height","auto"); 210 this.each(function(){ 211 if ( $(this).height() > maxHeight ) maxHeight = $(this).height(); 212 }); 213 return this.height(maxHeight); 214 } 215 216 function getChildren( i_parent ) { 217 var $parent = $( i_parent ); 218 219 if ( $parent.data("fixHeightChildrenGroups") ) return $parent.data("fixHeightChildrenGroups"); 220 var childrenGroups = []; 221 222 var $children = $parent.find(".fixHeightChild"); 223 if ( $children.length ) childrenGroups.push( $children ); 224 225 var $groupedChildren = $parent.find("*[class*='fixHeightChild']:not(.fixHeightChild)"); 226 if ( $groupedChildren.length ) { 227 var classNames = {}; 228 $groupedChildren.each(function(){ 229 var a = $(this).attr("class").split(" "); 230 var i; 231 var l = a.length; 232 var c; 233 for ( i=0; i<l; i++ ) { 234 c = a[i].match(/fixHeightChild[a-z0-9_-]+/i); 235 if ( !c ) continue; 236 c = c.toString(); 237 if ( c ) classNames[c] = c; 238 } 239 }); 240 for ( var c in classNames ) childrenGroups.push( $parent.find("."+c) ); 241 } 242 243 if ( !childrenGroups.length ) { 244 $children = $parent.children(); 245 if ( $children.length ) childrenGroups.push( $children ); 246 } 247 248 $parent.data("fixHeightChildrenGroups", childrenGroups ); 249 parents.push( $parent ); 250 251 return childrenGroups; 252 } 253 254 255 function init() { 256 if ( isInitialized ) return; 257 isInitialized = true; 258 $fontSizeDiv = $(document).append('<div style="position:absolute;left:-9999px;top:-9999px;">s</div>'); 259 setInterval($.checkFixHeight,1000); 260 $(window).resize($.checkFixHeight); 261 $.checkFixHeight(); 262 $(window).load( function(){ $.checkFixHeight(true); } ); 263 } 264 265})(jQuery); 266 267 268 269jQuery(document).ready(function(){ 270 $(".fixHeight").fixHeight(); 271}); 272 273// top m 274$(function(){ 275 276$(".m div").not(".mn").hide(); 277$(".mb01").click( 278function (){ 279 $(".m01").show(); 280 $(".mbg").show(); 281 $(".mn").hide(); 282 } 283); 284$(".mb02").click( 285function (){ 286 $(".m02").show(); 287 $(".mbg").show(); 288 $(".mn").hide(); 289 } 290); 291$(".mb03").click( 292function (){ 293 $(".m03").show(); 294 $(".mbg").show(); 295 $(".mn").hide(); 296 } 297); 298$(".mb04").click( 299function (){ 300 $(".m04").show(); 301 $(".mbg").show(); 302 $(".mn").hide(); 303 } 304); 305 306$(".close").click( 307function (){ 308 $(".mn").show(); 309 $(".m div").not(".mn").hide(); 310 } 311); 312}); 313 314const headerNavLink = document.querySelectorAll('.js-gnav-link'); 315 316headerNavLink.forEach((targetLink) => { 317 if (targetLink.href === location.href) { 318 targetLink.parentsElement.classList.add('is-current'); 319 } 320});
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.