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