Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/kxs-php/controllers/NovelController.php on line 303
第54章 相国找你 - 仙子,请听我解释 跳转到主要内容

第54章 相国找你

作者:弥天大厦
(�/�d� �}j��->0 �������?PW���ѱ%��h8 Ab�jԨp��%�f��u��^�$�� � ���v���ٚ�ը����+R�F�^��9+y�r9"׌� 9�\*l�Ș׹r��I`CDmB���F�^kWT��=����p >�B���׻���C��Ŵ�·8߈��ѱ��MU#|۴e���%d�qk�r�i�j�����Qw�#�-V�J^�Lm���Q<��1n�&��JF�Z�EdZ��\���v�����a�~�Tجr)���&>VM��]�r̂������Ӧ�c���_f�� �3 �h�Z�rB�&6�u��=��B�jF���h��jw4��"�V[�0�K� Ng�1���w�"[$n�`�rZ���;��q�C�GS�S�CUg���?�_B.e]9-F�8�KK��k�����d�G'��Vy�wT����\S�ϰ�l:�D�:oT^�����=�d��� ����Bd��$�?�=%ۡNm_9�9���E�yz�8���4�jm�M�F�P�S����h�y��Q�������66Z����:���)��"-��`d-�/!��-Mm�e��d�6(��9"��\9-�}��#O��튕 �x�6>��򞃦�J/@`�"P�L��奥��1�'��P�����E�1�1�T�<���ie�!���#�Gf�*K¦�K�wpߙxg���I�+j�2N :ؒ�)�+_^[L���жF��>;����9�K ��4Ƹ��k��.��݄���'�sp_��b��C�;� �ѕ�z�3��)��Ȝ�C��ʝ��? ݐ�5"��-+���@�1s��)�q�%�7Z*�ʴ�Ł�*�&��\��4�6ɽW5��^ՠ��L����֪.����jy�B�����L�p���y���e\�di�Ac��\;Aj���MckF�4�i�i��c�u�]��]��Mé�I�eg%o4Z{&w�rA�Ak5���+,���������Gq hc䩁� �������ǑK��:p��Ϟ��*[D.G���^�b��I܍䅤c��Q�g$8�M_2�D�(^*n���Ӗ��>OP��D>,��zUc�)[���YyP��%��U<��Z�� }Z.N�Wu5r52F�H�9ZM]�#�"c���^�k�>��q��Q�sq�V����^��Um���l��`KY[�S��Ef\OG�c�i��Ȟ��ݘO+Sۃ\#������"�% ~itFzJ�A�!Op:�}�L�кZ4����5�j �#O �2�Lm� ��L|2���%d h7*�*L.��V��CdR��u�\zm�V6��0jS�ڦ�S�_�w6�ٴ�Ҵ�iԢ�c���)��1j1�dA'���Py|4��eӥ�B� �nir��XN=�v��0��!�N�Z4����rq��M�_��&~RMm��m���Zat�WC֙���D�>�J�$�C䆪!c�ʋ����p���������V� #���l���{!��hء�^G�!�Կ�B� �G@!�?�����_�,�9e��W���ګ��rK�RxPӛJ�V;@��'걤M��?�ZQdЦ?��,O+�^wV#� �at������I`_B%�`h�<�^;�Y�I8��,m:L�B�0��I�׹�{�6���������1�0��{�I�#gP���2�V��l���RqC�1��X�fB�}�U�U&1Nb�Cx�q�G�,�����X�R�"� �K�5)8'd���CD�-�'��Z4�9�r�E� [*n�r�s�� �=\7x�e�焼�|U�SY���ʋ�,=2��,㴈������%dO�?ZɌ�8mV��4��/ε��uE�ybp��|�y+djiMm/�|!yBw!�U�������B?��4��i=\W� Z�U��}�>�s �ผ�(�t�X��rڄ���Nk7L��k�I���,� A�j��gK�= BGD���p�U 5H��Yc��1j��1�Z]�,��F���2�s� { // 初始化认证状态 initAuthState(); // 注意:阅读历史已由reading_history.js自动处理,无需手动调用 const themeToggle = document.getElementById('theme-toggle'); const themeToggleIcon = document.getElementById('theme-toggle-icon'); const html = document.documentElement; // 检查本地存储中的主题偏好 const currentTheme = localStorage.getItem('theme') || 'light'; html.classList.add(currentTheme); // 更新图标 if (themeToggleIcon) { themeToggleIcon.className = currentTheme === 'dark' ? 'ri-moon-line text-xl' : 'ri-sun-line text-xl'; } // 切换主题 if (themeToggle) { themeToggle.addEventListener('click', () => { const isDark = html.classList.contains('dark'); if (isDark) { html.classList.remove('dark'); html.classList.add('light'); localStorage.setItem('theme', 'light'); if (themeToggleIcon) { themeToggleIcon.className = 'ri-sun-line text-xl'; } } else { html.classList.remove('light'); html.classList.add('dark'); localStorage.setItem('theme', 'dark'); if (themeToggleIcon) { themeToggleIcon.className = 'ri-moon-line text-xl'; } } }); } // 字体大小调整 const content = document.querySelector('.reading-container'); const fontDecreaseBtn = document.getElementById('font-decrease'); const fontIncreaseBtn = document.getElementById('font-increase'); const readingModeBtn = document.getElementById('reading-mode'); const addBookmarkBtn = document.getElementById('add-bookmark'); // 从本地存储获取字体大小设置 let fontSize = parseInt(localStorage.getItem('fontSize')) || 18; content.style.fontSize = `${fontSize}px`; // 减小字体 fontDecreaseBtn.addEventListener('click', () => { if (fontSize > 14) { fontSize -= 1; content.style.fontSize = `${fontSize}px`; localStorage.setItem('fontSize', fontSize); } }); // 增大字体 fontIncreaseBtn.addEventListener('click', () => { if (fontSize < 26) { fontSize += 1; content.style.fontSize = `${fontSize}px`; localStorage.setItem('fontSize', fontSize); } }); // 阅读模式切换 readingModeBtn.addEventListener('click', () => { document.body.classList.toggle('reading-mode'); if (document.body.classList.contains('reading-mode')) { // 隐藏导航和其他元素,只显示内容区 document.querySelector('header').style.display = 'none'; document.querySelectorAll('.section-container > *:not(main)').forEach(el => { el.style.display = 'none'; }); document.querySelector('main').classList.add('reading-mode-active'); document.querySelector('.fixed.bottom-0').style.display = 'none'; // 隐藏移动端底部导航 } else { // 恢复正常显示 document.querySelector('header').style.display = ''; document.querySelectorAll('.section-container > *:not(main)').forEach(el => { el.style.display = ''; }); document.querySelector('main').classList.remove('reading-mode-active'); document.querySelector('.fixed.bottom-0').style.display = ''; // 显示移动端底部导航 } }); // 书签功能 addBookmarkBtn.addEventListener('click', () => { const bookmarks = JSON.parse(localStorage.getItem('bookmarks') || '[]'); const currentBookmark = { novelId: 'xzqtwjs', chapterId: '49596010', novelTitle: '仙子,请听我解释', chapterTitle: '第54章 相国找你', timestamp: new Date().toISOString() }; // 检查是否已存在相同的书签 const exists = bookmarks.some(bookmark => bookmark.novelId === currentBookmark.novelId && bookmark.chapterId === currentBookmark.chapterId ); if (!exists) { // 限制书签数量为10个 if (bookmarks.length >= 10) { bookmarks.pop(); // 移除最旧的书签 } bookmarks.unshift(currentBookmark); // 添加到最前面 localStorage.setItem('bookmarks', JSON.stringify(bookmarks)); // 显示成功提示 alert('书签添加成功'); } else { alert('书签已存在'); } }); });

看小说网

看小说网是您最喜欢的免费小说阅读网站。提供海量全本小说免费阅读,所有小说无广告干扰,是您值得收藏的小说网站。

© 2023 看小说网 版权所有