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
第19章 - 风流双修,终将无敌! 跳转到主要內容

第19章

作者:王者猎人
(�/�d��m��&90S�%�;�y���n���dkA#�Nf��d��Y��P �, ��o۶w�=�����PPQ��Yg��^�"/24��:DYsr;��Z`r�k���y�sɐ)�f$����( f b��4rv^��Y� ��Gt��v�k�B^�Z<��֜Bu'�T-���<��8oH� �!g$��Mi�t�r� �$]C��[#sH{p^�L���Y[ez�4ƻVQ��2 f����ΰxn�د��z�(+:]n��s����Y� ��*��x����;�5[O�kp~���e�`���F��ʴ��\5'26��n�iM�V�"� �!r���Ҧ�9���4�vFj��^�V�R���_��q�а�l���<�Y0kK�N�E�g��o�l0A-����Z�P�8��Ni6R�>�����z �s2���T{c�����H���� Y�\�L_l����rNt� 5yr�e�[e�-�xMȓ�b������V�j��x�8-j��f��A���R��|��ԑ� ���K5��d�L����[-@i���r#d0�j���P[ejE�d9�&�N��y�Eg�S�]�|����U��� IZr 91r��`/ �*���5dn���=�:+i��s�� ��Tw�� �q�A�Z�5��8�̭�i[;�*��� � ����`�`��h2dī�/�<�T�D�A�FqA��� �o�\+ʀAqŃ�H�x#�ZѭP Y����4;��§�`)��ع�. ��$'F&�O�G �!-���ѳ�V'I�4k��A� z���w��Ւ��?�ϵʴұW�ע#KFO���Ή���Ƣ'����9�Yqt7��'l�J���tnp^J��w���I)�&0�Q�,��[�g:W+� Y�Aq'�!IS��ollg�bk��b�qdJ���ɉ�;�FP\Ou�ԝ�ˍl}p^�L�[eʉܙ\994�V�X��>���ٺ�'iƸ��y#[[e���Z2�b��� �'�Ig0�5d�r;'G���C��(-j�����D[ f �5x��V��(�Gi��H;D��T��rC��t�*SHՉ�'��JN����[e:�ܕ܀�P���G�^��@TYQe�z)�~�nB�������BB'�>������A����`p��c�'�Z�S��h���!_�3B�����`�"� �U��2�����1�C�����S�3٢�[�Ń]tB��0 UcT?0�<u��ܙV�2��R��Ԏk�4�Y{gN�ky��j��vЇ�ǐ����?����֘ӽ��С�i/�I�{��P�V��T���!ub� ��?�j������5�Y��0��f%�)��Y����o��|bdN� �E�4V�������:c|���Iǥ�������E8�����A1�$+�,� ��n-O^,�j�rC��B�<���2b��P�3�� �Y�.�jsB���+�< �gC�p9��ss����ug2� c$hC���w���s s�G��" ]���hc�.h��xҼ�� ��]D`:�T�V2��(�Y�r���_��ysB�ͥ��@#["ݙ,���.����g��9K�"Є퓍M@��XF��Ak�)h�XnH]�d�L�M8��V3���ŏ��};o�|�rHYe*~�L�0�t\q^Ȣ!�ĸ��"p������?�C*�L/���%O+]�x���!�a�8b� f �PG��`!-�S@5`�(׀������ ����{1#�)W_|g�qH��y�N�+ �U��W�3S����"ș�2�/qRx��'q*��-����Zh��1��7V3ѹ�Ί��$������D�'��rla��U�fs��i^f)�n�4h���S���Q�(���f�F�ÔuC��k:���Q�Ik�0>>GR��8�zx�y�Z[ �D/����-��$�2[� ���o\(g1�4:�…%�1lN6Ӥ���@�=;H�1�i�_�SF�41� c�y��8AIW��֐H._��#��)t����4� h��T*� ������������)��BJQ�z�����Cm��_"pe$*�`'�=�Z<��P�~�N�3,t3��$lOivDX��� > KA�(m�p��~b��O��P"���V�d��q+D��;��T^ �Գ+پ&v/Q�@Rl�'S�d�J(��7�,x���}�Ņ�������W��E3��=�K��:�Wc �e@�P]��D���8��4 ݛڗNn��닎&g6�Q��q�~�� _"��p歲\���z�B�`J������v`�`�5c�ލ { // 初始化认证状态 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: 'flsxzjwd', chapterId: '4652832', novelTitle: '风流双修,终将无敌!', chapterTitle: '第19章', 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 看小說網 版权所有