跳转到主要内容

第81章 叶兰溪求和

作者:天一朔
(�/�d�o �&90S�%�;w�q���n�l�VX� �FC�If [� ��x�|۶��������OKQ�V6���LN��i��Ik����"K���,�і�.B^�܋,5 >r�����L+S"��3�ܨ\����6������{��v�D��e����i��ӏ�\k$Va~��}0 ����)��E�*�+�9Z���Zdܜ��}�pA��3��LȊn�^;*3.�W�4Fb�D�E�4�sڬY�;%O`��y� ���\ʝ���wJ�V���5�:j��҇��&��|�%��?J#0��k�u��6*�ٹ�=r���9��"K�wJ^������}�DF|����p� �"]ZY3�Vy�>h2_$�����(2���E�ʑ9�6+�.�/���N��.T���h��vj�Ep�1_�/hh�7(����r��J � ��*di��U����z`�_� �F�P�.d�y+�P�E�<�g.��ۈ|#�Q��E���L�T�� E;D�6�� ��,2�.s�JN�"�/�A��H�6[��G�H�Y�h��,%@M �z�lV���F�i���u�@kv����w�pE�Ell�"K�����=��FlpqQ�i��I_< �|��O}C���6*/Lڪ\Ẳp�%r�c+���x��b�ƺ�>b$����_dI��a���#W8歩�)�+�Q�Q���E��?*�lq��B��f�I7F��|m$;8K;�XM���f���iVM�L���șk�숝��;#c�`=�9mv sC���1M�vC\-��� j�IO�M�/Dw�^=�,;#4X t/�U@��i�����Y"@��� �\�M�(��.�X�!y� N)����D�xd�eq=�:���� �%[L&@�^�F��>J#�|}$� /_`N+q9�s�,�ʾ}�Q"��'�k��Q�b� Y�6���\v���0�Giͼ�Ԗ�'KQ�N+?����d��- ���\x����j} <�pR�[Q81��.�H��nT�p1��Ɲ 8��G�ދ,y���B<�w�l�4%r��� ck���3r�y��6� qo�/뚢D�H�x�� �E�4�}��~xNik�T]yT.�s������� �ŵ屛v1�ӥ�� �Ge�í���\������T<���I�=8��z�i���Mʹ}�%��ei���C:�M��hCsz�l���;��ؑ�ưP�Ga;#� V.��N;�q,S8���Lq <j��ƍ@>mA��+Y4�J����JW�R�6%r�� P������m��A��X�L �)��IΒ^;J�$G�$� �0@����*?���_�3�;�X�3�I\3����s+�� �#0���32Wْ�Yr�1/�z�pE�W\W(!�1M��!h��U��Դr�@���n o4�c^�pK�yy�.K�9�~��Y�"K���W\+(g+�GK��E��3���^T��r0��4�\�E��3�f8:s9%���,�_}Z���j��i�OгAc!�C߭H�xݜ���А�!�rī�n02�����K�w�k�YJ��t�k��$�Z� �� �;����wg�Szf�Ҩ��K8 F�pwX]%�^���r9&-�j���ц��#��5 NѺ α��x>�g���4��h&���5����\4iͼaB!qB��B7��u ��ҡw�=��r�rm�5�UȚyGڔvn�,�b�M�n���6k-\����7I�F�5�9��������祑X�y5�٠�G�d��k���7��M6a�-0boPtEz�BΦ���b� �3�� S_��Pr�K���7�:���� F��#07!�ϥ�/��>b9\Z9 �ԨA�q�8@$A�`����LE��@ �!@PP��`@☷�(M��G/1m��eY�b)m21�ɒ��� �W�N�A�K V�t�C�E�H�l��NF����:b��9#+M���;��!o�q�"H.hZ-�^��k��� ���2{2wH��b�X����'B���Az^y��)�ÚPj�tcEħ <^�Ț_$0���G�����eI��������M%�;�.zS���>3N!�=d:�k3�( }���[�Y1N���/Ci&0R*='J��R�v��y=�+ �Gn�����s3��!*�.7�&ES:�����0ӥhh�7Zx�ćž�����)�M��2��Y>=��9�خ6�b�eŔ� DUժ��ޓix�H���Dw��j�ڌ& ��t��;��>��X��2d�n��lw�l�y�xy)BS��"d���&K.��� ��f4pB4�� �Bl��3�� ��?�H"hL�е��IHi� J�ɖ�y&��X0U�9Nz�ʣ7^:�tqa��v��A��2T#;&�*QS�kyȏeW0]��O@_b}7�Q}�,�[*i�?���j��^���`l��H5jf�!Ze �S[�� ��duyj����{��8��M���@O��@� !���"es;K�)�Щ���k�Ed�Z��� �K��eC��(Mx�'Q�^�H��%jN[�o�4Nkeg�P�C58!� { // 初始化认证状态 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: 'anheyouxi', chapterId: '38917589', novelTitle: '暗盒游戏', chapterTitle: '第81章 叶兰溪求和', 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 看小说网 版权所有