1function androidBrowser() { 2 var ua = navigator.userAgent; 3 function ios_ver (){ 4 var ios_ua = navigator.userAgent; 5 if( ios_ua.indexOf("iPhone") > 0 ) { 6 ios_ua.match(/iPhone OS (\w+){1,3}/g); 7 var version = (RegExp.$1.replace(/_/g, '')+'00').slice(0,3); 8 return version; 9 } 10 } 11 var ios_ua = navigator.userAgent; 12 var deviceH = $(window).height(); 13 if( ios_ua.indexOf("iPhone") > 0 ) { 14 if(ios_ver() < 800 && deviceH <= 481) { 15 $('body').addClass('and-browser'); 16 } 17 } 18 function and_ver() { 19 var and_ua = navigator.userAgent; 20 if( and_ua.indexOf("Android") > 0 ) { 21 var version = parseFloat(and_ua.slice(and_ua.indexOf("Android")+8)); 22 return version; 23 } 24 } 25 if( (and_ver() < 5 && ua.indexOf('Linux; U;') > 0 && ua.indexOf('chrome') < 0)||(and_ver() < 5 && ua.indexOf('Chrome') > 0 && ua.indexOf('Version') > 0)) { 26 $('body').addClass('android-browser'); 27 } 28} 29 30function anchor() { 31 $('a[href^="#"]').click(function(){ 32 var Hash = $(this.hash), $Hash = $(Hash); 33 if ($Hash.length > 0) { 34 var HashOffset = $Hash.offset().top; 35 $('html,body').animate({ 36 scrollTop: HashOffset 37 }, 300); 38 } 39 return false; 40 }); 41} 42 43function drawer() { 44 $('.drawer__btn,.drawer__close,.drawer__cover').on('click',function(){ 45 $('body').toggleClass('drawer-visible'); 46 }); 47} 48 49function loaded(){ 50 setTimeout(function(){ 51 $('body').addClass('loaded'); 52 },10); 53} 54 55 56function gnavPC_hover(){ 57 $('.drop-down').hover(function(){ 58 $(this).addClass('hover'); 59 $(".list--sub",this).stop(true, true).fadeIn('fast'); 60 $(".list--sub",this).parents('.nav').addClass('on'); 61 }, function(){ 62 $(this).removeClass('hover'); 63 $(this).parents('.nav').removeClass('on'); 64 $(".list--sub",this).stop(true, true).fadeOut('fast'); 65 }); 66} 67 68function gnavPC(){ 69 $('.nav__item--fanclub dt').on('click',function(){ 70 var $parent = $(this).parents('.nav__item--fanclub'); 71 if($parent.hasClass('hover')){ 72 $parent.removeClass('hover'); 73 $parent.parents('.nav').removeClass('on'); 74 $(this).next().stop(true, true).fadeOut('fast'); 75 }else{ 76 $parent.addClass('hover'); 77 $(this).next().stop(true, true).fadeIn('fast'); 78 $parent.parents('.nav').addClass('on'); 79 } 80 }); 81} 82 83function scroll(){ 84 if ($(window).scrollTop() > 50) { 85 $('body').addClass('scrolling already'); 86 } 87 $(window).on('scroll', function() { 88 if ($(this).scrollTop() > 50) { 89 $('body').addClass('scrolling'); 90 $('body').removeClass('already'); 91 } else { 92 $('body').removeClass('scrolling already'); 93 } 94 }); 95} 96 97function carousel(){ 98 $('.module--carousel').slick({ 99 arrows: true, 100 centerMode: false, 101 dots: false, 102 centerPadding: '5%', 103 slidesToShow:3, 104 slidesToScroll: 1, 105 autoplaySpeed: 5000, 106 speed:800, 107 autoplay: false, 108 infinite: false 109 }); 110} 111function gallery(){ 112 $('.module--gallery__image').magnificPopup({ 113 type:'inline', 114 closeBtnInside: true, 115 removalDelay: 500, 116 closeOnContentClick:true, 117 gallery:{enabled:true}, 118 showCloseBtn:false, 119 }); 120} 121 122function accordion(){ 123 $('.module--accordion').on('click',function(){ 124 $(this).fadeOut(); 125 $(this).next().slideToggle(); 126 }); 127} 128 129 130function serviceHover(){ 131 $(".list--nav-service li").hover( 132 function () { 133 $(this).parent().addClass("is-hover"); 134 $(this).addClass("is-current"); 135 }, 136 function () { 137 $(this).parent().removeClass("is-hover"); 138 $(this).removeClass("is-current"); 139 } 140 ); 141} 142 143 144function engineerBnr() { 145 var bigmenu = $('.section--bigmenu').innerHeight(); 146 window.onscroll = function () { 147 var point = window.pageYOffset; 148 var docHeight = $(document).height(); 149 var dispHeight = $(window).height(); 150 151 if(point > docHeight-dispHeight-bigmenu){ 152 $('.engineer_bnr').addClass('is-hidden'); 153 }else{ 154 $('.engineer_bnr').removeClass('is-hidden'); 155 } 156 }; 157}; 158 159 160 161$(function(){ 162 loaded(); 163 androidBrowser(); 164 anchor(); 165 drawer(); 166 accordion(); 167 scroll(); 168 engineerBnr(); 169 if (window.matchMedia( "(min-width: 768px)" ).matches) { 170 //PC 171 gnavPC_hover(); 172 serviceHover(); 173 }else{ 174 //SP 175 /* 176 $('.nav--footer .nav-tit').on('click',function(){ 177 $(this).toggleClass('open'); 178 $(this).next().slideToggle(); 179 }); 180 */ 181 182 $('.g-nav .nav > li').on('click',function(){ 183 $(this).toggleClass('open'); 184 $(this).find('.list--sub').slideToggle(); 185 }); 186 } 187 188 if( $('body').hasClass('page--home')){ 189 $('.block--report .list--report').slick({ 190 arrows: true, 191 centerMode: true, 192 dots: true, 193 centerPadding: '70%', 194 speed:800, 195 infinite: false, 196 responsive: [{ 197 breakpoint: 960, 198 settings: { 199 centerPadding: '25%', 200 } 201 }] 202 }); 203 } 204 /* 205 if( $('section').hasClass('page--service_media')){ 206 if (window.matchMedia( "(max-width: 750px)" ).matches) { 207 $('.block--contents').slick({
208 arrows: false, 209 centerMode: true, 210 dots: false, 211 centerPadding: '20%', 212 slidesToShow:1, 213 slidesToScroll: 1, 214 autoplaySpeed: 5000, 215 speed:800, 216 autoplay: true, 217 infinite: true 218 }); 219 } 220 } 221 */ 222 if( $('body').hasClass('page--report')){ 223 gallery(); 224 if (window.matchMedia( "(max-width: 850px)" ).matches) { 225 $('.block--gallery .module--carousel').slick({ 226 arrows: true, 227 centerMode: false, 228 dots: true, 229 centerPadding: '0', 230 slidesToShow:2, 231 slidesToScroll: 1, 232 autoplaySpeed: 5000, 233 speed:800, 234 autoplay: false, 235 infinite: false, 236 responsive: [{ 237 breakpoint: 960, 238 settings: { 239 centerMode: true, 240 centerPadding: '30%', 241 arrows:false, 242 slidesToShow:1, 243 } 244 }] 245 }); 246 }else{ 247 var galleryList = $('.block--gallery .module--carousel li').length; 248 if(galleryList > 2){ 249 $('.block--gallery .module--carousel').slick({ 250 arrows: true, 251 centerMode: false, 252 dots: true, 253 centerPadding: '0', 254 slidesToShow:2, 255 slidesToScroll: 1, 256 autoplaySpeed: 5000, 257 speed:800, 258 autoplay: false, 259 infinite: false, 260 responsive: [{ 261 breakpoint: 960, 262 settings: { 263 centerMode: true, 264 centerPadding: '30%', 265 arrows:false, 266 slidesToShow:1, 267 } 268 }] 269 }); 270 }else{ 271 $('.block--gallery .module--carousel').addClass('carousel-none'); 272 } 273 } 274 if (window.matchMedia( "(max-width: 850px)" ).matches) { 275 276 $('.list--carousel').slick({ 277 autoplay: false, 278 centerMode: true, 279 dots: false, 280 centerPadding: '54%', 281 arrows:false, 282 infinite: false, 283 responsive: [{ 284 breakpoint: 560, 285 settings: { 286 centerMode: true, 287 centerPadding: '30%', 288 arrows:false, 289 slidesToShow:1, 290 } 291 }] 292 }); 293 } 294 } 295 296});
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.