1jQuery(function ($) { 2 // ç®æ¬¡ã¸æ»ããã¿ã³ï¼ã¹ããã®ã¿ï¼ 3 const ua = navigator.userAgent; 4 const rtocBackBtn = rtocBackButton.rtocBackButton; 5 if (!rtocBackBtn) return; 6 if (rtocBackBtn == 'on') { 7 if (ua.indexOf('iPhone') > -1 || (ua.indexOf('Android') > -1 && ua.indexOf('Mobile') > -1)) { 8 jQuery('body').append('<div id="rtoc_return"><a href="#rtoc-mokuji-wrapper">' + rtocBackText.rtocBackText + '</a></div>'); 9 $(window).on('load scroll', function () { 10 if ($(this).scrollTop() > 1000) { 11 $('#rtoc_return').fadeIn('slow'); 12 } else { 13 $('#rtoc_return').fadeOut('slow'); 14 } 15 }); 16 $('a[href^="#rtoc-mokuji-wrapper"]').click(function () { 17 var speed = 400; 18 var href = $(this).attr('href'); 19 var target = $(href == '#' || href == '' ? 'html' : href); 20 var position = target.offset().top; 21 $('html, body').animate({ scrollTop: position }, speed, 'swing'); 22 return false; 23 }); 24 } 25 26 // PCã§è¡¨ç¤ºããã«ãã§ãã¯ãå ¥ã£ã¦ããå ´å 27 if (rtocBackDisplayPC.rtocBackDisplayPC) { 28 if (!(navigator.userAgent.indexOf('iPhone') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0) || navigator.userAgent.indexOf('iPad') > 0 || navigator.userAgent.indexOf('Android') > 0)) { 29 jQuery('body').append('<div id="rtoc_return"><a href="#rtoc-mokuji-wrapper">' + rtocBackText.rtocBackText + '</a></div>'); 30 $(window).on('load scroll', function () { 31 if ($(this).scrollTop() > 600) { 32 $('#rtoc_return').fadeIn('slow'); 33 } else { 34 $('#rtoc_return').fadeOut('slow'); 35 } 36 }); 37 $('a[href^="#rtoc-mokuji-wrapper"]').click(function () { 38 document.querySelector('#widget-tracking #rtoc-mokuji-wrapper').querySelector('.rtoc-mokuji').scrollTo(0, 0); 39 40 var speed = 400; 41 var href = $(this).attr('href'); 42 var target = $(href == '#' || href == '' ? 'html' : href); 43 var position = target.offset().top; 44 $('html, body').animate({ scrollTop: position }, speed, 'swing'); 45 return false; 46 }); 47 } 48 } 49 } 50 51 const back_button = document.querySelector('#rtoc_return'); 52 const back_button_link = document.querySelector('#rtoc_return a'); 53 if (!back_button) { 54 return; 55 } 56 57 if (rtocButtonPosition.rtocButtonPosition == 'left') { 58 back_button.classList.add('back_button_left'); 59 } else if (rtocButtonPosition.rtocButtonPosition == 'right') { 60 back_button.classList.add('back_button_right'); 61 } 62 if (rtocVerticalPosition.rtocVerticalPosition.length) { 63 back_button_link.style.bottom = rtocVerticalPosition.rtocVerticalPosition + 'px'; 64 } 65});
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.