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
第025章 不再瞒着你 - 理想国 跳转到主要内容

第025章 不再瞒着你

作者:何若望
(�/�d�ewZ�|+B S���n��E�M1:�@C�VĤ���V��� �l��ۿ݂��)��0S�@@���ն�zs�zf32y����妛��3 �"{�����5`��#�٤m��n��x�٤�퇇)g/ϋ�x9��I�`����n���ʚ��;_mc�� ��d��$��{���?L��X�rS.���;W��9�T��+����M��6��}H���� i�U����v�{�#g);�q�^Ʒ�:l����j�j���C���'\����A��'e{U�����v��4��=�0� �S�ș�Z?Z���[�&Q\�-N�D'-x���3ۋ�C��7<,�h���K���á"�w��4!�u��� ����@�:�P�Np8��5RvE��S4�n:~|�lH�*��}��a�R�����*�B��~P¡�c5K�~ 3������Ev�1���]�e?����/�s%�J A��#H��%�-g^H�̶�v��3�h�á��# :����2�x�8��2�C �E��K��W��_R@�SA�v���MT���۵~��T�I���#���x9�E��z�cf�C�l�(�E�e쪐���x��<��a�rFs��g�n*z��<������o�O7/ý��I�cgB��v��.��CVy�yE6H���ʽ*�Y()�7*��o�;�y�\����7*���;Nj��.L��h)[2��c �0�����Wdg_�����}ئl�P~f���x�{��/�Tgy'�`١���C�� �‡R���1;�yEv�~1�">��֙5�3۝���_�Ea�nZ?L)�ē0_9lkl+�Dt��IX��톆;h�P���G<��L����%�I�I�ZM o�c7%��&�J��>����:��q�-@�+y�!Oʦ: ^���ҧ� �) �,X2�� ��3 T����B=vS���ȶ��C�"�)!c�Đ� A��ɒ -u��%ĭ3g�)g��ƘM ���$ٗ�B�P@�P`@ ��N<��8�d�AP�`��MB�s�� :1d�l�����䱛R���,{Ľ�����л��*�D�z�[g�Ĭ��a7Q��ʍ�"�`vH�/̕3������Y����]�9��"2vS�Ї�@�T�7\�`��p��7�8ԁC�����6�r,�� z��P����mMt.���cdUb��ý*Au�A� ��-���H�ҸwfH��D'-�Ub��X�<��V��3�W� �(���;�g`��4̎ ���8ҡ�6�{��dS� �M��x�{���+g�Dw�>!�Ab7�4^Y��{����%��Ѐ�� xԉ�Ģ0k��]�Q'D���q�ʯ�G�� ���/͌��a��1�x s�ev�:�q��i�'1Wf+�I�W�������_<��d��\@�$� BxxX�qRD� ����^��$2/c� 8���/�l�g<�e��ޙ7�_**1��!x�R���R/cc7}��Q�Y�\"f����ٖr}���"�t����:����c&/|(f��U�>��f�H��˻˿*���i�15���k���"�Gnx��N YQ'F_^s1�F�#��%�[�������?�5�j�s|I�r(�3 Y��#q�ww��:��m��C�:��:�e_��( d��(�!�@����������a�Nje� d�A?)7��\L��`;�J��J��IJ!-J�t��nzr�s廲���,*VIX���,�� �gy������W�d���x�� W��b��Zp1⢿u�@���A���|����@:��#r �`g ��:�B�!��C�����~!c� p'@K��D<7 iؗ��x�V��R��ҹ���B�J Y�'p`�\"ؒ2P�� ػ��'L:BEO�(!  �nP6@�B�3#��B����5�U�U��G�S-�qk�����i���~�@�[nR� �V AI�8 <���ۘcR&i��f5Pk�ܒ���EB�cF$�]`�b�/�zC74m��A �0�R��2���zH��/>���=��wm����a G����>�.[�>�n��6� `p킾�e ��ۓLa�`m����\����Mk��:Ǜ��_-���l��T����ZK1 D �{D@t��my '6Wg�u�'����$'"����.�L<× ��5i �sL�3���M4/���:7��9�g�|׭ߠ2:�����2-�j#��~-t|I��K�\2��vA��-.U����V{�N �F�,��VhH�ٹm�-G�w�m��}A��2�5� ��y�Z�c�5hS��\�R�X��P61v�nA =Ֆ>M����f�J��R�;U/�P�;���Jr P�: ���m�Pm �q)4r����xY�Z� ZH����p��R�-� { // 初始化认证状态 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: 'lixiangguo', chapterId: '53953266', novelTitle: '理想国', chapterTitle: '第025章 不再瞒着你', 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 看小说网 版权所有