1/* 2****************************************************/ 3//ãããã¼ãã¡ã¤ã«ãã¹ 4//href="{$root}" ãªã³ã¯ã«ããã 5var headerhtml = '_inheader.html'; 6//ãããã¼ã®èªã¿è¾¼ã¿ 7function headerInclude(directory){ 8 $.ajax({ 9 type: 'get', 10 url: directory + headerhtml, 11 dataType: 'html', 12 success: function(data) { 13 data = data.replace(/\{\$root\}/g, directory); 14 $("#header").append(data); 15 16 17$(".openbtn").click(function () {//ãã¿ã³ãã¯ãªãã¯ãããã 18 $(this).toggleClass('active');//ãã¿ã³èªèº«ã« activeã¯ã©ã¹ãä»ä¸ã 19 $("#g-nav").toggleClass('panelactive');//ããã²ã¼ã·ã§ã³ã«panelactiveã¯ã©ã¹ãä»ä¸ 20}); 21 22$("#g-nav a").click(function () {//ããã²ã¼ã·ã§ã³ã®ãªã³ã¯ãã¯ãªãã¯ãããã 23 $(".openbtn").removeClass('active');//ãã¿ã³ã® activeã¯ã©ã¹ãé¤å»ã 24 $("#g-nav").removeClass('panelactive');//ããã²ã¼ã·ã§ã³ã®panelactiveã¯ã©ã¹ãé¤å» 25}); 26 27 28 29 30 // console.log(data) 31 } 32 }); 33} 34//ããã¿ã¼ãã¡ã¤ã«ãã¹ 35var footerhtml = '_infooter.html'; 36//ããã¿ã¼ã®èªã¿è¾¼ã¿ 37function footerInclude(directory){ 38 $.ajax({ 39 type: 'get', 40 url: directory + footerhtml, 41 dataType: 'html', 42 success: function(data) { 43 // console.log(data) 44 data = data.replace(/\{\$root\}/g, directory); 45 $("#footer").append(data); 46 } 47 }); 48} 49 50 51/* ãã¼ã«ããã 52****************************************************/ 53tippy('.cap', { 54 placement: 'top-start', 55 56 animation: 'shift-toward-subtle', 57 58 theme: 'light-border', 59 60 duration: 200, 61} 62) 63 64/* ãã¼ã¸ã¹ã¯ãã¼ã«ããã¨ãã¼ã¸ãããã¸ãã¿ã³ã表示 65-----------------------------------------------*/ 66$(document).ready(function() { 67 var flag = false; 68 var pagetop = $('.pagetop'); 69 $(window).scroll(function () { 70 if ($(this).scrollTop() > 100) { /* ã©ããããã¹ã¯ãã¼ã«ããã表示ãããã */ 71 if (flag == false) { 72 flag = true; 73 pagetop.stop().animate({ 74 'bottom': '10px' 75 }, 200); /* ãã¿ã³è¡¨ç¤ºã®ã¢ãã¡ã¼ã·ã§ã³ã®é度ã*/ 76 } 77 } else { 78 if (flag) { 79 flag = false; 80 pagetop.stop().animate({ 81 'bottom': '-80px' 82 }, 200); /* ãã¿ã³è¡¨ç¤ºã®ã¢ãã¡ã¼ã·ã§ã³ã®é度ã*/ 83 } 84 } 85 }); 86 pagetop.click(function () { 87 $('body, html').animate({ scrollTop: 0 }, 500); /* ã¹ã¯ãã¼ã«ã§æ»ãæã®é度 */ 88 return false; 89 }); 90}); 91 92 93 94/* ã¹ã ã¼ãºã¹ã¯ãã¼ã« 95-----------------------------------------------*/ 96 97$(function(){ 98 $(window).scroll(function (){ 99 $('.fade-in').each(function(){ 100 var elemPos = $(this).offset().top; 101 var scroll = $(window).scrollTop(); 102 var windowHeight = $(window).height(); 103 if (scroll > elemPos - windowHeight + 200){ 104 $(this).addClass('scroll-in'); 105 } 106 }); 107 }); 108}); 109 110$('a[href*="#"]').click(function () { 111 var headerH = 150; 112 var elmHash = $(this).attr('href'); //ãã¼ã¸å ãªã³ã¯ã®HTMLã¿ã°hrefããããªã³ã¯ããã¦ããã¨ãªã¢idã®å¤ãåå¾ 113 var pos = $(elmHash).offset().top - headerH ; //idã®ä¸é¨ã®è·é¢ãåå¾ 114 $('body,html').animate({scrollTop: (pos)}, 500); //åå¾ããä½ç½®ã«ã¹ã¯ãã¼ã«ã500ã®æ°å¤ã大ãããªãã»ã©ãã£ããã¹ã¯ãã¼ã« 115 return false; 116}); 117 118 119/* ã¢ã³ã¼ãã£ãªã³ã¡ãã¥ã¼ 120-----------------------------------------------*/ 121 $(function(){ 122 //ã¯ãªãã¯ã§åã 123 $('.comment dt').click(function(){ 124 $(this).toggleClass('open'); 125 $(this).next("dd").slideToggle(); 126 }); 127 }); 128 129 130/* SNSã·ã§ã¢ 131-----------------------------------------------*/ 132 // ç¾å¨ã®ãã¼ã¸URLãåå¾ 133 const currentUrl = encodeURIComponent(window.location.href); 134 135 // åã·ã§ã¢ãªã³ã¯ã®ãã¼ã¹URLãè¨å® 136 const shareLinks = { 137 'fb-share': `https://www.facebook.com/sharer/sharer.php?u=${currentUrl}`, 138 'x-share': `https://x.com/share?url=${currentUrl}`, 139 'line-share': `https://social-plugins.line.me/lineit/share?url=${currentUrl}` 140 }; 141 142 // åãªã³ã¯ã«URLãã»ãã 143 for (const id in shareLinks) { 144 const link = document.getElementById(id); 145 if (link) { 146 link.href = shareLinks[id]; 147 } 148 }
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.