1/* 2022年追å */ 2/* ãã¼ã¸Topã¸æ»ããã¿ã³è¨ç½® */ 3$(function() { 4 5 /* 6 * ã¹ã¯ãã¼ã«ãçºçããå ´åã®ã¿ããã¼ã¸Topã¸æ»ããã¿ã³ã表示ãã 7 * ãã¤ãã¼ã¸PCã¯ä»¥å¤ã¯ãbodyã§ã³ã³ãã³ãé«ããåå¾ãã 8 * ãã¤ãã¼ã¸PCã¯ã¹ã¯ãã¼ã«ãçºçããç®æã§ã³ã³ãã³ãé«ããåå¾ãã 9 */ 10 11 let bodyId = $('body').attr('id'); 12 let mypagePcFlg; 13 14 $(window).on('load resize', function() { 15 16 // ãã¤ãã¼ã¸PCã§ãã©ã°ãç«ã¦ã 17 if (bodyId === 'mypage_body') { 18 let mypageResponsiveWidth = 768; 19 if ($(window).width() > mypageResponsiveWidth) { 20 mypagePcFlg = true; 21 } else { 22 mypagePcFlg = false; 23 } 24 } else { 25 mypagePcFlg = false; 26 } 27 28 // heightãåå¾ 29 let windowHeight = $(window).height(); 30 let contentHeight; 31 if (mypagePcFlg === true) { 32 contentHeight = $('.mypage_content').innerHeight(); 33 } else { 34 contentHeight = $('body').height(); 35 } 36 37 // ãã¼ã¸Topã¸æ»ããã¿ã³ã®è¡¨ç¤ºå¦ç 38 // (ã³ã³ãã³ãé«ã+headerHeight)ãç»é¢é«ããã大ãããã°è¡¨ç¤º 39 let headerHeight = $('header').innerHeight(); 40 if (windowHeight >= contentHeight + headerHeight) { 41 $('.pagetop').hide(); 42 } else { 43 $('.pagetop').show(); 44 } 45 }); 46 47 // ãã¼ã¸Topã¸æ»ãå¦ç 48 $('.pagetop').on('click', function() { 49 $('html, body').animate({scrollTop : 0}, 400); 50 return false; 51 }); 52});
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.