跳转到主要內容

第720章 最强中型

作者:昏黄之后
(�/�d��u��P)9@Sh%�{7��=���~;�`4�Mv7,�T�b3K�NQc�� ��a�� <[ �}� �U���_[/&�e��g�^;v���'�UT�t�(�"uq����g���k��R����NcI����6Ќ�Ǒ5"��.O�9�Z���� L��7�0M=��v4<�r�%dk9"�)�� ��� ���xZ�MO��C��EF/*��G��D\���xV�[u��Q��z�̰L�.� r�_a�M�{ �����gX�|�zC6�!����f��y[Y��Fd��"�E����{�E�f |��5��ËW�k�����39�����v��ejkm<9�I=� �im8�"���Yu_Ez#��x6 ���� �"|M=��s�y� �;�9׀b[ϭ�����6�T�\ײ�@h:.>���km<��L��r��� � +�l��ɵ�vPs�`V�[��M".)2�="ԦD������Y��<�4��A��-�[e��bD?q��Di�v)�. �"__[WwT'L�V�x]ya�_/��y�� �Dds��b����\Zyң��DMyo�)�{�k _T>Y���k;6��&�!�^#2�t��'5z�И���3!����9�ZO���w_;�Z�LD��3�o�7��s]O�.2�Qݪ{��%�޲�x��x0�U���Qo�k�s�����' �hµ�!\+��� ��oj���Ƴ�z������_x���٠�=X����G >Zp�׏�W�[���� ��/\��O��(��~�8�5�l�ʒSo���FDnPݠZO��2a}�C=�p�zݹ�V����`z�|�j�ҝ�7��_��F>��cJ��M����rލl�>1����=h4Gbj�)š��L{�F�zr>)���&�7D�}}�8���[*��+9���$�v*S,L[� ]�#��p��z��޲v4�*�������R2���37����$�+�_3?)/�k�d�іe�ӵ�� t � z#�s���c��\)9��nd�ޭ���[e�d����$�`W����|v�D��Bw��)�s]S�)���59��*k��V��\���j}p0Aι�&�.F��$1M/rZ9"��J���z��B]���$�<�0������߲�TL��`�U�E���V޲pB�6���5zC���޲ސ���^ݹ�g��P��+�7��� KS�s��:D�F��-�^��N�#"W�[�U��͛B @ P@p� � �˙��X��S��l�>cQ<�<0׈L3|�V��Br��r�Pc�2�(�Uޏ����9/!�D.�׃�G,�9"�HԢ���G�^����B��x��V&YL�AW�O(G]R&�譲6�������I2ݬ�6� � X�@8������a�O����6�|�|����C ��2��,?0�Zz�̷��me��\y�/4]Jh� ���Bi*~!٣ ��E|�|���H����ī��;uH+O*�+�v�%����x��ȫ�3/q&�t!"a���+��]f�љP{��N��Z�xmtLm<e�*jW�3��§�[�EF?�m_g(�0R��#"��љ߬����Ѧ�ܩ,���5l͉��,o��d�GS,dS�σ�ƨr�8b�� !�a�Ԗ(O @ � 8B) (��x��g�ɲ �����Ls�LJb��/����}Ցe�����ӑ�ؘEC�����*�Fg���A�G7�b}��f����lں�[�F�Imɍ�;9]�!A�Q-��ʢ����Q�� :-�,*��1�Gp���@�����G��MW����{JY�,T�P��� �r�y�1l�uV��t� g>c�dqx=0R��9K#�>}+�ʂnu�<8"�e� N)`E�"��S�0߬��˖��O�yct�]��xti���/�= �@K�U��l&C1m=�]3J$l;�P ִ�9�A�`��Q��N+�3�\��K&n��A�v�z��C���2QB�l;�Nlx��cH�q�9�D����V�/���C"oˍ *;��P��a��b�V�T��sJ��wF@���hGM��?�1=�e��l�TB�&���px��F:��Ȁ�����d;!:ҩ:AWjU������Mg����b �}�h�`'�K���4v�xU�N����6G�z�� ��ŬVz�+J�"0�G��M�����K*�U[9rO�ML� �8�A%����8p��d �:f����j� ��y�Q���u]ؾB�B��i����b�\&��) { // 初始化认证状态 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: 'bukexinfeng', chapterId: '11901030', novelTitle: '不可信奉', chapterTitle: '第720章 最强中型', 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 看小說網 版权所有