芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/chaty/src/components/settings-button.js
const $ = window.jQuery; export default function settingsButton() { $('.chaty-settings').on('click', function( ev ){ ev.preventDefault(); ev.stopPropagation(); $(this).toggleClass('enable'); const $scope = $(this).parents('.chaty-channel'); const scrollTop = $(window).scrollTop(); const distance = $scope.offset().top - scrollTop - 130; window.scrollBy({ top: distance, left: 0, behavior: 'smooth' }); }) }