1var win_w; 2var win_h; 3 4var w_status; 5var ch_status; 6 7$(document).ready(function(){ 8 9 //ã¹ãã表示ã§ãé»è©±ããããããããã« 10 var ua = navigator.userAgent; 11 if ((ua.indexOf('iPhone') > 0) || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0)) { 12 $('.tel').each(function(){ 13 var str = $(this).find('b').text(); 14 $(this).find('b').html($('<a>').attr('href', 'tel:' + str.replace(/-/g, '')).append(str + '</a>')); 15 }); 16 } 17 18 //ç»é¢ã表示 19 setTimeout(function () { 20 $('html').addClass('loading-delay'); 21 }, 500); 22 23 win_w = $(window).width(); 24 win_h = $(window).height(); 25 26 if(win_w < 1024){ 27 w_status = 'sp'; 28 } else { 29 w_status = 'pc'; 30 } 31 32 ch_header(); 33 pagetop(); 34 35 var scrollpos; 36 $('.gmenu').click(function(){ 37 38 win_h = $(window).height(); 39 40 if(win_w < 1024){ 41 var pb_h = win_h - 60; 42 } else { 43 var pb_h = win_h - 120; 44 } 45 46 if($('body').hasClass('popmenu_active')) 47 { 48 $('body').removeClass('fixed').css({'top': 0}); 49 window.scrollTo( 0 , scrollpos ); 50 51 $('.gmenu i').html('menu'); 52 53 $('#wrapper').removeClass('vis'); 54 $('body').removeClass('popmenu_active'); 55 $('.popmenu_body').css('height', 'auto'); 56 57 } else 58 { 59 scrollpos = $(window).scrollTop(); 60 $('body').addClass('fixed').css({'top': -scrollpos}); 61 62 $('.gmenu i').html('close'); 63 64 $('#wrapper').addClass('vis'); 65 $('body').addClass('popmenu_active'); 66 $('.popmenu_body').css('height', pb_h); 67 } 68 return false; 69 }); 70 71 $('.popmenu_close').click(function(){ 72 73 $('body').removeClass('fixed').css({'top': 0}); 74 window.scrollTo( 0 , scrollpos ); 75 76 $('.gmenu i').html('menu'); 77 78 $('#wrapper').removeClass('vis'); 79 $('body').removeClass('popmenu_active'); 80 $('.popmenu_body').css('height', 'auto'); 81 82 return false; 83 }); 84 85 $('.gnaviarea .lang p').click(function(){ 86 87 if($(this).parent().hasClass('open')) 88 { 89 $(this).parent().removeClass('open') 90 91 } else 92 { 93 $(this).parent().addClass('open') 94 } 95 }); 96 97 $('.popmenu_menubox .labelbox').click(function(){ 98 99 if ($(this).hasClass('sub') && win_w < 1024) { 100 101 if ($(this).parent().hasClass('open')) { 102 103 $(this).parent().removeClass('open') 104 105 } else { 106 107 $(this).parent().addClass('open') 108 109 } 110 111 return false; 112 } 113 }); 114}); 115 116$(window).on('load',function(){ 117 118 if($(location.hash).length){ 119 120 var CheckOffset = $(location.hash).offset().top; 121 122 if(win_w < 1024){ 123 CheckOffset = CheckOffset - 60; 124 } else { 125 CheckOffset = CheckOffset - 120; 126 } 127 128 $("html,body").animate({ 129 scrollTop: CheckOffset 130 }, 0); 131 } 132 133 //ãããã 134 $('a[href^="#"]').click(function(){ 135 136 var Hash = $(this.hash); 137 var HashOffset = $(Hash).offset().top; 138 139 if(win_w < 1024){ 140 HashOffset = HashOffset - 60; 141 } else { 142 HashOffset = HashOffset - 120; 143 } 144 145 $("html,body").animate({ 146 scrollTop: HashOffset 147 }, 1000); 148 149 return false; 150 }); 151}); 152 153var timer1 = null; 154$(window).on('orientationchange resize',function(){ 155 156 if( timer1 == null ) 157 { 158 timer1 = setTimeout(function() { 159 160 win_w = $(window).width(); 161 win_h = $(window).height(); 162 163 if(win_w < 1024){ 164 ch_status = 'sp'; 165 } else { 166 ch_status = 'pc'; 167 } 168 169 if(ch_status != w_status){ 170 171 } 172 173 ch_menu(); 174 175 timer1 = null; 176 177 }, 10); 178 } 179}); 180 181var timer2 = null; 182$(window).on('scroll', function() 183{ 184 if( timer2 == null ) 185 { 186 timer2 = setTimeout(function() { 187 188 ch_header(); 189 pagetop(); 190 191 timer2 = null; 192 193 }, 10); 194 } 195}); 196 197$(function() { 198 $('.product_detail_item_contant_spec').hide(); 199 200 $('.product_detail_item_contant_btn').on('click', function() { 201 $(this).prev('.product_detail_item_contant_spec').slideToggle(400); 202 $(this).toggleClass('slide'); 203 }); 204}); 205 206 207// $(function() { 208// $('.wasei_item_detail_table').hide(); 209// $('.wasei_item_slide_btn_close').hide(); 210 211// $('.wasei_item_slide').on('click', function() { 212// $(this).prev('.wasei_item_detail_table').slideToggle(400); 213// $(this).find('.wasei_item_slide_btn_close').toggle(); 214// $(this).find('.wasei_item_slide_btn_open').toggle(); 215// $(this).find('.wasei_item_slide_btn_plus').toggleClass('slide'); 216// }); 217// }); 218 219function ch_header(){ 220 221 if($('header').hasClass('top')){ 222 var cpoint = $('#marea').innerHeight(); 223 } else { 224 var cpoint = 50; 225 } 226 227 if ($(window).scrollTop() > cpoint) { 228 $('body, .popmenu_block').addClass('slim'); 229 } else { 230 $('body, .popmenu_block').removeClass('slim'); 231 } 232} 233 234function ch_menu(){ 235 236 if($('.popmenu_block').hasClass('menu_active')){ 237 238 if(win_w < 1024){ 239 var pb_h = win_h - 60; 240 } else { 241 var pb_h = win_h - 120; 242 } 243 $('.popmenu_body').css('height', 'auto'); 244 } 245} 246 247function pagetop(){ 248 249 var page_h = $('#wrapper').innerHeight(); 250 var blinkblock_h = $('.blink_block').innerHeight(); 251 var footer_h = $('footer').innerHeight(); 252 253 var cpoint0 = 100; 254 var cpoint1 = $('#marea').innerHeight(); 255 var cpoint2 = page_h - (blinkblock_h + footer_h) - win_h; 256 257 var element1 = $('.pagetop1'); 258 259 if(win_w > 1024){ 260 261 if ($(window).scrollTop() < cpoint1) { 262 263 element1.fadeOut(); 264 265 } else if ($(window).scrollTop() < cpoint2) { 266 267 element1.fadeIn(); 268 269 } else { 270 271 element1.fadeOut(); 272 } 273 } 274}
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.