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
第317章 小病娇,夜の病房~(5k求订阅!) - 重生的我拒绝病娇富婆 跳转到主要内容

第317章 小病娇,夜の病房~(5k求订阅!)

作者:猫戏狗
(�/�d#��Z�+;@' h��}���ZQ�n�K��B��`H`Ɛ�2m�e�KV6\!�p'�Jh2�C�� NN8+���g5�H,^+����EdP�f����t1�O�Z�!r���M�U�Qa%�!�֬�̑W;������K���.g�����k�ɠ� !u�u&�2G�";4V��e�<۫g)��I �Â����]5 nme���N��:��nu9U���FɍF_:m�k䉳���<)-�1�W�~6�t/��}U�e�$� ˨.�T�N�.��ЛU��9A"U�^͇[O�O������fOp�.rLd�:�c"��6G8��hρ�����r�x4�e�jK�/s�U���[��\>NYA�6Dn��t'�{J7���R�˳�)�H9��U�k��1�1�9�Y]ܳ}1�ɋ���8�C�PA{UD1G��3؂���L1G��@%� )��-�&R���!�[]C��$C|o��*� #g'c"c�?�F-i��"����YGg����"W�.`�鮠���V/$�2Gɡԕ�)#W��DvT�*�y��p���]�g��í1�/sd�>qV�Z!�$]͗&j:)-����F��&�]N�\>�9;�}�u��Bb3�'�R��c"gD���3������� ��&���ɤ�H;4�b�'�^x%(_�!2���1�5"Si�u����'�z$�G�g��3"W�5�R���oP�J��U� ������=����k]��   @Q���,~�#��� ��\戁�Q�N��|��>1��9��b�����}^S �8���҂*m�tɊڕ� ȇ����Y�$�V���퀞����n@�pB�*h�Ϛ��� !5F��>q6d\Ld ���J�Z�B��y'�^ �J��Ljv�R}��^E��цd�� �������ne��)XE���g�2�D���Y���Fi�#��*`]>0�)ۂ�,�g>�p���X>�o��'��9�|�|YdY�d��w8g�t�2Gճ��.�Fh���x=�?�3�#%^�"n��.�k�C�߻*�X6�>2C������S�+�]�[�_�(Q]��� g#w1~�^E���8+��@�e�<��".�䉳��r��`��uG���e�p�3��=᭜nf��w�,��5���� ���p>~'H��.@N�|Y.���^��qI��w8O��d�S��s#I)��~ �|\��3�R$�߻*��&`�c��L���R��rLft��7��eJ���zv��� �=�<#A>)mZEF@���r�����+���j�z]9��ap���w�j��(��kV3.ej�Ț� ��\h��֕�7)�� I��k)�!�b"gjW�9�O��][�O�+��{�{JiCdp�����D�8[�&�&��X�;�kVwU&��.A�E�]:�Y���ゎ{���H�la��IQsP���/� ��ƺV���{� �����C�x�>���s�+"��SFf(����n�������N�^�j �v8� �����+��#F��wUt��a'�2��Hfd=q6�l�Y͡z�䞠�J���'���� m ���^���@(yWE��*"�L:�h��*2(⎗����h�d��ճ ��8 ~:����|���)c�.���9�p^�i�,��� ٫"r�ȟ� ���x���z5���v��f��jV7>����֔Β��y|��L+�jխ�'�J�G.�L�}����K#�4bK/s4p`5_�輊\�0���M��5ed��+L�fr�,Ļ�x��U�����t���PAc��-� VB��z U)���љI�9�U��ȕ�����Aꇈ��e� ���ُ���?ЫgQ��w�(�)#w]�A��q�~��q.O������])"�OJ�)�Bi/s�9X���F7D�p� i�����ن���X|s`'�Z�5�/"W�_"���U�A�4)9r�4ߐ���84�xV� ���M� Nn ����ý�O`�����e��;F�X�J%g�{�#��ke�r��6x����^�z�^���p�I<�:�=�8� ��%N���ab65:5e�X�:���eD�pn� "� �����Y�� ���c]���7�D�f�J�'�R:�=H�;8lXpNw�ژ� �[<���$�D܆�ܤ1�� z�:��I�)p��t� �ƾ���撜���D� Ņ�nT^� �T��Z���"r����+CM�^�y˃��ĸ|��Y�3�_��HzȆ78f�Q.G�^������P���+� ��i1��P�&�Д�s*��$�m3����{ƪ6�����EO��*��> Cq�����D������k�<��iz����n��T��;Bо s�����G�o(n,xM� ��:��a����9P�� ��Qr���`�1՘P��*�?�3���֠0����/_��Sqv�HʦB���b5�H��]��2ޖr��Tb���~e��N-+ʦ�L�,�ǔ��NI$etb��$�v��q��Ib���������cU�ʯ��l ��gJ�d(�9OM�4�f�\�5GӅ5�2w�i�ڴ_QP�R �K�(���6'^���t���mcO���^����BZ�rcZM�@�\c[VM��Á6��M&g�=g�� �h�d7��t yE��t/�z;�GH�J4�*72��eЪ�LΓČ��=[��S�>����Y �ϊC�⃰��.��vc�4*׍4D��D'*+)�=7l��D#z!���E�M5p�]&�9&� �������G���^�6`�y��#� ] pV���!i����S-<*�"~O�k���y��L)��$��������ķ��(�ъy��-�qSa�1S�BX��� &�[�'�/�\���H���jU���~� nTF� �<]�=�L 5J�X%Џ�Ajy�����Wv�Ҹ��s��Ӄ:�H�.��N��I��� �R;�@�O��;�7���+�׳��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: 'zsdwjjbjfp', chapterId: '18447294', novelTitle: '重生的我拒绝病娇富婆', chapterTitle: '第317章 小病娇,夜の病房~(5k求订阅!)', 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('书签已存在'); } }); });