1/********************************************************************* 2 3 nemaoffice.com (2013/6/27) 4 5*********************************************************************/ 6/************************************************************ 7ã¡ãã¥ã¼åºå® 8 ***********************************************************/ 9$(function(){ 10 var box = $("#menu"); 11 var boxTop = box.offset().top; 12 $(window).scroll(function () { 13 if($(window).scrollTop() >= boxTop) { 14 box.addClass("fixed"); 15 $("body").css("margin-top","40px"); 16 $("#menu").css("background","#2c3e50"); 17 } else { 18 box.removeClass("fixed"); 19 $("body").css("margin-top","0px"); 20 $("#menu").css("background","#2c3e50"); 21 } 22 }); 23}); 24/************************************************************ 25ç»åãªã³ãªã 26 ***********************************************************/ 27$(function() { 28 var images = $("img"); 29 for(var i=0; i < images.size(); i++) { 30 if(images.eq(i).attr("src").match("_off.")) { 31 $("img").eq(i).hover(function() { 32 $(this).attr('src', $(this).attr("src").replace("_off.", "_on.")); 33 }, function() { 34 $(this).attr('src', $(this).attr("src").replace("_on.", "_off.")); 35 }); 36 } 37 } 38}); 39 40/************************************************************ 41æ¤ç´¢ 42 ** onFocus="clearInput('search', 'Search')" 43 ** onBlur="clearInput('search', 'Search')" /> 44 ***********************************************************/ 45function clearInput(field_id, term_to_clear) { 46 47 // Clear input if it matches default value 48 if (document.getElementById(field_id).value == term_to_clear ) { 49 document.getElementById(field_id).value = ''; 50 } 51 52 // If the value is blank, then put back term 53 else if (document.getElementById(field_id).value == '' ) { 54 document.getElementById(field_id).value = term_to_clear; 55 } 56} // end clearSearch() 57/************************************************************ 58USTREAMé ä¿¡ 59 ***********************************************************/ 60function ustream(status) { 61 if (status == "live") {
62 document.write('<div class="utility2"><div class="content"><iframe width="300" height="201" src="https://www.ustream.tv/embed/14917689" scrolling="no" frameborder="0" style="border: 0px none transparent;margin-top:5px;"></iframe><span style="padding: 2px 0px 2px; width: 290px; display: block; color: #000000; font-weight: normal; font-size: 11px;text-decoration: none; text-align: right;"> <a href="/page/video">éå»ã®ã©ã¤ãé ä¿¡</a>ï½<a href="/page/ustream">æ¡å¤§ã§è¦ã</a></span></div></div>'); 63 } else { 64 document.write(''); 65 } 66} 67/************************************************************ 68æåãµã¤ãºå¤æ´ 69 ***********************************************************/ 70 71$(function(){ 72 var target = $('div.contents_tab ul,div.utility ul li,div.utility dl,p,span.tiles_title','#container'); // ãã©ã³ããµã¤ãºå¤æ´ã¨ãªã¢ 73 var controler = $('#font li'); // ãã©ã³ããµã¤ãºå¤æ´ãã¿ã³ï¼ç»åãããã¯ããã¹ããè¨å®ï¼ 74 var fontSize = [100,116,125]; // ãã©ã³ããµã¤ãºï¼åä½ã¯ï¼ ãHTMLã¨åã並ã³é ï¼ 75 var hoverSuffix = ''; // ããã¼ç¨ç»åã®æ¥å°¾è¾åï¼ããã¼ç¨ç»åã使ç¨ããªãå ´åã¯å¤ã空ã«ããï¼ 76 var activeSuffix = ''; // ã¢ã¯ãã£ãç¨ç»åã®æ¥å°¾è¾åï¼ã¢ã¯ãã£ãç¨ç»åã使ç¨ããªãå ´åã¯å¤ã空ã«ããï¼ 77 var hoverClass = 'hover'; // ãã©ã³ããµã¤ãºå¤æ´ãã¿ã³ã®ããã¼æã®ã¯ã©ã¹åï¼ããã¼æã®ã¯ã©ã¹ã使ç¨ããªãå ´åã¯å¤ã空ã«ããï¼ 78 var activeClass = 'active'; // ãã©ã³ããµã¤ãºå¤æ´ãã¿ã³ã®ã¢ã¯ãã£ãæã®ã¯ã©ã¹åï¼ã¢ã¯ãã£ãæã®ã¯ã©ã¹ã使ç¨ããªãå ´åã¯å¤ã空ã«ããï¼ 79 var defaultFont = 0; // åæãã©ã³ããµã¤ãºè¨å®ï¼HTMLã¨åã並ã³é ã§0ããè¨å®ï¼ 80 var cookieExpires = 7; // ã¯ããã¼ä¿åæé 81 var number = fontSize.length; // ãã©ã³ããµã¤ãºå¤æ´ãã¿ã³ã®æ° 82 var hoverImg = hoverSuffix!='' && controler.is('[src]'); 83 var activeImg = activeSuffix!='' && controler.is('[src]'); 84 85 // ã¯ããã¼è¨å® 86 function cookieSet(index){ 87 $.cookie('fontsize',fontSize[index],{path:'/',expires:cookieExpires}); 88 } 89 90 // ç¾å¨ãã©ã³ããµã¤ãºåå¾ 91 function nowFont(){ 92 return $.cookie('fontsize'); 93 } 94 95 // ãã©ã³ããµã¤ãºè¨å® 96 function changeFont(){ 97 target.css({'font-size':nowFont()+'%'}); 98 } 99 100 // ãã¿ã³ç»åãã¤ã©ã¤ããªã³ 101 function imgOn(btn,suffix) { 102 btn.attr('src',btn.attr('src').replace(eval('/^(\.+)(\\.[a-z]+)$/'),'$1'+suffix+'$2')).css('cursor','pointer'); 103 } 104 105 // ãã¿ã³ç»åãã¤ã©ã¤ããªã 106 function imgOff(btn,suffix) { 107 btn.attr('src',btn.attr('src').replace(eval('/^(\.+)'+suffix+'(\\.[a-z]+)$/'),'$1$2')).css('cursor','pointer'); 108 } 109 110 // åæè¡¨ç¤º 111 // ãã©ã³ããµã¤ãºãã¯ããã¼ã«ä¿åããã¦ããå ´å 112 if(nowFont()){ 113 for(var i=0; i<number; i++){ 114 if(nowFont()==fontSize[i]){ 115 // åæãã¿ã³è¨å® 116 var btn = controler.eq(i); 117 // ãã©ã³ããµã¤ãºè¨å® 118 changeFont(); 119 // ã¢ã¯ãã£ãç¨ã®ç»åãããå ´åã¯è¡¨ç¤º 120 if(activeImg){ 121 imgOn(btn,activeSuffix); 122 } 123 // ã¢ã¯ãã£ãæã®ã¯ã©ã¹åãè¨å® 124 btn.addClass(activeClass); 125 } 126 } 127 } 128 // ãã©ã³ããµã¤ãºãã¯ããã¼ã«ä¿åããã¦ããªãå ´å 129 else { 130 // åæãã¿ã³è¨å® 131 var btn = controler.eq(defaultFont); 132 // ããã©ã«ãã®ãã©ã³ããµã¤ãºãã¯ããã¼ã«ä¿åãã 133 cookieSet(defaultFont); 134 // ãã©ã³ããµã¤ãºè¨å® 135 changeFont(); 136 // ã¢ã¯ãã£ãç¨ã®ç»åãããå ´åã¯è¡¨ç¤º 137 if(activeImg){ 138 imgOn(btn,activeSuffix); 139 } 140 // ã¢ã¯ãã£ãæã®ã¯ã©ã¹åãè¨å® 141 btn.addClass(activeClass); 142 } 143 144 // ããã¼ã¤ãã³ã 145 controler.each(function(i){ 146 // ç¾å¨ã®ãã¿ã³è¦ç´ ãåå¾ 147 var self = $(this); 148 if(hoverImg){ 149 self.hover( 150 function(){ 151 if(nowFont()!=fontSize[i]){ 152 // ããã¼ç¨ç»åã«åãæ¿ã 153 imgOn(self,hoverSuffix); 154 return; 155 } 156 }, 157 function(){ 158 if(nowFont()!=fontSize[i]){ 159 // é常ç¨ç»åã«åãæ¿ã 160 imgOff(self,hoverSuffix); 161 } 162 }); 163 } 164 self.hover( 165 function(){ 166 if(nowFont()!=fontSize[i]){ 167 // ããã¼ãããã¿ã³ã«ããã¼æã®ã¯ã©ã¹åãè¨å® 168 self.addClass(hoverClass); 169 } 170 }, 171 function(){ 172 if(nowFont()!=fontSize[i]){ 173 // ããã¼ãããã¿ã³ã®ããã¼æã®ã¯ã©ã¹åãåé¤ 174 self.removeClass(hoverClass); 175 } 176 }); 177 }); 178 179 // ã¯ãªãã¯ã¤ãã³ã 180 controler.click(function(){ 181 // ç¾å¨ã®ãã¿ã³è¦ç´ ãåå¾ 182 var self = $(this); 183 // ç¾å¨ã®ãã¿ã³è¦ç´ ã®ã¤ã³ããã¯ã¹çªå·ï¼ãã¿ã³IDï¼ãåå¾ 184 var index = controler.index(self); 185 // ãã©ã³ããµã¤ãºãã¯ããã¼ã«ä¿åãã 186 cookieSet(index); 187 // ãã©ã³ããµã¤ãºè¨å® 188 changeFont(); 189 if(hoverImg){ 190 // ããã¼ç¨ç»åããªã 191 imgOff(self,hoverSuffix); 192 } 193 if(activeImg){ 194 // ã¢ã¯ãã£ãç¨ç»åã«åãæ¿ã 195 imgOn(self,activeSuffix); 196 // éè¨å®ç»åã®ã¢ã¯ãã£ãç¨ç»åãé常ç¨ã«åãæ¿ã 197 for(var i=0; i<number; i++){ 198 if(nowFont()!=fontSize[i]){ 199 imgOff(controler.eq(i),activeSuffix); 200 } 201 } 202 } 203 // ã¯ãªãã¯ãããã¿ã³ã®ããã¼æã®ã¯ã©ã¹åãåé¤ 204 self.removeClass(hoverClass); 205 // ã¯ãªãã¯ãããã¿ã³ã«ã¢ã¯ãã£ãæã®ã¯ã©ã¹åãè¨å® 206 self.addClass(activeClass); 207 // éè¨å®ãã¿ã³ã®ã¢ã¯ãã£ãæã®ã¯ã©ã¹åãåé¤ 208 controler.not(self).removeClass(activeClass); 209 }); 210}); 211/************************************************************ 212ç»åãªã³ã¯ 213 ***********************************************************/ 214$(document).ready( 215 function(){ 216 $("a img") .hover(function(){ 217 $(this).fadeTo("4000",0.8); 218 },function(){ 219 $(this).fadeTo("4000",1.0); 220 });
221 }); 222/************************************************************ 223ã¹ã¯ãã¼ã« 224 ***********************************************************/ 225$(function() { 226 $(window).scroll(function () { 227 var s = $(this).scrollTop(); 228 var m = 1200; 229 if(s > m) { 230 $("#pagetop").fadeIn('slow'); 231 } else if(s < m) { 232 $("#pagetop").fadeOut('slow'); 233 } 234 }); 235 $("#pagetop").click(function () { 236 $('html,body').animate({ scrollTop: 0 }, 'fast'); 237 return false; 238 }); 239});
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.