跳转到主要内容

第九章 免战牌

作者:心中下雨
(�/�d�'U�@=;7P%M��{��Dٔ�`���lU"o�PTX��!�!@�pj0P�PE���� ��*f@:�5� KvL>�\��[�r ���d�S�70�P���z<���-{?���/3�mt� o�{�� �!� ����y���EƔ7ĺ#���7�;z\Y'H_1��W�R�B���%��|�}=�p�㕙^Yc�`XYS���wU�� 3�x. a��]Up |��I�'���G8r� H���|^U������xky=cwU��z�⁈ d]�xxP���SI^�{���,�dH��3^�iyuCs��D�ګ �@�'"��:��+�L�x)�ՅC]�L���}�k���=1=z��ˢ�3�7�F��bu��O���FٲW�3�d�g��EK܃�̱��9��QK�Wfj`o�V��ޠ\��L-�(�CXA^{%�f؛�`�|�|���VWf ��Q:6iow^��'N\0�њ�/�F_�u=&6�� 6��2Sː��� ��� ��L���<��?ݳ��n<�Ľ�2S��9Ck�&�[�/���X�����#4�üT��'��A䄢���x�uşD/&��+3E�p�C�$ �q�p�ਯK�$٠�J�%�5OG�2�i���G�r�!�-��DX�5^Ӽ��*�X8��dp��{�� ��2�ks��Ç�g���5��L�rW�W��`���v@�V�F )��L��E�;Įțv(�%��v� Hd�7_c��B�9E�N[��{9d��g��o(���2� z��-n�K�wb�����^�6X`rѠ� 8Mu>�7��ps�y+3��9�Ľ�M��j�hK�o@\��b�{��F��@�ĽE�ٽ8u���LY7�}�p��L���U�!kKԓ�k]�u�� 0G]0�i(��)h28������L!�#�&ɋ��q��7_Wf:�m=��2�&/�(a��.8�� ��^j� C�$oV � ��+3/]�u |ybj���B8i��Ƌ�'��re����DK�{(l!�zHp��V�$y��;�!.qM:�R�Y�!lI�%���S��T�lt _�֩C���hëEnP�_*X�>aj��� �_��ܟ�F7@b�y?�,v�{�\1�&��\핾�P<�Z*��!lr�C��2���%�E�-q�yb���₃K�2S��������IO��6��� �Ů3_k�yS �7�+35�'��h�.��ϖ%�5OX'�kI�� ,i�ɸe���>%�݀�ֆ��pl |yA!�|Q,�v`�q�q>0v%7_�%��0���;b��lv���p��+3=��`����#�R^�z�$����"�7�+30�����|�a�\t��6j�^��+"��"΋Bmxe�V��+�T���vFx`wD�A!>�D����CA_�a��|rue�g��-�#(��� �/��oU@O.�w��V=Pq�h�ؓ�A~a ��� ���g�p�"�2ތ�$����PJ{bwU���A-O.9b^��ӵs��v:ܼ#v��3!ހ8�r0��3�K.�Ű h�{E�?[���tV{F+����M����+�;�g@|�a&K�_�� ^�� lP�%�ũ�QcB� ;�<�≙��,�"�* ���4�4w�(&#�wb��� �O��%�6�1y���%�Y����/S]��gl�j���3�U�ps��3O��|B��� �9���H�H�P�P2��|��()�$o�� &��}��@�t��h����5�f��֕�6�K�hy��K�c�WJ7����`�D�%�K2+�V�MuΰW�D^�^�ۼz?��a��Ku>�~C1:��E����� �K�c���H�BX�D���Q;��V��!6�h����)�#ЮfO���W�����֓�O��7 � IK��0�����Ncb��c��,q��|By�� � �ܜr^P�-Ec�>1m���3����F8�Z�bBL9/gh��T�)��t����]U0���4v^��%�K�X0Ȃ|�Ⱥ#6�ot�Օ��!�U��U�Q��s���GȺڋ����3��I���!֚���Gd=�$��?#X��hw�B\���\�$`�޲�=�̴t���=��d�y�zf�U�� �5Z� 譄+�k�\���Av�� �� �x��x��m�h�$�2Ӈ� �E!Aq�"��/=j9����co��+�W�;a�yũ $Mpɇ��$��15R�{�ye� W,� �&TЖho�;��2� ���V<�⋼c�3�0�r��������� ��<�Zdqj 뇽���6����ᕙ~6��z���'�̴a�G�_yOG3�6X`�����؟y;"���kҘ���b�2ز���@����$y�%�ހ8A��{ț0��y'L��G�mQ�r��6�G^����/ � 0R]�<~�5i�b�6��H�T�OD��� ۤx�y�iTjJaɓ��}��L�#v���"�%�?�-{�m-qO6w��L+�R4'��ٽ�=8u�~&�Zd�����%�C���{������Qf�����c��@X��� �[!��T𥼓�?D��5�V��U��e0�\<�R��@��"��������p��@�m��'T2hr���:5�k!��#GD�ڜ��jo�>Üa/�&g�}�d�.>R^�m�"����AcK��.�������[@~�k+� )Ȥ�����30�@ ��.`b��U�[^�hr����r��?`[��B\���WK�KJ4��(��7:���G��aWf:9���ũ2K�M� k�|�Hp����(��7 ���5�Ey�����H�2SO�A�S�NX�Ľ� K�S�KY�#��۠�������_���2S����֠<�:up<�h���#�*oPne=��Ŋ��QF��� o5[�p����O�G��\;&�:N.����7G?�ɭ�$��q�{����$�j�Y�� ֙�ũ1���쥜�"b�����;&�r�@lP�!�6�j������*H�ש-Y�x�W!�)�-{�7�yue��y1�<^͞"�W�0��$��J�S�~d:Az�����J�@8�yC�@3��z��C�3��I�P$�Fd-9�q1�%�E�> �&��qu�Ә��?*�'�Wf�}�A�AގX^Ͱ��=A��~�$ڑ1�CWf 6�y���5LW��gWf:z��E�C���&���b[?��ZP_��kևּ� ܠ\�u�s9Eun� � =�ڠ1ԅ���7hx��HAOA9C��o8q�H��� qo�;��c�A�^�S�6в�g�u� �6�[�Ȋ �� Ҳ����A�����l� �����=���]�)�j���E�e�����ͭq���R���"�W{3NG.�#v�n��� �)�ր0��z������� { // 初始化认证状态 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: 'dmjqsjj', chapterId: '41214523', 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('书签已存在'); } }); });

看小说网

看小说网是您最喜欢的免费小说阅读网站。提供海量全本小说免费阅读,所有小说无广告干扰,是您值得收藏的小说网站。

© 2023 看小说网 版权所有