//ディレクトリ //ディレクトリトグル function dirMenu() { $('#dir-contents').html('') directory('directory') $('#left-menu a').removeClass('active') $('#dirMenu').addClass('active') $('.menu-content').addClass('hide') $('#dir-box').removeClass('hide') } function dirselCk() { var acct = $('#dir-acct-sel').val() if (acct == 'noauth') { $('#dirNoAuth').removeClass('hide') } else { $('#dirNoAuth').addClass('hide') directory('check') } } function dirChange(mode) { if (mode === 'directory') $('#directoryConfig').removeClass('hide') if (mode === 'suggest') $('#directoryConfig').addClass('hide') directory(mode) } function directory(modeRaw, isMore) { const mode = modeRaw === 'check' ? $('[name=dirsug]:checked').val() : modeRaw var order = $('[name=sort]:checked').val() if (!order) { order = 'active' } var local_only = $('#local_only:checked').val() if (local_only) { local_only = 'true' } else { local_only = 'false' } var acct_id = $('#dir-acct-sel').val() if (acct_id == 'noauth') { var domain = $('#dirNoAuth-url').val() var at = '' } else { var domain = localStorage.getItem('domain_' + acct_id) var at = localStorage.getItem('acct_' + acct_id + '_at') } if (isMore) { var addOffset = $('#dir-contents .cvo').length $('#dir-contents').append(`