1/*===========================================================================*/ 2/*#menubar 3/*åä¸ãã¼ã¸ã¸ã®ãªã³ã¯ã®å ´åã«ééã¡ãã¥ã¼ãéããå¦ç 4/*===========================================================================*/ 5$(function() { 6 $('#menubox a[href^="#"]').click(function() { 7 $('#menuboxr').removeClass('db'); 8 $('#menubox_hdr').removeClass('ham'); 9 }); 10}); 11/*===========================================================================*/ 12/*#menubar_hdr 13/*ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ãã¯ãªãã¯ããéã®å¦ç 14/*===========================================================================*/ 15$(function() { 16 $('#menubox_hdr').click(function() { 17 $(this).toggleClass('ham'); 18 if($(this).hasClass('ham')) { 19 $('#menubox').addClass('db').removeClass('dn'); 20 } else { 21 $('#menubox').addClass('dn').removeClass('db'); 22 } 23 }); 24}); 25/*===========================================================================*/ 26//ãã¼ã¸å ãå¯å¤ã¹ã¯ãã¼ã« 27/*2024/07/27 28/*https://coco-factory.jp/ugokuweb/move01/8-2-1/ 29/*===========================================================================*/ 30/*$('.link_guide a[href*="#"]').click(function () {//ãã¼ã¸å å ¨ãªã³ã¯ã«é©ç¨æã¯ãa[href*="#"]ã®ã¿*/ 31/*= 32$('a[href*="#"]').click(function () {//ãã¼ã¸å å ¨ãªã³ã¯ã«é©ç¨æã¯ãa[href*="#"]ã®ã¿*/ 33/*= $('a[href^="#"]:not(.)').on('click',function(){ //clearbox inline対å¿ã¨ãã¦è¿½è¨ 241202 34/*= var elmHash = $(this).attr('href'); //ãã¼ã¸å ãªã³ã¯ã®HTMLã¿ã°hrefããããªã³ã¯ããã¦ããã¨ãªã¢idã®å¤ãåå¾ 35/*= var pos = $(elmHash).offset().top; //idã®ä¸é¨ã®è·é¢ãåå¾ 36/*= $("body,html").animate({scrollTop: pos}, 500 ,"swing");//"linear swing" 37 return false; 38 }); 39}); 40以ä¸ã¯å·®ãæ¿ã20260326*/ 41 42$('a[href^="#"]').on('click', function() { 43 var elmHash = $(this).attr('href'); 44 var target = $(elmHash); 45 46 if(target.length) { 47 var pos = target.offset().top; 48 $('body,html').animate({scrollTop: pos}, 500, 'swing'); 49 } 50 return false; 51}); 52 53/*===========================================================================*/ 54//ã¹ã¯ãã¼ã«ä½ç½®èª¿æ´ 55/*===========================================================================*/ 56/* 57$(window).on('load', function() { 58 var hash = location.hash; 59 if(hash) { 60 $('body,html').scrollTop(0); 61 setTimeout(function() { 62 var target = $(hash); 63 var scroll = target.offset().top - 40; 64 $('body,html').animate({scrollTop:scroll},50); //é度 ã¹ã¯ãã¼ã«ã¨ãããããªã500 65 }, 100); 66 } 67}); 68$(window).on('load', function() { 69 $('a[href^="#"]').click(function() { 70 var href = $(this).attr('href'); 71 var target = href == '#' ? 0 : $(href).offset().top - 40; 72 $('body,html').animate({scrollTop:target},50); //é度 ã¹ã¯ãã¼ã«ã¨ãããããªã500 73 return false; 74 }); 75}); 76 77/*===========================================================================*/ 78//ã¿ã¤ãã¼ 79/*===========================================================================*/ 80$(function() { 81 var timer = false; 82 $(window).resize(function() { 83 if(timer !== false){ 84 clearTimeout(timer); 85 } 86 timer = setTimeout(function() { 87 }, 500); 88 }); 89}); 90 91 92/*===========================================================================*/ 93// æ±ç¨ééå¦ç 94/*===========================================================================*/ 95$(function() { 96 $('.openclose').next().hide(); 97 $('.openclose').click(function() { 98 $(this).next().slideToggle(); 99 $('.openclose').not(this).next().slideUp(); 100 }); 101}); 102 103 104/*===========================================================================*/ 105//series_naviã§ã»ã³ã¿ã¼è¡¨ç¤º 106/*===========================================================================*/ 107$(window).on('load', function() { 108 $('.series_navi_scroll').each(function() { 109 const scrollBox = this; 110 const current = 111 scrollBox.querySelector('.series_navi.current') || 112 scrollBox.querySelector('.series_navi a.current'); 113 114 if(current) { 115 const card = current.closest('.series_navi'); 116 if(!card) return; 117 118 const boxRect = scrollBox.getBoundingClientRect(); 119 const cardRect = card.getBoundingClientRect(); 120 121 const scrollLeft = 122 scrollBox.scrollLeft 123 + (cardRect.left - boxRect.left) 124 - (scrollBox.clientWidth / 2) 125 + (cardRect.width / 2); 126 127 scrollBox.scrollLeft = Math.max(0, scrollLeft); 128 } 129 }); 130}); 131 132 133/*===========================================================================*/ 134//ç¹å®ã®IDãéãããããã¼ã表示ãã¦å¾ã«éããï¼ãã©ã¦ã¶ã®è²ãå¤ãã)*/ 135/*===========================================================================*/ 136document.addEventListener('DOMContentLoaded', () => { 137 const startTrigger = document.getElementById('start_fixing_point'); 138 const endTrigger = document.getElementById('end_fixing_point'); 139 const banner = document.getElementById('fixed-banner'); 140 const metaTheme = document.getElementById('browser-theme-color'); 141 142 if (!startTrigger || !banner) return; 143 144 // CSSããè²ãèªååå¾ï¼æ±ç¨æ§ç¶æï¼ 145 const activeColor = getComputedStyle(banner).backgroundColor; 146 const defaultColor = "#ffffff"; 147 148 const checkDisplay = () => {
149 // åè¦ç´ ã®ç¾å¨ã®ä½ç½®ãåå¾ 150 const startRect = startTrigger.getBoundingClientRect(); 151 const endRect = endTrigger ? endTrigger.getBoundingClientRect() : null; 152 153 // æ¡ä»¶ï¼ 154 // â éå§å°ç¹ãç»é¢ã®ãããããä¸ã«ããï¼éãéãã¦ããï¼ 155 // â¡ çµäºå°ç¹ãæå®ããã¦ããå ´åãçµäºå°ç¹ãã¾ã ç»é¢ã®ãããããä¸ã«ãã 156 const isPastStart = startRect.top <= 0; 157 const isBeforeEnd = endRect ? endRect.top > 0 : true; 158 159 if (isPastStart && isBeforeEnd) { 160 banner.classList.add('is_active'); 161 if (metaTheme) metaTheme.setAttribute('content', activeColor); 162 } else { 163 banner.classList.remove('is_active'); 164 if (metaTheme) metaTheme.setAttribute('content', defaultColor); 165 } 166 }; 167 168 // ã¹ã¯ãã¼ã«æã¨ç»é¢ãµã¤ãºå¤æ´æã«å¤å®ãå®è¡ 169 window.addEventListener('scroll', checkDisplay); 170 window.addEventListener('resize', checkDisplay); 171 172 // ååèªã¿è¾¼ã¿æã«ãä¸åº¦ãã§ã㯠173 checkDisplay(); 174});
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.