跳转到主要內容

第一百四十一章 有点問題

作者:何辜
(�/�d�h���$8@Sh%�{�&%N~��4��N�٭!�V�H"�>F7�d�65�E�A�<����>=;��O�m?Yz� �X}�q��Z��HS�{��nȹy@A���Z^�<�����>�茠=f_�׈�+�c�������E-�%�hl��Y��ĂV�跸 ��+~-z|��e��<�Z�ʔ���O(���9E��uvy�-���?_g�g&�##�]~y�9Lx�L�5GO8{��z:Yd��)��-�U��%Q��T ,���k4 �G�T�YW�Q��g���ƺ�2Fј���,["W�5 �R���m���z:M2Za� /V�E#8(սx}�uv�j��\ޯ�Io�mT��5�}fTd��s]� j���<�D����!�&s��kt�<0�N���G��9��;�5��X�L(V�����qd��-W�9�)$k� 9O���i�����,w ��s��u�����X�X68�T 0F�6�=cd1����m�<(�X�J�Ku߁��'�����E�f��a9��r�X�v`�$���-\H�$g݁]-g��2Gf�~�<���\-W���;p��T�b�� =�C4��%�ay����K��ڐ贤6 @��Ն ��ј���:$o +S ���J~�=V���X�*,[8�]rΝ7ar���cx�܃��?_S#���._#H�7y�u�u�L�[��I��hE?8��y����2 u(h����{�b�d�����Vˉ�=�ce�8��F٣H_ ?ئ��N�X�P���������/�!$��;��U�u�z��be�t�s�x-�!�Yh�B��Ǒ����-�^ �����pt�|@R&e�9:1��uU�D�&�<~�f9����Ն���|O�h�esɈ�2�� ��K�����}=��U(c��fc���t+��"Muڜ��,7 _Ҵ%r7+�����M@>�}��������Cα2�P���K����>���!��K�K ��\-C*mi�Am��6_x�[�pE �Z������\mH�l�h�B��"��)�=A�%��$>V�q��� �Br���r���T�z?��喣��j�Oظ�y�2��X�0�5V��ɯ�\R��^�J�1�;�-����"D�����������#�E$X���FMu��4�}'�y�Qg��Y�I�i�f��j��M�k�+"�At'�d��r'5� ���G��4R-�rBt��^mUZ�^�(� B��5j ���P�|b�s�� Z��v%c&-^m��t��By��%�3(�Dt�2����l�:�@�P�垊��f���{pC���S.��Q}�t�r���ĩ�7�uLVظ�L�7�3�!�7$k�ceJ����T���Ű��v�X-].��՟�',D���?��4/fC-�3���7���!�9�G������Puf��>�|�=w��{ sp��0��.�,���|]�W��Z�Z�#[�B�{�Ն*�F�\������쐴(���L���9�D�fb�G���<>�<39eB�ڠm�C���5�5�F0Y��v�u�����g*�Y��|yڼ�\��&F~X�3�W(�ǹc�'K1\m�X����-B�jYZh)�H��ơ��R�OOu/e�A�v^�ؒ��L��|Ĩ1�3��9a���R�K����D�� ?9-|?Zx�B3 ��/B2�ZJ�,.�}�� �) A����~ ������w�(�?�_(��� �t�a�$����ȧ±2e8��TQ�MX-e���9�C���e��׌w��<�y��T�̲�ӚQ��ސ,~m@>��HK ���А�G�j��p5�C ��i����Hsg�9(��'� �`|���!��g�ͯL�**Y��p�A�%�w��,�z�9�2�Di��.�Y^�+S�ڡͩ�5�����r�iP�p��r���s��2V��dP�/� w�\�LAQ[��T�<�lƤ/cW� �����X�›*�,/����}~�;(tu�L��ڠq~$���u$ң4d\��\�9V�&O��*���(]�f5�F�#yG�󻚣R�"�(;� �%���a9V��+�k�'�!�Y�x�9xf�@m��7(�<1��{@��E0y"���?��L��Ri��2(�5i�Қ�� ��i��H�2(�l�)7 ����BkI��xD�z�f��-վ8�Fw����'�u�m�b�I����e������%�#��;E�y��/�� |n\� �K~��>?�K�� X6Vz�]@L { // 初始化认证状态 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: 'qiyuehanyu', chapterId: '87435209', 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 看小說網 版权所有