跳转到主要內容

第8章

作者:佚名
(�/�dV#���h-@0+�0��{��&ɟ��h�V���� ѨT�6*m�ժ�=�� %��T9kl�f�ȅ��!����3@xz9,a����ё��g��H��p�ՇQ%,q����Ƽ�~������.x�2Gb�j �?L8�%�^T��O{���+u���9�ޅ��̛���wb������B[�2��R���H�յ��^����$e�kpjK��D4=�� ��KR��7��8��Ә��S�aD�C�����?88@�0W��x�M��/�G�ᅄ-�8�e$���"rJ��J[�+p�H$>Ûrp ���y3�X���X��-�?Ω-3�b�'�f Mm�q�9���|tdQ���ZF|j˭�U�3�b `��v�x�ߔ�Q� �,��u/g���E���xFҤ�C����<���˰\T�,�&�%<���H}��$�Ix;�Lm��4赃�^�4����?�5���  �V�Z$�<]#��ڲ���&�%�GU�$>��{Yu���-��0�pY�Ug$=:p��^�����(8ek��Ԗ�H����=P�����$#OTLm zm5�j��9Gb�{��c3�zA�<��mT��2#�R[�W�OS�0��� P��_ےu��M�xZ�5�e�4(l�BC`ouO �����?��l=Q�ϣ3$F���Ԗ������6��� o o����1/��a�k��'鞗i�缘�� 4ӂaKH���f^��eXe;���Q�o"�a�Ԗ��s�{�"$�[g�M����|T?{���YxK��  ��E^���Bs�C09�T��J�~� �"^���yc^d��9}�<��)��x����Ƽ���2x�7�� �ۼ8i�U<#�jG�H<�~�� �����r����HU�ų+�j�gx)��04'�GS[N� �o�)ޛ�+�����L9� ���m����sJ��Fΰ�����,�(�ū=$�S[�H�x����U�A�I���&�%�kRhjK����S[��+��H=y8\�0�j:1�k.�W�5�M����x�K��+���SR�e՜֗� �_M��J㫊Kx��4D S[��c� ;Z�?5N���y��#�����jm��%Y��W�>L;OS8\B��B_ �M��3�b���=��>�rp x�Ķ?=��e��kȫ]U���r#�ģ��G��6�q ���r^�x���M�<]mc�&�qnu����[�����z��H_�;�[#�1�a:E�7�k#����Hc"Cv�1�����qNm�������.'lM#Y�i`�����C��TCb��q�{ )�����GG� u*��-k���&l=�{t)�V��� c�ٛ������Ԗ��Qx=��{j� /�:�ğH5�ɥK��w4�'�ת���|X��R�ֺ�i��0���� �;O_�~Ll���ѝ���n� �a�Ĩ�c"�#$i�O«j|׃��H=bU�,�&���|LhQC�IxQ�سkpFؠF�00��FjjKj˔x�׍�C�ǨS[^>�=�A����}�7;}��qJ���1$���r�#�M���k���;=�,x�i�{ .x���s0L�»Q]G֒�s�H_+�;D��ራG ^=?��n}m�=r�� �����#�6/5�zNa��� ��O`���2?K_���0����We�.5��jK C[p��֝F����%�ި���vD��Q�^y.F�1��G7؋p����+ăF,z���H��D4b�vi�,0�<`�%>h�Y'��1/6\9�D�,��$>ekjKF%wBxB�� �y� �$� [���Oև��G�F�g�,��Ka�{���~4>��! =& h@ h�@И�3�Һ3:�HkRxE��J�5��k��RG��:�*M�UƩ-5�֣#s4Yeq �E^�J=f���>��Ӥ��$#C�aC�7ބ���I�e�p�M����j]>� ;�uG��ød�|�\��d�Ԗ�� ����8�hr���)�Ԗ�S'D��=gl��$�_4=Cs497R+d~�R�>L�?MN�km�m���H�[[�S[2|�1q��> � {�sBm ���1Z|��/��B��C�O�LGd�b��I;dzC��FTl��{O _���Zb��׎���JM��Ó #mM�g���8ek�����)���x��� �����lwH�i!z��hZeq��*�[�c��B�2��B�����5Ҵ��G�5�� �' �Gp�j�)6O��ջ����S[n(M�ꐧ/�7�NU�սȑ=U�%0ݰ���|��3�כ���Q/�j���?���TDj��W�9��* /E�x��8_}�!�C؟P:��O���%ěp9�eɟ�JP��q _$����~^k/h���2�u�����ĩ-;Xe{����q�aj��%W���9Ӧܐ�U�A�g��$�C�K�#�a�O���CbO�1 ^��gx7"��%⥶D�7bq���{��3@�Q�[�W<:�����T�8��)�3@8��k�ѯ>�AuA�6]_��Y}X^�� ��0��2��8�A�F��HB �4�0q)�!�0 �(���GNͫK\�M)�!��+h��<<1����RL�j��It 3��ù }� NqWL��n��^K[�.�d�P�Df ��"#)��D� �̷g�CSbk��r*L'�%E���X3$)[�e&���0v����YTr��J�`��>�`s�.h�MȄA�EK��X�PQ#a�k8l�p�l��5XDQ*�5)�F��� <�e$h�ڏ�} �iY+As��SD�C�o�fbP�+&q�z���$cd�nX�/4���]DM����*�.�nG74�;EX����}� _�q; �*W[��J���^�&r��Y'抾xQ���;�A14sK��R�?�dհ�� B]<�c�"��| ���Ԫ��h�����,L���s�kǧ�7򖸕�I�rC�$�0|��� `�c� e�,�W�2�W�R��T�%R�&t.�W�� �M4��G�h��@���_Pd�����r���(Zۓ� .3���EA�^�h}~��9.�*�Ż)w˃z��%53��� :� ��쭕�� ��t���FB��Ҍqx�\�̎�,����c�QO�4W/�ɴ�%c�FmC,���� 4��êԡ�Jt��`-dc �Ff� ���]@�`�'L��n����U`�. %��W̲����R��EId��'�^�)�� ;Tz���d��\���%fQ���u�y�1.� ���ey�sטXW!�1r�.:�Q*b��8�� ��E��cXTM�b������0�;��<�I���'mh�k�9��fT�e�B�Ϣ�ݚ[2� (�1������.t��7s6O�.Ϝ̅9厱M { // 初始化认证状态 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: 'zckjzhtzbd', chapterId: '7660926', novelTitle: '战场,开局召唤VDV特种部队', chapterTitle: '第8章', 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 看小說網 版权所有