PageSourceSearch

https://www.sendai-mc.com/js/script.js

js sendai-mc.com collected 2026-10-04 15:06:52 UTC 2,908 bytes, 103 lines download raw bytes

1// JavaScript Document
2
3function MM_swapImgRestore() { //v3.0
4  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
5}
6
7function MM_preloadImages() { //v3.0
8  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
9    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
10    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
11}
12
13function MM_findObj(n, d) { //v4.01
14  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
15    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
16  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
17  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
18  if(!x && d.getElementById) x=d.getElementById(n); return x;
19}
20
21function MM_swapImage() { //v3.0
22  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
23   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
24}
25
26
27//smart rollover
28function smartRollover() {
29	if(document.getElementsByTagName) {
30		var images = document.getElementsByTagName("img");
31		for(var i=0; i < images.length; i++) {
32			if(images[i].getAttribute("src").match("_off."))
33			{
34				images[i].onmouseover = function() {
35					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
36				}
37				images[i].onmouseout = function() {
38					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
39				}
40			}
41		}
42	}
43}
44if(window.addEventListener) {
45	window.addEventListener("load", smartRollover, false);
46}
47else if(window.attachEvent) {
48	window.attachEvent("onload", smartRollover);
49}
50
51// ƒcƒŠ[ƒƒjƒ…[@‘‰gƒƒjƒ…[
52 function openMenu(){
53 document.getElementById("menu").style.display = "block";
54 }
55
56
57// ƒcƒŠ[ƒƒjƒ…[@ƒVƒƒ^ƒ‹ƒ~ƒƒjƒ…[
58 function openMenu2(){
59 document.getElementById("menu2").style.display = "block";
60 }
61
62// ƒcƒŠ[ƒƒjƒ…[@ƒzƒƒCƒgƒjƒ“ƒOƒƒjƒ…[
63 function openMenu3(){
64 document.getElementById("menu3").style.display = "block";
65 }
66
67
68//telƒvƒƒgƒRƒ‹@PC‚ō폜
69$(function(){
70    var ua = navigator.userAgent;
71    if(ua.indexOf('iPhone') < 0 && ua.indexOf('Android') < 0){
72        $('.telhref span').each(function(){
73            $(this).unwrap();
74        });
75    }
76});
77
78
79
80// ‚Ђ炪‚È Ë ƒJƒ^ƒJƒi •ÏŠ·
81$(function() {
82  $('input[name="‚¨–¼‘OiƒJƒij"]').blur(function () {
83    hiraChange($(this));
84  });
85  hiraChange = function (ele) {
86    var val = ele.val();
87    var hira = val.replace(/[‚Ÿ-‚ñ]/g, function (s) {
88      return String.fromCharCode(s.charCodeAt(0) + 0x60)
89    });
90    if (val.match(/[‚Ÿ-‚ñ]/g)) {
91      $(ele).val(hira)
92    }
93  };
94});
95
96
97// Š¿Žš Ë ƒtƒŠƒKƒi•ÏŠ·
98$(function() {
99  if (typeof $.fn.autoKana == 'function') {
100    $.fn.autoKana('input[name="‚¨–¼‘O"]', 'input[name="‚¨–¼‘OiƒJƒij"]', {katakana:true});
101  }
102});
103

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.