1//ã³ãã¼ã©ã¤ãã®å¹´å·èªåã«ã¦ã³ã 2 3function year() { 4 5var data = new Date(); 6 7var now_year = data.getFullYear(); 8 9document.write(now_year); 10 11} 12 13//ãã¼ã«ãªã¼ãã¼ ãã§ã¼ãã¢ã¦ã 14 15(function($){ 16 $.fadeRollover = function(option){ 17 var conf = $.extend({ 18 selector: '.hover', 19 attachStr: '_on', 20 fadeTime: 450 21 }, option) 22 23 var targetImgs = $(conf.selector).not('[src*=' + conf.attachStr + '.]'); 24 targetImgs.each(function(){ 25 this.rollOverImg = new Image(); 26 this.rollOverImg.src = $(this).attr('src').replace(new RegExp('(\.gif|\.jpg|\.png)$'), conf.attachStr + '$1'); 27 $(this.rollOverImg).css({position: 'absolute', opacity: 0}); 28 $(this).before(this.rollOverImg); 29 $(this.rollOverImg).hover(function(){ 30 $(this).animate({opacity: 1}, {duration: conf.fadeTime, queue: false}); 31 }, 32 function(){ 33 $(this).animate({opacity: 0}, {duration: conf.fadeTime, queue: false}); 34 }); 35 }); 36 }; 37})(jQuery); 38 39 40jQuery(function(){ 41 $.fadeRollover(); 42}); 43 44 45/* Smooth scrolling 46 Changes links that link to other parts of this page to scroll 47 smoothly to those links rather than jump to them directly, which 48 can be a little disorienting. 49 50 sil, https://www.kryogenix.org/ 51 52 v1.0 2003-11-11 53 v1.1 2005-06-16 wrap it up in an object 54*/ 55 56var ss = { 57 fixAllLinks: function() { 58 // Get a list of all links in the page 59 var allLinks = document.getElementsByTagName('a'); 60 // Walk through the list 61 for (var i=0;i<allLinks.length;i++) { 62 var lnk = allLinks[i]; 63 if ((lnk.href && lnk.href.indexOf('#') != -1) && 64 ( (lnk.pathname == location.pathname) || 65 ('/'+lnk.pathname == location.pathname) ) && 66 (lnk.search == location.search)) { 67 // If the link is internal to the page (begins in #) 68 // then attach the smoothScroll function as an onclick 69 // event handler 70 ss.addEvent(lnk,'click',ss.smoothScroll); 71 } 72 } 73 }, 74 75 smoothScroll: function(e) { 76 // This is an event handler; get the clicked on element, 77 // in a cross-browser fashion 78 if (window.event) { 79 target = window.event.srcElement; 80 } else if (e) { 81 target = e.target; 82 } else return; 83 84 // Make sure that the target is an element, not a text node 85 // within an element 86 if (target.nodeName.toLowerCase() != 'a') { 87 target = target.parentNode; 88 } 89 90 // Paranoia; check this is an A tag 91 if (target.nodeName.toLowerCase() != 'a') return; 92 93 // Find the <a name> tag corresponding to this href 94 // First strip off the hash (first character) 95 anchor = target.hash.substr(1); 96 // Now loop all A tags until we find one with that name 97 var allLinks = document.getElementsByTagName('a'); 98 var destinationLink = null; 99 for (var i=0;i<allLinks.length;i++) { 100 var lnk = allLinks[i]; 101 if (lnk.name && (lnk.name == anchor)) { 102 destinationLink = lnk; 103 break; 104 } 105 } 106 if (!destinationLink) destinationLink = document.getElementById(anchor); 107 108 // If we didn't find a destination, give up and let the browser do 109 // its thing 110 if (!destinationLink) return true; 111 112 // Find the destination's position 113 var destx = destinationLink.offsetLeft; 114 var desty = destinationLink.offsetTop; 115 var thisNode = destinationLink; 116 while (thisNode.offsetParent && 117 (thisNode.offsetParent != document.body)) { 118 thisNode = thisNode.offsetParent; 119 destx += thisNode.offsetLeft; 120 desty += thisNode.offsetTop; 121 } 122 123 // Stop any current scrolling 124 clearInterval(ss.INTERVAL); 125 126 cypos = ss.getCurrentYPos(); 127 128 ss_stepsize = parseInt((desty-cypos)/ss.STEPS); 129 ss.INTERVAL = 130setInterval('ss.scrollWindow('+ss_stepsize+','+desty+',"'+anchor+'")',10); 131 132 // And stop the actual click happening 133 if (window.event) { 134 window.event.cancelBubble = true; 135 window.event.returnValue = false; 136 } 137 if (e && e.preventDefault && e.stopPropagation) { 138 e.preventDefault(); 139 e.stopPropagation(); 140 } 141 }, 142 143 scrollWindow: function(scramount,dest,anchor) { 144 wascypos = ss.getCurrentYPos(); 145 isAbove = (wascypos < dest); 146 window.scrollTo(0,wascypos + scramount); 147 iscypos = ss.getCurrentYPos(); 148 isAboveNow = (iscypos < dest); 149 if ((isAbove != isAboveNow) || (wascypos == iscypos)) { 150 // if we've just scrolled past the destination, or
151 // we haven't moved from the last scroll (i.e., we're at the 152 // bottom of the page) then scroll exactly to the link 153 window.scrollTo(0,dest); 154 // cancel the repeating timer 155 clearInterval(ss.INTERVAL); 156 // and jump to the link directly so the URL's right 157 location.hash = anchor; 158 } 159 }, 160 161 getCurrentYPos: function() { 162 if (document.body && document.body.scrollTop) 163 return document.body.scrollTop; 164 if (document.documentElement && document.documentElement.scrollTop) 165 return document.documentElement.scrollTop; 166 if (window.pageYOffset) 167 return window.pageYOffset; 168 return 0; 169 }, 170 171 addEvent: function(elm, evType, fn, useCapture) { 172 // addEvent and removeEvent 173 // cross-browser event handling for IE5+, NS6 and Mozilla 174 // By Scott Andrew 175 if (elm.addEventListener){ 176 elm.addEventListener(evType, fn, useCapture); 177 return true; 178 } else if (elm.attachEvent){ 179 var r = elm.attachEvent("on"+evType, fn); 180 return r; 181 } else { 182 alert("Handler could not be removed"); 183 } 184 } 185} 186 187ss.STEPS = 50; 188 189ss.addEvent(window,"load",ss.fixAllLinks); 190 191$(document).ready(function() { 192 $("#breadcrumbslist").slidebreadcrumbslist({ 193 speed: 700, 194 delay: 0, 195 interval: 0, 196 easing: "swing" 197 }); 198}); 199 200//ã¹ãããªãã¤ã¬ã¯ãç¨ï¼ãua = sp ã㤠pcsite_viewinsp_flag ãç«ã£ã¦ããªãæ 201if(/(Android|iPhone|iPod)/.test(navigator.userAgent) && localStorage.getItem("pcsite_viewInSp_flag")!="true"){ 202 var tmpStr = location.href; 203 var splitStr = tmpStr.split("/"); 204 205 206 // ããããã¼ã¸ã®å ´å 207 if(splitStr[3] == "index.php"){ 208 alert(splitStr[3]); 209 location.href = "https://www.dr-kondo.com/sp/index.html"; 210 } 211 else{ 212 var filename = splitStr[3]; 213 location.href = "https://www.dr-kondo.com/sp/" + filename; 214 } 215 216}else{ 217}
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.