1// UserAgentã§æ¯ãåãã¦htmlã«classãæ¯ã 2// 夿° 3/* 4var agent = navigator.userAgent; // ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ã 5var htmlElement = document.documentElement; // htmlè¦ç´ 6if (navigator.platform.search("Mac") != -1) { htmlElement.className += ' mac'; } 7if(agent.search("Windows") != -1){ 8 htmlElement.className += ' win'; 9 if((agent.search("Trident") != -1) || ((agent.search("MSIE") != -1))) { 10 htmlElement.className += ' ie'; 11 if(agent.search("Trident") != -1) { htmlElement.className += ' gte_ie8'; } 12 if(agent.search("Trident") == -1) { htmlElement.className += ' lte_ie8'; } 13 if(agent.search("MSIE 7") != -1){ htmlElement.className += ' ie7'; } 14 if(agent.search("MSIE 8") != -1){ htmlElement.className += ' ie8'; } 15 if(agent.search("MSIE 9") != -1){ htmlElement.className += ' ie9'; } 16 if(agent.search("MSIE 10") != -1){ htmlElement.className += ' ie10'; } 17 if(agent.search("Trident/7") != -1){ htmlElement.className += ' ie11'; } 18 } 19} 20if((agent.search("Chrome") != -1) && (agent.search("OPR") == -1)){ htmlElement.className += ' chrome'; } 21if((agent.search("Safari") != -1) && (agent.search("Chrome") == -1) && (agent.search("OPR") == -1) && (agent.search("Presto") == -1)) { htmlElement.className += ' safari'; } 22if(agent.search("Firefox") != -1) { htmlElement.className += ' firefox'; } 23if(agent.search("iPad") != -1){ htmlElement.className += ' ipad'; } 24if(agent.search("iPhone") != -1){ htmlElement.className += ' iphone'; } 25if(agent.search("Android") != -1){ htmlElement.className += ' android'; } 26*/ 27 28jQuery(window).on("load resize", function(){ 29 var w = jQuery(window).width(); 30 var x = 767; 31 if (w <= x) { 32 var headerHight = 60; //ãããã®é«ã 33 } else { 34 var headerHight = 60; //ãããã®é«ã 35 } 36 jQuery('a[href^="#"].scroll').click(function(){ 37 var href= jQuery(this).attr("href"); 38 var target = jQuery(href == "#" || href == "" ? 'html' : href); 39 var position = target.offset().top-headerHight; //ãããã®é«ãåä½ç½®ãããã 40 jQuery("html, body").animate({scrollTop:position}, 400, "swing"); 41 return false; 42 }); 43 var url = jQuery(location).attr('href'); 44 if (url.indexOf("?id=") == -1) { 45 } else { 46 var url_sp = url.split("?id="); 47 var hash = '#' + url_sp[url_sp.length - 1]; 48 var target2 = jQuery(hash); 49 var position2 = target2.offset().top-headerHight; 50 jQuery("html, body").animate({scrollTop:position2}, 400, "swing"); 51 } 52}); 53 54//ãããã«ãã©ãããã¨ãã表示 55jQuery(function() { 56 var topBtn = jQuery('#pagetop'); 57 topBtn.hide(); 58 //ã¹ã¯ãã¼ã«ã100ã«éããããã¿ã³è¡¨ç¤º 59 jQuery(window).scroll(function () { 60 if (jQuery(this).scrollTop() > 100) { 61 topBtn.fadeIn(); 62 } else { 63 topBtn.fadeOut(); 64 } 65 }); 66 //ã¹ã¯ãã¼ã«ãã¦ããã 67 topBtn.click(function () { 68 jQuery('body,html').animate({ 69 scrollTop: 0 70 }, 500); 71 return false; 72 }); 73}); 74 75//header 76jQuery(function() { 77 var header = jQuery('body#index header'); 78 jQuery(window).scroll(function () { 79 if (jQuery(this).scrollTop() > 700) { 80 header.addClass('scroll'); 81 } else { 82 header.removeClass('scroll'); 83 } 84 }); 85}); 86//notice 87jQuery(function() { 88 var title = jQuery('#topbg picture'); 89 var fixmenu = jQuery('#topbg ul'); 90 jQuery(window).scroll(function () { 91 if (jQuery(this).scrollTop() > 0) { 92 title.addClass('scroll'); 93 fixmenu.addClass('active'); 94 } else { 95 title.removeClass('scroll'); 96 fixmenu.removeClass('active'); 97 } 98 }); 99}); 100 101 102 103// ãããã¹ã©ã¤ã ã»ã 104jQuery( function() { 105//jQuery(window).on('load', function(){ 106 107// jQuery('#topimg ul').fadeIn(); 108// jQuery('#topimg ul').bxSlider({ 109// mode: 'fade', 110// auto: true, 111// pause: 5000, 112// speed: 500, 113// controls: false, 114// pager: false, 115// onSliderLoad: function(currentIndex) { 116// jQuery('#topimg ul').children().eq(currentIndex + 1).addClass('show'); 117// jQuery('#topimg ul').children().eq(currentIndex).addClass('show'); 118// }, 119// onSlideAfter: function($slideElement){ 120// jQuery('#topimg ul').children().removeClass('show'); 121// $slideElement.addClass('show'); 122// } 123// }); 124// jQuery('#mask').hide(); 125 126// jQuery('#topbnr').fadeIn(); 127// jQuery('#topbnr ul').bxSlider({ 128// auto: true, 129// pause: 5000, 130// speed: 500, 131// controls: true, 132// pager: true, 133// moveSlides: 1,
134// minSlides: 2, 135// maxSlides: 5, 136// slideWidth: 240, 137// slideMargin: 5, 138// nextSelector: '.bnr_next', 139// prevSelector: '.bnr_prev', 140// touchEnabled: false 141// }); 142// jQuery('#topics_body').fadeIn(); 143 144}); 145 146// ã°ããã«ããã²ã¼ã·ã§ã³ 147jQuery(function(){ 148 var header = jQuery('body#index header'); 149 jQuery('#navbtn').click(function() { 150 jQuery(this).toggleClass('active'); 151 jQuery('nav').toggleClass('active'); 152 header.toggleClass('active'); 153 }); 154 jQuery('#contactbtn').click(function() { 155 jQuery(this).toggleClass('active'); 156 jQuery('#contact:not(:animated)').animate({ 157 height : 'toggle', 158 opacity : 'toggle' 159 }, 100 ); 160 header.toggleClass('active'); 161 }); 162 jQuery('#langbtn').click(function() { 163 jQuery(this).toggleClass('active'); 164 jQuery('#lang:not(:animated)').animate({ 165 height : 'toggle', 166 opacity : 'toggle' 167 }, 100 ); 168 header.toggleClass('active'); 169 }); 170 jQuery('h3.catmenu').click(function() { 171 jQuery('h3.catmenu').removeClass('active'); 172 jQuery('ul.expmenu').hide(); 173 jQuery(this).toggleClass('active'); 174 jQuery('+ ul.expmenu:not(:animated)', this).animate({ 175 height : 'toggle', 176 opacity : 'toggle' 177 }, 100 ); 178 }); 179 180 jQuery('#lang').on('touchstart, click', function() { 181 jQuery('#lang ul li').addClass('on'); 182 }); 183 jQuery('#lang p').on('touchstart, click', function() { 184 jQuery('#lang ul').slideToggle(100); 185 jQuery(this).addClass('on'); 186 }); 187 188}); 189jQuery(window).on("load resize", function(){ 190 var w = jQuery(window).width(); 191 var x = 735; 192 if (w <= x) { 193 jQuery(function(){ 194 jQuery('.footnav h2').click(function() { 195 jQuery(this).toggleClass('active'); 196 jQuery('+ ul:not(:animated)', this).animate({ 197 height : 'toggle', 198 opacity : 'toggle' 199 }, 100 ); 200 }); 201 }); 202 } else { 203 jQuery( function() { 204 jQuery('nav > ul > li').hover(function() { 205 jQuery('> a', this).addClass('active'); 206 jQuery('> ul:not(:animated)',this).animate({ 207 height : "toggle", 208 opacity : "toggle" 209 }, 200 ); 210 }, 211 function(){ 212 jQuery('> a', this).removeClass('active'); 213 jQuery('> ul' , this).fadeOut('fast'); 214 }); 215 }); 216// jQuery('#topicslists').bxSlider({ 217// auto: true, 218// pause: 5000, 219// speed: 500, 220// controls: true, 221// pager: true, 222// moveSlides: 1, 223// minSlides: 1, 224// maxSlides: 4, 225// slideWidth: 320, 226// slideMargin: 20, 227// nextSelector: '.topics_next', 228// prevSelector: '.topics_prev', 229// touchEnabled: false 230// }); 231 } 232}); 233 234// ãã®ãã«ã®æ£® 235 236 237// 使èªåå ¥å 238jQuery(function() { 239    jQuery( 'input[name="zip2"]' ).keyup( function() { 240        AjaxZip3.zip2addr('zip1','zip2','address1','address2'); 241    }) 242}); 243 244 245// ãã¼ãã£ã³ã° 246jQuery(window).load(function () { //å ¨ã¦ã®èªã¿è¾¼ã¿ãå®äºãããå®è¡ 247 jQuery('.load').delay(10).queue(function(){ 248// jQuery('.load').delay(1000).queue(function(){ 249 jQuery(this).addClass('active'); 250 }); 251}); 252jQuery(function(){ 253 setTimeout('stopload()',5000); 254}); 255function stopload(){ 256 jQuery('.load').addClass('active'); 257} 258/* 259jQuery(function() { 260 var h = jQuery(window).height(); 261 jQuery('#loading').height(h).css('display','block'); 262 jQuery('#wrap').addClass('hide'); 263 jQuery('#topbg').addClass('hide'); 264}); 265jQuery(window).load(function () { //å ¨ã¦ã®èªã¿è¾¼ã¿ãå®äºãããå®è¡ 266 jQuery('#loading').delay(900).fadeOut(1000); 267 jQuery('#wrap').addClass('show'); 268 jQuery('#topbg').addClass('show'); 269 jQuery('.load').delay(1000).queue(function(){ 270 jQuery(this).addClass('active'); 271 }); 272}); 273jQuery(function(){ 274 setTimeout('stopload()',5000); 275}); 276function stopload(){ 277 jQuery('#wrap').addClass('show'); 278 jQuery('#topbg').addClass('show'); 279 jQuery('#loading').delay(900).fadeOut(800); 280 jQuery('.load').addClass('active'); 281} 282*/
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.