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