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
第981章 万妖国 - 独步紫寒 跳转到主要内容

第981章 万妖国

作者:我是你们大神
(�/�d;�tJ�<+8P�`�s��,K*&R�����饰�A�O��(!2zi㽹��9�/����������?���gi���٨���uPF��$􋳑Go\DYz5���a�M���tZA9\��y�P(3��F�<܂ϒ��8{�؎�>�t��M�L&H�A���2ٌ<�Q������_U TU� �U U��Kbk� 8�Q4���ʳ4�!�yZ@?�k���^��x�A"j��=6#OPfm�tE��|�w7�)#K �"r�dA��,|{4��D���y&*?�q�� �]�E5���"r��j3�dR/�\����9N{8�(�кVfh������g��?ϫ�5et~qv$�� O_]y�������Dg��\�ly�ח��](���b>%՘�A������3%��l�z����mJ�V�5 ��Y�+�gJNPuj7>�����k�u� ��*��]�*/l����������GP�j3�Z4��"� �� $�B�z5�/�64�>C���zA��Fg+�&NX:!ш�����P(�Mc]y�����|���GP��S��ȳa}���Wt7���pC���n��<ǐl�"s�>S��A���~c��g�����E_�#�c�ױ7�/"_����4�������?�G0�iOb|F���e�p�xS��hI�F��҃�8�Q���׮��B��3�P�8N/R��'Id��gE�3�G88�9�����i��k�9���p���V��,����!�7(�#�p��l�|tA:�.*�(�Q���uC��«���8{�lF��P�|��l�ӓNs���܃�W̯<���u�� p�9:Z���u�j�Sa+,o܍�_W�an�8#�ʳ&�!��\ߡ�椰A���a�/DvT��g�d��a��l�L:���F����x5�b�?�<��'h9��&�/m^ u%���QA�u�n��5���Fg'��T�.Aɕ���8q���A���.V�|y��zc�yJjk�f|�o��î/��t] ً���'*gHΑlU�#rC�3�Qnf��-�`��aK�5q^1?�8�� ���$���T�6� ���l�rIb%��gG�֧��(����Y������s ݃�W��5e��3��i��3ҡ����T��,��,*�'�sD�H<��3�sJ�%����5ʍ�^D��sb��� ��p������ů��)#�Q��\0��+��Q�x�q6���p�� �r��k��I��� �B��i��l���X�8x�g E�`_n\+��"ʧI�K���� ʦ�7Gth�Iيr���uH�]_Q��� e����(^Q�t���d'e;�/Ζ]J�$�p�_#T_=`݊�hr��_W��p���k���� F���î�EO2�<��ȍΆ�Ɣ\+{8�GPO [�|�y��j�O���l�rC�⓬ 8��(c�����|��s���s�����E� _+c)ŏ���9B�NCD ZX�=��:ia�G�� /%�ۣ'#OFވ\{t��H�ʡE3� �t�d���.G���vtt����)��p�k_�9�,�4��1%g�a�)�i�>F[�Y�I�1���q�*W|����p?��tD.��$ �0@`�(�>e.E��+�g�y�Q:�h��ȁ��+�W ���a�3��:L�o�=�e�P(l �� `>��F���/ ]3j�1%����끴�f� }ud���1�W��d>Q������Y�-z�td�7�6ഡӘ�I uU��kR؉���s$��g�٨�)yW ���\a� [(u�`���`d�7�^�,�]U��:/��(W� ��ȓ^_yVS����yУ�У+� i~�X����S~��u�j ��T�8�V��p��7�w@z\��ߣ�G��u.��@[h�u���h�m��X�V���d>��idJ�7�3��2�Q=:�*C��Ș�5��J6Sܨg��#���89:�}$l�Ӊ�������z ;a� �E%��yV�W�5��7s�7i*77S\}~�\��b�k�gL.��|�}qV���p P�cz �-�h��5h�-�cJ��T9�ш�2��g��d��6��Q A�E��Ho-�l�����D��h��F�~"��yA��=�M[��vW81���%��iJ�Qb1dW��}!(ܜ���EPot��nu��X����Ӡ�j%W�ot6QC���!�S,����.Za݌�.b �1sf�wP�bpH}w 4�-����^�J��R;Rdum-l��� ��Vdx�2� �G ��<���i��X� u��Л� ��[�X(�t��4xp�3͠-���L2p��N�F |�3"#m1��@I��/�[r�05���D|0��P�a�S�� �zm-��F@��לJ,C�� �� { // 初始化认证状态 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: 'dubuzihan', chapterId: '39080591', novelTitle: '独步紫寒', chapterTitle: '第981章 万妖国', 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 看小说网 版权所有