1$(document).ready(function(){ 2 /*ã¹ããGã¡ãã¥ã¼(ä»®)*/ 3 $('.third_page_ttl').not('.sp_page_menu').click(function() { 4 $(this).next('.contents_col').children('.left_nav').slideToggle(); 5 $(this).toggleClass('on'); 6 }); 7 $('.sp_page_menu').click(function() { 8 $(this).next('.sp_page_nav').slideToggle(); 9 $(this).toggleClass('on'); 10 }); 11 12// ã¦ã£ã³ãã¦ãµã¤ãºã®å¦ç 13 // ãµã¤ããã¼è¿½å¾ 14 function applyWideBehavior() { 15 $(window).on('scroll resize', function() { 16 if ($(window).width() < 769) { 17 return; // 768px 以ä¸ã§ã¯å¦çãè¡ããªã 18 } 19 var hdHight = $("header").outerHeight(); 20 // ã¹ã¯ãã¼ã«ä½ç½® 21 var scroll = $(document).scrollTop() + hdHight; 22 // ã³ã³ãã³ãã¨ãªã¢ã®ããã 23 var contenttop = $(".page-inner").offset().top; 24 // ãµã¤ããã¼ã®å·¦ä½ç½® 25 var sideleft = $(".page-nav").offset().left; 26 // ãµã¤ããã¼ã®é«ã 27 var sideheight = $(".page-nav").outerHeight(); 28 // ãµã¤ããã¼ã®ä¸ãã¼ã¸ã³ 29 var sidemargintop = 0; 30 // ãµã¤ããã¼ã®ä¸ãã¼ã¸ã³ 31 var sidemarginbottom = 20; 32 // ããã¿ã¼TOPä½ç½® 33 var footertop = $(".contft_posi").offset().top; 34 // ã³ã³ãã³ãã¨ãªã¢ã®é«ã 35 var contentheight = $(".page-content").outerHeight(); 36 /* 37 if (contentheight > sideheight) { 38 //ã³ã³ãã³ãã®éãå¤ãæ 39 if (scroll > (footertop - sidemarginbottom - sidemargintop - sideheight)) { 40 // ããã¿ã¼ã«ããã£ãå ´å 41 $(".page-nav").css({ 42 'position': 'absolute', 43 'top': 'auto', 44 'bottom': '0', 45 }); 46 } else if (scroll > (contenttop - sidemargintop)) { 47 // è¿½å¾æ 48 $(".page-nav").css({ 49 'position': 'fixed', 50 'top': '70px', 51 'bottom': 'auto', 52 }); 53 } else { 54 // 追å¾ããã¾ã§ã¹ã¯ãã¼ã«ããã¦ãªãã¨ã 55 $(".page-nav").css({ 56 'position': 'static', 57 'top': '0', 58 'bottom': 'auto', 59 }); 60 } 61 } else { 62 //ã³ã³ãã³ãã®éãå°ãªãæ 63 $(".page-nav").css({ 64 'position': 'static', 65 'max-height': '100%', 66 }); 67 }*/ 68 }); 69} 70 71// ãµã¤ããã¼åä½è§£é¤ 72function removeWideBehavior() { 73 $(".page-nav").css({ 74 position: "relative", 75 top: "auto", 76 bottom: "auto", 77 }); 78} 79 80 81 82// ã¦ã£ã³ãã¦ãµã¤ãºã®å¦ç 83// ã¡ãã£ã¢ã¯ã¨ãªè¨å® 84const mediaQuery = window.matchMedia("(max-width: 768px)"); 85 86// åæç¶æ ã§ã®æ¡ä»¶åå² 87function handleInitialState() { 88 if (mediaQuery.matches) { 89 // 768pxä»¥ä¸ 90 removeWideBehavior(); 91 } else { 92 // 769pxä»¥ä¸ 93 applyWideBehavior(); 94 } 95} 96 97// åæç¶æ é©ç¨ 98 handleInitialState(); 99 100 // ã¦ã£ã³ãã¦ãµã¤ãºç£è¦ 101 mediaQuery.addEventListener("change", function (e) { 102 if (e.matches) { 103 // 768pxä»¥ä¸ 104 removeWideBehavior(); 105 106 } else { 107 // 769pxä»¥ä¸ 108 applyWideBehavior(); 109 } 110 }); 111 112});
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.