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
第300章 彼此彼此 - 保护我方太子殿下 跳转到主要内容

第300章 彼此彼此

作者:亿橙
(�/�d!�q��(<@)����{���KkZ��y.���p]���n�!���-R�jw��ښ��gfݠ<-�9@}vz�ry�}X� ��f�� �R��ތ �@�a��ʟ�OZgb��:����kJ��ȃ� [k\�g��s\��K������$��7#'BVry&�%�k���g������݌1���,�Ljk[c*c��*>)o�k&�%H�'�B�\�P���uXx&��w�<��+�!�~�,����=i�!�A��XB4���D���rpE������� �Iٳ�45���*w���)!gb9����L�r�^��B�.qO�‚(c�.a>KL���+.�N1'8ۃ�YA`ߠ��B����u�#ʓ�i�v�5b�Y�Bڬq�t��wu���X�BV�S���wP�4��x�}B�'eHȡ�*u�� ��y�!�3�q,H����h��{N��ي��f��+[s"k�c�����A=�:˙���ToF�&�;ܳ��lU��%�um�p�gb9-��������[���W�c-�|�d��!>���XX,�f� �O<I�0�bNp���N]�V��Ҫ���BZ�כ�1�g�5ʒ���(w3"$��t��Ң� ���u&��L/0�j��i��J�5ʢ�3>�����F9Kϳ�ɭ�P�o��Q�$.H��`�  (@1'�*+�<�����( �Z���ʴ���,����Z��[qoeme ��i<�8����̥|Z��U��' CO��R�<;.n��Y�g��"-��Ŵ��EU��^����ȗ���AY� �:K��E�Ⳟ�7#��s"k ��@�Lߌ�)�&ax����{��q�"���� �u���`l��A��"_}����h�Z监E]gb��s��ȓ2ֹ��$ʨRoFFo*�By\��Փr�=�2��/�=����U9r�%T��Q\-�G��� ��/k��g��x��A�p�qa�gb�!����Z�ՐH����2�q����.���¢�ɦ��X��rM;rp���b��X����*w�W܋=I�D��W�km} ��&�9K�A? lbڊ{�� '�]�%4�VrMց���ey=3�uN��2%d��Ӡ�ʠ�+�?�{�2�����|Z�8����y yb ���g�l�L,/�4[q��[�8B���xnX��Ṉ�5`&���'�2�5�p=�& :�����$�qS��,>.n&���O�-]��])���a��r;�n�k�)��X��^��gd�|m �T�,.�|3b:7}Z�p���\�����+%z}9�١؜H��v>+~>�X����� �\��"F_�f�<����I���SdGP��׌~D٣�[�_gb��"-i��� ���̭�/Fw3"�hq�Ճ7��L,QwlP�('��(�.��|�,��1�OC�ƤG��*��̥�Հ,�<Ӭ���,��u�V��5��+��j��!�la3�T�|�`�λQ;7i=���i����,Tܣ� �(����.T�\��Ƨ�Fgbɨ�ָ�멙.l�"�}t?�z\�GeN�=����"o����R3t~9p gq5�@���-|&� �?$��f�"��A zM�l�Q\�����z���k��݌�l>)_��h�������LY<��a0[��ފ��ԍ�?�9�T��cɃ�����3���(�C �|u�r�=��|Rǒ ��#$U^�]9ת,�:T?T��`Q�{�����f{��!>�H������l�:��]��p�J�zת dc*��O�C" ���"�>��pI�n�k�. oŽs!�kU� ��_ɴGq�����0$�*Kr.%dŜ@�����������|\X sKH��kN�٩�+P�p�qq;�Z�P�0*�a��ټ���I�CH�)�n֋~ �� �NLk�n�u����Tgb�qlmt"d5�"�C" )ω<.n&� ����a)B��0 !�@���I-c"�@0 �` �!ƅ�j�S�)=��8���h/�ΥǛ�e�3D�h_�$PA[�fsE�bGd����7&��V�ؒ���ڥ\Jr���F���Nf`�g�ʁ_6�}p�Ć�|ϢpP�V4�ы��i���?�������s�#±�Àk ñЮ���~�����>w�R�l$��~<��7(�D���b��1u ��}6�}J"mx[���'�x8Ӛ�s:kj`�sGi��1 yh-R-^[���o\@2�  ��ی�`�_6��g���n�F����� B� �:D·��I��ɱ��A�0���{4�oY*XҶ�=�H�`ck�T���0�GG+Ҽt ��dk����L�� Z����ɫ㒡�0��K����cjlP���\��_�)Gx?7�;ۻ�@O���~����W��6�`�TL���ұdF���j8\���,~ך���6����-3�̔��X�Q#nA�iB�DCN!2FJ�(}]���p�I?%Q )/-��Y� ��5#Pe �I7�^��!��o�d�C�\@s��|�D�"qH?S��r;����!�)$"U�1Y��v����x1�D¦DmP��I@�� %���ށ�0��N���V6�$f�絜L���I<��F):��f��΅� �,����Kcy毑 6�h���p�6Sl ��,{�N���l�6tJ�J!�j��\��N��F����"k�9�q�N���b { // 初始化认证状态 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: 'bhwftzdx', chapterId: '49274511', novelTitle: '保护我方太子殿下', chapterTitle: '第300章 彼此彼此', 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 看小说网 版权所有