跳转到主要内容

[洪荒]山海开发商_508

作者:未知
(�/�dlmQj�l >0S����Uz� �oJ���l<*n�V�t�t��$��`t�j?P<# b�j�^A�� ����6��U�*{��[ƎL��g�u�r����%]�����b�A�3P��~�sS�3z�����_ l����_3 Y��)� ��2zR��]���TCW�{�_�U�n��ӂ�(l�ů��� �~�\���|�3��g������i�%j{���p.Ir(y�j��|�Â���<u3#;4�D�|MZt������Ԁ�gfdN�j(�M�0ۡ�Y5B����=��RqI_{�֦Y=G������הz�=��'���e�Si����!�#`��&��������TNJž��h�jճ����Ȗ�K��TNxl��e���|��M�9IW�[(+� �'��r<��pN� {���Ǒ=]g]7D�$�U�qd�F�4���)SD�)����Ҍ�!#7D�H�1�*G(_�|P�P&�B�Rq?Z�� bN��gh셮�I?(3F&%- ��e$_�]��ͯ��xp��?ZC& Ѽ�p���`�  �(@@ ��0�@( �(y������E�Q�ʜ�E��8i̓�L��<�}�~�>t��+�%�=��F��ڳ�u?�fPډ��ȎE���^�����x�\��wqO�U����^��Ƨ��F'd��UO��/t���#��=�� ��d�z&d���眐W�W�Y�5'�Bט�Iǘd6������M��>ar���q"�,�%�8rB� ��?Zk�.)�+}%�#)&�A~����v!1��Y��T[A�"� �ga�����([�����B�a���%��"�e�l~�z�g�MdLɤE3��=l�c,��N�whK(M�������ޢ3���g(�ƤK �����d�-�3F�$�e�ʣ֦��%������8�Rj�G(s"�Vo*��7H��])����z$;�l�2fZ����z���(?({$��v,��'�z���/h�Rq��1%g]�U��ט���8���A;QY��- �cZ���W=��P�6/׳��5�u���&����5e����D�<:c���G��ҏ#Sڜ�G(���&'=c�Z�12�y�� �]�� �E_�\(���n.��ݫ� J��2M:��5eksa��3P���0��uCd�i?�.Q��g�4�9'2ƴ%�-��2Ffd.�z�u1 �U���>Πa1��Q��zZ��q��<��T��髞 ICF�>;�܉2�y��U{͋�& ]��P"2)�ik�3��� �g�W=G�ͺ�:��|��W=!l��vgj�!]�\p-���w��m���B�;B�)��gW�R_*l�����֘�,�UO�CDQ����5imj�@yc5'q��+j��a����NX}X��G��7� �KW��2ƴ��k2j��2싲e� ��w���W�SˀҖi#�A��&/��\+_���o��J�AW�;��qh�u��`���"��ݾƘ���I��ל�_�4E�J�d>��HlJ{r�BԜĭ4��Z�gisbS�8r���A/P�L{�ך� .�ܳT=�'�]ܺ|���P��Ȋ�ũ��h��K���%K�-�dq��U��#���L�3{�����EawH�h�D��h��g�˯zZ��-�\���6(� kQ�"}��0���8�,a�AY�hrrǘ����V�e�����ؤKōP}i2] ;뚺� ]?V�}�}��;!ˀd��a�'��T=�e%����u�pJ��QW�O�f��|ɼTܫ�V� �v�@�9!��A�U� F_ �|I { // 初始化认证状态 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: 'hhshkfs', chapterId: '18062240', novelTitle: '[洪荒]山海开发商', chapterTitle: '[洪荒]山海开发商_508', 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 看小说网 版权所有