跳转到主要內容

第四十七章 隐患

作者:黑土冒青烟
(�/�d&�n��H&9@����s栿;P���� (jhĈV��l���-��fN�΋����+N� �����L]O����H� ;��i�ء�����?,�ùDl��gW��Yo5n��� �=�X�y�djKr�����P���v�Ϋ� >INm�I�g� �W�� >m����%b{������9��ڒ"�C���KĦ����e�jw`o0�U�|���ņ_`cܥ�l�06���A�:�FΨ�uNm�F�A ̉��dL����H�h�\"6�9���v8��o�&<<�2jw8��RԖ �g(gԦH\i�p8$f�Dl�b�C�;��FE^(�]�=��Ƅ-}�ڲ�f�6�<'y�s�t/��Ķ��fMw��Č`蜔<{2>����ę��ǯr�������Αό��*�!� v�¨�~$�f;��}�A"S[���v��]��3� 6��Gy���� F��{���T� *d�Q{�p �G�4�FNmɨ])W�Lm�!�\���p\�{�K%_q����y%����{�g�Mm����y���{ W{�mqO!1�����yM� �Y�qyjKﺊ���2`�a�;�/�CFḦ��1��G������N�w&��q��I��2�e����P~�׌��ό��>Qʣ|bFd��[AR[>H���e���ږ�R4�L�<� \�[�Y"vE�����G���f`K�(��U��s�G�Ԗ��_�2֥�1 � g�ܠ�E�_���j��O �(�Pqg��v!�0`@Ŷ��fs�깾�^0��rF������� ��+u�s��,0p�0���K����[N�Q���k�y��pjK�66hf��=b3x���{�W���83�8�P��Y 1#��������(������+�ܹ\��U؍�r}h�E�}fy���,��"e��N �[A�0q \���=�/�3|�[�pjK�3������Omy�yg���&@7���!��ͧu�A�x#�E�%N=(� u.M܍� Y�R��3˯LJ#�A�i��k��R!Gƾ�-�5 O!qGYwv8�����J~�n����r� K�ވ=�o��qw�#��v���1�b„�y 1#*�`7TL�|���ņK���K`jK��������|��Ԗ�>_��s>� {�.���3|.V�-� ����s`�in����+Х���Y��|#&X������i�M\ٖQ;��lW��#�A�o�va�P�;J�<�A<`Eo, Nx�n����=��lW��WH|�p��s�s>����<�%%������T�܋B�0�ʽ�e���"���4�ɝ�[)Ǹ;����]Dʣ-S[L?*�G��ʧ�z�Ό�U~in�~���8O�x��+$�A�7��5��,��q���ؓ�rn�_���pAuL�"�#t� �A� �r0�x���W��†�m��r�n��̙�9W���p��=b#@��~ڮ��rK���]�y%� �_bs>N��=9:�W�[�y�j}�n�|��2�S� �.G�+��bA�0f�\"ޑ�#�}"���, ���@>�~TO�L!�Dl��4��� ��Pbo�ό]����o Nm� =Ҍ�I>S���� ����/E��+6<�7�׬|^"*��,��%bw&9l�m�!n��s�O�5�dI� {F* �M�S���ޣ<%L\�����T�x�G� �7�Ǹ;8!���f�3jg�'8�vG���Y8�G!p�xOC�/��~|�9Px+�٪My8��l��R�t>*0ôݎ�=mW�����݄�HYz�����Ԗv:�r�HT�1a�F��C��@�,���/�v:uq����u>m�J`����#t.�.d� 6��C��؞�y�� G輠v(s%���!����$�4�Q1��5 O!+Y"��v+$��ʵ,�g��,���sP���)��]q�"��yG�9�-�BΙ-�o�|�¶"^ ��w'��-e~ �S�[ ��dK���j�;`/ٲ��gᗰn���r ������-� x fFp8�]����!RMr��unq�f�j�r9�O�ͬw|ܡ��-#��Q�j���L��~�+[�p��ǍO�ͨ�PdKm�{j�p�*�*@`o�3�A ����a/*x r��GO�\!�Wy�r���b� X|T�qS-ܪ� �ù� �Ҩ1�a�0b�!����@*$ >R����W6�?Ui%���[�3Q�;,���� ����m@Țb)����%�XdY�|,"×S<�ey�N���� �Ն��YZ#�}���kC�@ұ�!J ���ٍ;�#��R.�@��h���p�k���2F��t���8}��+�ʍ��&����V��]i*A1�m'SgF9�&�_"�4z� F'���6�Zx��T����Q��� ..��h(�����Z�CGbt�J�j̀T"/SF�X�wQ5�Kʹ|���iB�mj��Z�f����T�黭v�5��P�c猡a�Ts��[7i�7�8�1���� �ƾ�c0�vf�jm���l@�m�-u������!�1�uh9���Hi��`ǘ�{�MI�Gk�3���W�I�.�ȫ��dGE-��xz����a����mfT:C+��M.��]E�0�=���Ѕ}p�3��FF�7!��N| ���|b�u� Y���E�Gh�?��m��0R /W�fɅ�� '��d&i_�lW`4 �+�� ״Xa���tV��r�}�&"C��f���:M;��\�:� ����� &�0��� ��O���A���x��'���S����cR��d0�Ӟd��0��tc���b �4m��7�t$} ��O5Zb�� %����|NꇩM�F�״©�ve,�9Sj�(�6�9{�4��}7Lf�5za����8��(j{GD8����A;|����?OM�S�*�y���S�F�SL'uh����N�b8k>�{0�Q��;�̎����*�v�. ��+����F��J���H~K�M%?����S.�d�׬�j��D�.�ℛƱ�Z����!d�#�S���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: 'jixiewusheng', chapterId: '79954682', 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 看小說網 版权所有