Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/kxs-php/controllers/NovelController.php on line 303
第548章 摘星星的人(十五) - 七零:冷面军少被作精娇妻拿捏了 跳转到主要内容

第548章 摘星星的人(十五)

作者:桃三月
(�/�d��g��l"90Cˤ����<�?AQ$h�H`�P2#�2�d�*] �-�,�;w���y�_���v���wn{v6s�3��\Ʀ���$�B#S%��E��/�#���>߈gH���*A�^��Z����t'�B�^ FZ�މ�Rz����ˠ�;�jG�^��Aud�����ӡMNW�kJF��H/�@���fvT�׹"Q?�*V�F�X�JjY2� �� t���?��JjBD�F�*�Cx�uD�^gPՀڰ�S�z���*q�i���H�Ε^|�s{D��׹�w12����[z;A�u�`�@8*]���q�dykdM<��u�����R%�٫Ưs�`��*� �ȃ�O���p�dq��pkTR'Κٯs吗(>�4u���^���8z3�F|�p��#�׹r�.K�>��xA���B������y�����&_�ju=i�*��+�Bkг�g��!(J�8���sMо�,#�J��Ȩt+�3�!�;��d��:WFgQ�ɐ��*�����h��U�N'����:"m���f�P��uD���Z]{$�[c��7��� �Z���2�q���q�j��y�����5��/G^��0Y��� <���$�DXHzLވ�<\ɨ�n<�(.����/�t����^�Z�P*�\tx����\'��F�,�!��Dj��e��.#C#O�E�c�A�d�;*���j��j�j�i��B]wP��r�ժfH��t7���J����h�IdG�d:��@#'H���~��\G��t�闑�e��T���� "��F���\;�[�c#W�w4wq�*כ�"2y��`��W�W�w4ǘ��5p�\Q���׹B��m�m��ܪ\�k �޹z$mfW��*����\ ���jKv3[���.硦U�Y�Z��P�4�[� ���k]�!�,�y�$x�x��W�{$g@��4h2d�u���+PO�=�U.6�e�pk���S�/]�[o�s�c#s���,���r�C#����׹n�k�F�(ǧrѽ�lu������dL�^&A�DXa��� /h�XFg'�v ݁��d�Z՘�ZP��I_}���e�d��$x+�E*4~����Tɜ�R����j�O~.$�E�$�i�!��\�ɽε�X�P{�\�׹V�[l��^�������lk��A%[T���V5i ʞؽ�NU�}fV8��p��67��pq� ̺��g� Fz���T����R�������.z��8q�D�Dl<�9��E/ �� u-9I�B�R���!�����������wF�զ{�+e� ��]��t7e�UR2�L�O���­!�D�� u㖇:���;��J�C#C��:�Ν ����JV��:W�;�Ό�1��a!�&{�KRn�\�er'�v4?093���޹> 5����JP��b������Th!�s� ��ى���]̬���ʆ��Wo�G�g��f����A�eu�� g/����UDjC�V��z�BpFg�M��l%a'�V����3����;qv]���ȋ��Υ@(P�kr=����4��׌�( ��\���,�*���:�kr��#��u���=EhK�1��96r �0@��=������r�FM6~)T)�u��� ���e�����L.(?q�\�AW����7�K"j��%]TRˑ%OH��l�9*���z�[bzK�&sP\��^��X�� ��L���U�q0���$xG���_�K�4hJF��J�+_�b��@ݘZ�*Tnf|�xB�" ؈r��^F��h.A��}Tɖ��{Y�ɝĽse`#k�&�z�, ���q�p�u����a][w���� �|��r's�˒gt=qR�b#��!�����+Ox��^�R%�#C�M��8�U�5#j�� F�r؅��í��V�����h�hGG��ҭ>��n�s�˝ܘ�a5�5��X�@��nD�����l?0$�? �6c��Ӣ�J�'>k6��CG�{�+B� �R��̫� �I�Z��r�y ,c��;?i@!6ۺ��er����� L����X�í1� �1�{��,��~)d+Kv���^}~v�JftI�m.�2�^���$N� F���Vě ^�+�I�vEzK�׌�ǨA�a)"@�1 Jk�,�j� �(�H��sx� �q�oؼ]p����-�G�椁�Ht����[t�Ų$Q&�庒K�3``m��bnAn4�����2L2��s���ÈO;�Olt�T>u�6�M�W�@���K���͢0R�0�k�� �#�q*�|�Z�ț�E�Ň�i`]�#���Q 1 0��k�o�N>��¸+#T�.�T�LGMC�U��zV��� T��d�����>k-���F�,�:��+d$K��W�o%-?�9A�Y�$����/\����d&Ç"y�8#b��?��m��T��R�;��w�*���чC��t�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: 'qllmjsbzjjqnnl', chapterId: '10617195', novelTitle: '七零:冷面军少被作精娇妻拿捏了', chapterTitle: '第548章 摘星星的人(十五)', 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 看小说网 版权所有