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
第39章 - 细腰 跳转到主要内容

第39章

作者:冉尔
(�/�d�u^��$%>0 ������Uz�iK�A. %P�!�PC�$ ���D�JL������ ��� �"TA�@�>?B��s"��W�[{E���J�'�L�(T �*2�C���"_��кڳ��x�h/������(N'��=N�dy���o�����i��I��[W�G&�,q�i*^��xG&�WF0h��՞ԃ�-[���d¥�G�ڳ�ꄫ/kVW{���|�P=é!����B^�=DMA݊��;��\3���X�࣫=C�X:��� {��W�sa��j��9{�ԭ���5"���Ag��� ڴ�+�OC�`�-�XW{6ī�Wavj�(NW{���i�="��\3j�����)������Ay �P����=���'D��6�otO:z"^��@����>`�A�1^�R�b�WL�Ph �>p�l�d���x9�Mnf=f2u��]�)���m�=9�j��6�9Yb���=�/�c��"�R� ����V�]q��1��<�ӹ�`�`�m�T��D���$o�g�kk� �:�R\�2)���C%ք�bn����.0@�"8��]`��פO&�j����x o�C��L8?;d�,^�1X�{�=�k��t���B�]P��d���K� ���^&�WV� B|�E�&߁t�ˆ�[� �A8u�Y5f� 㭸'��sa���?��x�����mk�[�5��S�� �V���uumk�= �a��������#���U�jO����K ��Uoiˑ��3�RM����8u9����0@(�Y*�T�:_�ܡ�T�� �: l�>48`��w�!��j�ҖE �0�z��d=J��� ��T� ]Қ{Ku ��Ll�W�8�0� r`�� _s6����}��� ���=��� D�>ix!:�h�V��^�:��<1���xn1�5�� ���l��A��B�=[�t����x ��ա�ၗ$��x!�������n�0�Qބ��ҜL����x���dŽ�g�S�f�%!����f,� ��3���$� .��yx�jO��W�eq���js�)�51�l�I�-��WL "�B�{��ڕ����.��v�}z���@]�>L*��A�>t_{*�}���tt��\�O�Po2�bb� �,�=�� �邃_R�L��[�Z�5^��[\3�� @����2/h��cL�w�[tŽ����d–��LT������'HMO&�Ph���ɫ=7�W 2����&���&�����î+��(��y�� 0R^���y��ebK�b��̫='�G)���<�8����� 50�|�O��ƪ�t n]���jOi�Ʊ�3�v��S�Z��j�,1X�ϣ?�Z��f�2��!�9һHw�����zT>6��Cv����pK��K��Xz���ʔ���|/���x�����$rG0c����[�Ʌ��4Y�5�>"�χ6���Gxyq�k�� � ���q ��;_k\o��5�x����2{��G��4�����9��%�W{� l�O�/�`Rx��{k��E:���5�Bv��7�@0p2a � 4��`�=/��L,��a��2��� +��tt���ա̭��3�:D^Ц-������&^���� W*��.�� #\*�8�O�X�फ=땻���8�����3k�� _ۆ�3�< @���A��G�S�<�w�W$����& N\���Q������ �ŀ6��GPȧ�gZ�0/�|��M�!���t�����$yI�:w@u���u� ��@�j����u1j�G[�@��W���S��M��A�$��P_l_�9piD�#�.Q�� �� V��np}���PG�5�Ʉ6�b��+� Vӽ�b�q���P��9u�羮��R������\�I�Mu �a��A�g<�,����{���W{^�)�X��A�� W7,����EL2X��Ěx��|R���L~/���7� f����+�?�g8=4���T���`��j��%3�&kw�a��@P�@�g)�DH`1:Ӻ�uu=Y/�9���՞T����Xt��&�/&F�\�z#yR�+�@m�����\���{M����-FS¾�W܏ �1�G��֝GyG�b`�|�!�J1��)ڞx �\���w!�+�=]'x��( �13@Q%��A8��ń3O�窄a�F�t��-�r� �����' p�h"�Ϫ�$����a�M|��M�lG:K��5 �.I�Ut�Y밿BQx�%���f �����82�e���F\yͨ�(8x�A���7�%*��) R� �!p�$$�F��V���q��Z�&U����'Ч}�0��FM����Z�y,����$ A�����h��$c�j �$h�ɟ� �Os۵mq����Ѳ�a8P��-T�w�ނ�Ut��l'Ϋ�!���J��G؄X`9N�:l� Z�{L��1�X�������������K� Y@��_� �V@~��&%A��] ��OҞ$ϩ�S�H1����,��Cܠ����g����2òx�5my��X&2�;��qt�h6\��Ԅh;(�|+-xk&� e�)H { // 初始化认证状态 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: 'xiyao', chapterId: '10327159', novelTitle: '细腰', chapterTitle: '第39章', 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 看小说网 版权所有