跳转到主要內容

第九百五十六章 妖雾浮现,抵达目的地!

作者:常花一笑
(�/�d^�p��H'> � �L)�N9�n�ds�E󭾧��+jl �b� +u�,%��:(�����+��h�̳� n(f^\`��1�U��u=nmY���D��ȳ� �+,�ӳ� ��浶�l#� ���!H��JO�;LcԆ���#d�R����N�|Vb,�!��g�L�M�)�E�L��4)��㥲� �ָ{4Ge�K^i��#l��"7L��nBq% �I`I�w�q��c�ړCk�[ 2�sgO�޸�����j�G`�X'Q�ؚ�}��� w�14��t;���M���|VR�������vw�NKj1j/�c�CD������W�0�HawU���3����0s#�f��j��� ��6D�U�Q�Q��� �4��;��(� ��#���ô�����RKjA�ֈ�xF1��#Js wo;De� �w�>y�u\p?9��z���M�t��ι��&���C��]v�)�59<����;�Ȑ��_h��5�����ȣ.���:fV���` H�4w�q�aPvImF�'����) ����W&o����䙮U�kr�h���\E�E�IԢ*-���c2Fē�)]�:~ԚD�Y�A��U�>�Ap�3� �)�S�g�7� �RN`�8p@ 9�"�.�<�YeM��N/�+d� ����D�lwZ9#�YG�Z�ԛ|ؤ�YG��U�]H�'��vGۍ�l�z���]�.F���c�h�� �N�ԉ�/�9�1>M�u�#DX���Ӡ� �w�v0��u��� �: R�az��:zDK57���:"DX:�nW�gS="e�՘���P.��ݑ�;��'è�\>{�V4�B��%���z> ��� ?�8"�0s��~�Z�#({�Bv��ƈ�Z���#E[dK�Y�d���n|�B�"kB+�v�1"�w�K�!�����D�̯2�[�c�/D�c����vW[^i�N��$���%j?��ep��2�c��Ђ��qFč���u��?�!�����+�dM�"��K)e��C�7��| mC� -�:N0�Ydž�!��곎"�߻/|���!/��-�Ӄ! ��(�2S|���j�\��g��� xf�b%?�]��#hӟu�떨��6d�:���v��A���ս� u�B��i�x!��;�B�L�sT6����G㮼���M�M�ɇ�!�Eqg1��P�8y�a�֛|�;D��=���|�� �*$��m?yɇ�|�hΉ��t�w����ѳ��!��Q��0�]oPH���|�lF��CE�u��|�ud�p�r��]��}r�D�Ԫ,�9>븉X�5f!����~:]�]Rk���ɠx-Df4��t�D-�ZP�&^�x��RU�����%�4љ�:�V�Y��g6�܅v�[ū�y�Dm���A#K��p�$��v hG��QH����M>��cJ_h7��ԡ"w��9 -F�g��GkG0�Z�'�?j;��:"<�Q���0��>yw�4d� NO+�ܣ�g��b�4WYZ��¡��c�jD�0��q+L�D�'�A�<�9Z�~�,"�2G�\�ҩ��@TcJwl*p����b��H�wC�*q'�k��iJ�z�1j�����c����t9*{��+-O�X&c��T�*ݹ�h�&8�Ds��� ���5De��9���4�h�|�j�ŃڄM������9�]mZ\�XRk�VmCr/�X^��Z]n.���*7#⏻#�u�>稭�GB�gڝ\�8�&��� �C��֝�r0G�p}��H#|�fk�� ����i:�Ó�� �.�%��ɥ�H�5�]Giה��ȿk��Z@�P�!��<�����:z��5i��`�Sj��"�n�s�,���&D��p��"3ox���PT?��Uz��b%�>����� �rsl9�y���A�a�@ @  1IZ�(�� ��-W��b�knV�"<���">LäA�[e�O�G��-�N�o5!P���C(��oCtr� �M/�Cн�����k�j^En�����#�|ԇW-���D�e�����p8�K�Xو��@KJ(G�,'��%ō��C�2�H��1>`�5J�4:��؛,�_�C��� { // 初始化认证状态 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: 'jqsjdcs', chapterId: '46059829', 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 看小說網 版权所有