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
第三十一章 魔猿克星 - 洪荒:开局夺取三千鸿蒙紫气 跳转到主要内容

第三十一章 魔猿克星

作者:云天知夏
(�/�d-oJ��&;@)�hI�{�"%Na��H��[��{::��I6��l�tv-MZ��O/L��|'�-a�@@ZWU�G��0%�M�Gm^�(0g�^�鸯�a�5�䴂�=��*�!c3l��\�e�=CMM���=)�_���eM������a�3��(8�E՗�A�B��o87e9S1�=��k���;�y)t�ȗ���%#lC�u�U���w9����#��ξ�:��a�=��1�����E՛�ؚm����1�zO�;�k�c������9J��[�_Ǭ/V��`����=��G4ܡ � )��N@���`��<���*�K))���F��b+��{���;N%��S���ܢY,;2�ɱ`��zϒ�?�$�9���b~:<�TyM�j���l����Yy�ɒ2w�c�0�޳1r��\B� �t�� (���x*t�@'�H�A5����L�lur)�zϑ��lo �F�þ��ȉ����5`0_�H~y2fݢ�|���SӼf�B6�vy�f�Z5f��f���z���������wO�e�+� ��9���d��dh�'�����f��a�a^���0'�O�`rf—�Qo��2�U�%�%����\�a�(�T���$ �H>�p��F6�-*��\�?�1��a� ��pa���",��w����ᆎ�{n 33=����{��1a.tZ�X��=/���[����(]T8�d�/[> J26��7��3/��1=��]�!� ���2o�Mb���DNv�aou�̥�9�}~na��s������Ssd����{VD ��-�mj/d{$���@�(0�'9nu�Grj;���d���417��/dcD?)���v�e[���7ے23$�rd��/d?�op�]�}_��� �ڇ�==�'_�g�����{M�ZBl�-���gSIeR�1U3��{Z����0(� �[��=�k�[�,j09d��]Ь9�D�����합�z�G������A8���m���� �'��,��yH��=�+�� 4d�5UӒ�Tΰ]�}⼳y���$���-���L� �P\$����閂׌Dd�ޓRf���,��O0�<a�v�q,� s(�S���G�C̻��*�$\���G �f���� _��e�H�5 ��6�3H�hĞ�+�O���5����HN��I��A�'�.ax<�³�1����Tp8�?�`E�d�Rd�����uQl�6��T�]�6�4���A�m���{�D�R9:�h�3�B�5s�05�L+��b�K%׶O��m%)_����E��� �Lj~�p�o�g�?�W0w�^��Vu��9�}�f��`�d#�{v�\ �D䇦Z<�]R5�%�e����е�=no[$�!��d�;����s��m����\����M�''��yyX���S`��%/��1�!w��{j��Qe{���"wp��!梆��S۴�$F��Or<�}�e�R�k� ���3�ψ������g4��|;_�Rz����������Wُ�>�|�~m�B�r��80�8`@Ѐ�N�@� � 0@8A x�$;O��l�W W���� ���!�OY0�{fF�>�i�E"��(阏���8fݳ�O�i6HSa�-Of�� �vyx���#(��G�LmoF�����7 ����/�N!�D(26 ᒐ��>tBx(�S ��=�mq*/*cz�(bZ|Bx(��= ^cb�cD�� Yt"<�%q�����ß'��|X26fa� �cL�� �jˇ?�� s&̉+�cc�?D�2Dcod_ ��b� �7�!J�{6~yXa� �'�M+ت��hq7�b2���>(y ��T���|td�U !���r'ž�S��z�â�٨���*�E S39P�zBlQQ� �<��Ͷ#{�sG��{:��&���\蠃2oH��޻�b�̉��� ̭N>���|���ë�A�)����f�$c� Wp�g%9��K���:��|�;��_�mB�m���=7������]H����\c0#G9z-�zO.t��06�ke�T�y�b�0lQu��/��hΈ���h���� &'�&������8 d# !���0!%D3�C@�[�hH�����>6����"G�=���2�qǗܿ�%�Z�2�t�]�<�r�e�-y����8��t��U�ʴ��?M��["Gم"8,�^�B7�������`�1`3�k���Fn�\��%����$,� �Q;$�Q|�J@�IP�����M� ��BB�.�a�2n�)K'C�le���\]f�Y�= ����,�=˧5�*�� ��\�*>�B�|`�_�J�R�R$XW���p.彊�����%PR���{ի,�;�� � { // 初始化认证状态 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: 'hhkjdqsqhmzq', chapterId: '70013778', novelTitle: '洪荒:开局夺取三千鸿蒙紫气', chapterTitle: '第三十一章 魔猿克星', 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('书签已存在'); } }); });