跳转到主要內容

第38章 “绝世圣者”

作者:火星引力
(�/�d +-�jB��I�3�7q�kk�27�/j�k��A�7�+"{(&��ʢD�!z�2Y�!o|9��F�b��5��h�_ ���Q�TyZ9���HT��ё�3z3{�$��ܡxv�'���MWD>8���.�J $��!�x5��H�E��a]��o��y��̞�ĿF[�_T;D��q������A�;����^[ܗ@׈�cܪ�o�#u��IaC*g�h��}�5b2�������=G��r�ik{ϦC������݋��w9�X�3{RF�*?D-V�){b!o�)�5Y���R<�\��HtB䐣M߈�@�K�����M����h�2��ePtz�]�{�2MWt����9jB>�H�ʴ��<)of�y嵸�,��>�'�5uqɩ'����S���OX��u���|st� �&_�;`� �䱓s���ȟ�R��t��.U�����ĵʡ�Ìg��P�u/�+P��tG,��{ �,k �x�y�讼��?�%f��7�̞u�����Ž���ե���*o�!G:�F.i� 9�'���t�F���p��yZ�����D� �A���c!ӑ��S�D'�[k�:1M;��G�MV&�^k{E�T���)�=І��0o������̞$D[�W*Mi ��^a]k{J(mPp$�@.4Zab��X�'ڍM{F��]���c�s���F����� )��p�Sс68D�����@�d�3$'��2{�?9g�5�\��m+�F�x4E��Ȕ�.�Y6Yύ��9hԔ�R)i����j]Z9�F�üV9!��z��!C>���4D�(=���=���ѩ-�M��<��3� bفy6j����)�3Wg,���e�tM)oFo�2;��Y��̞��##SY���##F./Ux�s�֙=-��G[�o!?��A4 ��^�2=�6Y�QY�� �Q[J. =�{6Y�茇y�pQ�He�riy���dF*;8SC����h�������g��|^+oq�!y�� �@�XY� ��L�6]�2��C�w ���)��2G��9:�w�SYQ�s4�����ho�RE��5�T�̞��' ��|�:A�V��&��F��g�L� ]�ل2�����L�q�S�D�{�u��e|�{��m��� �E�nv�^�9Y�M��O�>�WcTIL��Z�E�s���y��C>���ٓ!�&2 ��=��} ��Y(Á6DF.}72rG"#�X�nqaM+w�eQ��ܦ�s��΢A�b!s�^P�ls�=�g�*�����6�"#]��&��0�隬���بI�k�3$sT�W��K!\��U��ː�h4��X� ɞM ��������^g��r4��I�!��*z-V6��r(��:������bB6I�(�*���\��͹��kT,o����|�"2eo�%Q�Ze��&�O��c,7�1���kHeSؙ=9� `GF�F�U.}72�vh��ae�Z�1�B���'��ھ�L��=�VXT�o� ��idE����*/�����O�&�*�N�P� O+g�Y���K�M)/ �V�yI�A�LdZ9<�����Z�P{�*#�KV�c܍�*�V�d=��#�� �����Ze���?���|��"���柤K���� /v��o���ʢʶ{Q�N��Z(CG>�d=)ј�����u�DKF���c:�&n0�G�A��)έ�7��hFe �Wtɐ� yi�2u� ���P�x�w�&�5�¯;ʐ��G�g�� ��9:��ԕε�Ĕ�V� [s4eOGy�G�'ʃ܄5ckK섄~(ڳi��&X7��̞2vf�:���3��^T~PMZ96b��F��-�3O+3*S���ٴŽ��K;�,�ъ�����'�F�� 9C�g������i��Փ�3$��h�U>Cr�F7,MX �� $ @�!�$@ @�� X �gOH6p������3$Sƿ ti�B�{F���-�˜Z�T]@��E���`����_T^�=�pj����]�`�I�GSc8���vf�o�Z�'DFTO8~?��!�Ȧ���0ҁ��2GqR��� ��bhԤ�K��_��mm�!�R� �X�`��5E��i4gr�dQ���N�T�Q?"/x����I�ր� �lS���a|�RiĩD����qJdn���g�y�w�����=��M|R^ �Ia?0WH�i��)$+:�h���Ւ/� ��d�$�-i]�Uf(\Ϧ-!'D樉��g���'���� � P���?0�1�-��==��Fmq��*L<�w$oئQ_*M��@�ˬ�� �'q�r �[�/d�V�j���5��㠩\�m�;��k��ܖ�jrE�E�Vդ�ףw���������w#�Z^'"v�\ ��4ym�(�4z��R�^р�c*#|n�N�g.�J��H��ž�s~��� ��@@��v�=���R��2@�*�n�!*�5a���T#{�:��:#K=Z��@�&� 4�5�/���&кd;Z?�� ��*h���B��(Їus�@���G���'iC�7����.!�`!�UR�ڢ����w�� Q�3���!]�W����_�k��&W��%�੖z���_��&m JX��w���6َ�p�(��n����~Y��fa�닋�0��,D��4Fe*��Ǵ�c�� t�ﱰAvfo67f� �fz1I���&�픔Xɧq�m:�˷(�X��N��6�d�Y6KFw��xa�D���}+C��C�mK���F����P��H� ��$)��� �͆$�E�")�.9>�(f4V�-jր�\����׀Y�� !k�4 �P��I�6���#���2d���) { // 初始化认证状态 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: 'ntxstb', chapterId: '60111541', novelTitle: '逆天邪神贴吧', chapterTitle: '第38章 “绝世圣者”', 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('书签已存在'); } }); });