跳转到主要內容

第38章 鏖战开始

作者:剑熊
(�/�d�$��'�68P��`�s��)]m Gs�dǶY���2��۬�X,&��^��� �^W[]d�;�S>� ��zN�Uc��˭�/�S[^*ni�b{�$�{��d��ޛ|'�#��� �8z �=�wޕ$�aN�$��:�%7�Q}�ݒ�@�6�&�v���#�B綧�DL��<�(��y{�&_i�`~B�[@�@lj���Ab�v%a_��P�ڲ�n擼U�����ڒT�U������{6I��v�у��&/ ��2}��5�̬ �#���V��K�#�KmI����n�- �{�osF��?ɱ�-/"����?��\��J>R�G���-S.�|Nm��|���r�]�u��+@wn��R<`N��^��r�� ��-+ؗJݜ��q�3a[�{�ĕ�?�\i��pr��ɗ$_=��/�=��Ŷ7y��v�-��`y>��J��:­ڏ��MXp ��-aS����\L�,��g¶�����[Nmy�z��M>C�F�8�� �d�P��6*�N8�@sIaO���Ӊ�-C���P��l)5��c�%�;N��܇��c`S[*L�@�q ������`��7!y� �G����f�P��������@͆osF���4���8zo�Ԗ�A`g@_I�FmLlj� � �݀�j܀�����FCx�R[��^ 1G�����'S[N�2���x#�Va������;�g�;8]nI�%ѓ �p@p;�P��a �= �Q�Oŵ6�M͆��)c�t]����)c�r��$�;��] �#�,�dj��_���9@�m}N����w����� �I�?@�u~annx͆D�Vª-j\�$aK9�"�us-��%�r��;A� �L�oq����{��A�)�����G���w��*�T\i��y�r�-���M�.��Ԗ��w0����;Y9^�M����M~ro�����I�W�E[6=ȇ�3��lwv���?�� e��� 觎S[�*ށ<@n�n'/R.}8��lt²۝�j7��.�G/�\k�;�!W �C��r��깞N�&{ �O���[��������5.jm� �>{D��\��f�T]�,�ؕn2P��9Gv��Lm9��N\Y�8��+�R[��'�Wڽw�?���f�&�F���ɠ�<<`Ԗ����?���-#L�T�J�#�s,�=PXvU��2A�!a����̤ō`���@��9�'�Э����tΩN!i"K�_k3J=0�( 0�%�(g���c �|� bΈx�~[B��=�ɌH������0��V蕄=q�A��0�V���!�`_7XP$��=¼&\��Hu ��k^!q��f>M���C?s8���+�s:׌pŖ�Ӊ'�c`SN�S�+�#&�8����D��~����@��<�Xށ���ـ]�us���� ��-GY�<<� �]�=��C:IC����e|��I��q�Ty�6*토�f�p�M���R`� t��/b�.���"r ��é����O�B.h��tE����$U[��Ʃ�`�^!ܛ<'{nl��7w�-����܂=�� aI�%��"����-E�g��<���k�?\;���-��>Lm ��Q�@��^@��q�4�S҇$É����I�U���c臓\kS��>�6�R �8lF�I��r�•v!��t�d��' S>p��N�OmY�\Ow��t�U[���?s:��Cl��&[���\�aJ��q����\ �,�6��)0lm�F��U\�`{ ���'����C(�0�Ĥ�;�k�"�d��"�e:��srA��1�D�T�A��~�x��B�-�9��c­�+�\�J����1��=g�?�4�S�0��7J}IT���p9 �>�r�$H< �|_iwrw��⊅�2T��s��IN��n�d�z9Š�� O?���?L�ͯ��u~�9%��+ � \��2;}�9c[��0�#���0��\³�'�8�v~ C��b`�¦�����q�(����M�k�6 ���s�E����2 �(�A)g���B��D�=@Z)#H� (�񙵂�uzt� ���|u`|Y�J�E�7�Mi̻C�%�ڸ�/8)ҭ����1H{t}C�4ڻ��D^�_x��?��, x_s`f)4�e?0����0/�H��(��V�^���F ����'���ò(P� 1���� �w�f���/N J�-++F���<8���l�&fNP�}��]vv/�!~��� LԢ� qY��{kN��E\@�`2*g(��F�ն�0h�C�n��:[� �7Uɓ k�b ��kR�9>@)����F�n�����c�JiD)�%��V�1 ��C�,>�l�3� � �~??� �c?��a�lo�]�&�v�m�����E��0�Q�y(L஭�ՄZ��<��.��tXN��Я����B�B��%���-�����j��^Q��U] �!��PY����k�U�J����� T�˕_o_໨�����M#.�SMA��O[�s�:��P���|i�!�X�.� �aE�R���j�� �p�y�q��@�m�������fo6�V�n����!�ϻ���䰿(���w�#8�R �{/aN)?��Md�ːH�A>j���f��!u�7ǫmЛ-�,y �5�@.9l5,�p4�`�#�\�%��#"�zgl��:��-Y<Ӡ!&ur��x�*��ݬ�Fw���l�D�x�pQQ,��.�ra��&���nƉ�B�P���" NC����U��}�|]���Y"H�ͽ��]v��A��]�q@�[M��� ;�8�g��r������.K����Q�,y�����t�qF+ ����m��z�h�I7 UD�"&���s��U�3$`����=w���ُz}X��I:��!�����5��+93��1�����7*2鞉�^ĸӌh��oTU[��Mn�%�R��"�� { // 初始化认证状态 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: 'yijiebadaoxing', chapterId: '84130651', 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('书签已存在'); } }); });

看小說網

看小說網是您最喜歡的免費小說閱讀網站。提供海量全本小說免費閱讀,所有小說無廣告干擾,是您值得收藏的小說網站。

© 2023 看小說網 版权所有