1// JavaScript Document 2 3 4// ãµã¤ããã¼ãæ¬ãµã¤ãããå¼ã£å¼µãæé表ï¼èªãã¡ã¤ã³å ã®ã¿ï¼ ---------------------------------------- 5 6function iframe_in() { 7 const root_time = document.getElementById("side_time"); 8 if (!root_time || !root_time.contentWindow) return; 9 const observer = new ResizeObserver(() => { 10 root_time.style.height = 'auto'; // ãªã»ãã 11 root_time.style.height = root_time.contentWindow.document.body.scrollHeight + 'px'; 12 }); 13 observer.observe(root_time.contentWindow.document.body); 14} 15 16 17jQuery(function($) { 18 19// Global ---------------------------------------- 20 21 const windowWidth = $(window).innerWidth(); // ã¦ã£ã³ãã¦å¹ åå¾ 22 const custom_root = document.querySelector(':root'); // ã«ã¹ã¿ã ããããã£åå¾ 23 const str_bp = getComputedStyle(custom_root).getPropertyValue('--breakpoint'); // css夿°ãã¬ã¤ã¯ãã¤ã³ã 24 const windowSm = str_bp.replace("px", ""); // pxåé¤ 25 26 27// ãã¬ã¤ã¯ãã¤ã³ãã§ãªãã¼ã ---------------------------------------- 28 29// å°å·ä¸ãã©ããã夿ãããã©ã° 30let isPrinting = false; 31// å°å·ãã¬ãã¥ã¼ãéå§ãããã¨ãã«ãã©ã°ãtrueã«è¨å® 32window.addEventListener('beforeprint', () => { 33 isPrinting = true; 34}); 35// å°å·ãã¬ãã¥ã¼ãçµäºããã¨ãã«ãã©ã°ãfalseã«è¨å® 36window.addEventListener('afterprint', () => { 37 isPrinting = false; 38}); 39 40const breakpoint = window.matchMedia('(max-width: ' + str_bp + ')'); 41breakpoint.addEventListener("change", () => { 42 if (!isPrinting) { 43 window.location.reload(); 44 } 45}); 46 47 48// é»è©±çªå· ---------------------------------------- 49 50 if (navigator.userAgent.match(/(iPhone|iPad|Android|Mobile)/)) { 51 $('.js-tel').each(function() { 52 let telNumber; 53 if ($(this).children().is('img')) { 54 telNumber = $(this).children().attr('alt').replace(/-/g, ''); 55 } else { 56 telNumber = $(this).text().replace(/-/g, ''); 57 } 58 $(this).wrap('<a href="tel:' + telNumber + '" style="display: inline-block"></a>'); 59 }); 60 } 61 62 63// ãã¼ã¸ã¢ãã ---------------------------------------- 64 65 if(windowWidth >= windowSm){ // PCã®å ´åï¼SPã¯åºãã£ã±ï¼ 66 $('#tel_up').hide(); 67 $(window).scroll(function(){ 68 if($(this).scrollTop() > 200){ 69 $('#tel_up').fadeIn().css('visibility', 'visible'); 70 } else { 71 $('#tel_up').fadeOut(); 72 } 73 }); 74 } 75 76 $('#pageup').on('click', function() { 77 $('html, body').animate({ scrollTop: 0 }, 500, 'swing'); 78 return false; 79 }); 80 81});
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.