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
第0043章 解决问题 - 门马 跳转到主要内容

第0043章 解决问题

作者:对井当歌
(�/�d�"���54@X���̓���0I���6t�b��P� X�������������wF;CA�%ƀ����j9Ϡvf�3g2�\q��zS�Hk��s��Wl2��֯7%K�z|��ՙ�� �����K�'Wkg;�^���c��k �|�p���/E���G�M�.Tn��k���d�'/K���CP=�8�Ur�ю�3�C��%�X��?^ny"�V\�D�,���L�E�{���Tk?J�Y|m.n�����jm �I��piE�G�k֦n�y��c��L.Sŵ�� GP�(1����!�1���A����E�P�D���A�w�Xd��+.O6�8<��GbI����M?��|�Cs����X�=\�7->C�d�.3{H��~+��l���b���7Eڐ�ֺib�b��"ij���M���E�(�3�װ�.�7�J?d��n�<������R}��'�M�S�H_�G���C�>�<�^��e�,{�E�W�M:~�����C�`ё�G�ߘس�zS�{���J n(q������{��p��-�!o�zS�bj�"�=�W\&���=���}�=���� ��Dxt��E�N\o����Z� zTe�Ĥ�v���g���-���㘄J́�Y�!y�e�y7�nʠ6��=Q���9u���p դ�GЯ��S>����''�g�k�7ƷlAu�������[�X���$nX\']oZ��b������M�H� ��Ƀ)�C�)�;���ܴ����9)�fqi��ˤ�_8?��M��J|�1}7L`�,� ^�v�6�z�C�5L��z�ܢ6e�śM!�d����M��[{D� E �xpq��d��A�כR������ ���^oz_Zv|S���&�4h��z\�¾">D�i���ʒZoz&4w9�۞F`r���ē��$�u���& ��з{�M���I"��>`0�Y6h�-=Z|�>��gt�`�D">$�d�*W_oZPj�HG 2�f�ͤF�Z�=�9����[�g��x�,�,&��� �A<$��C5:����#"+6���!M���d�Z������r�2/�P�,{���M%�{@�@�\|l��Q$n~���v�.B>��fq��'�ޏ�&��X�+��,Ƅ�f1g~��H�"�wS���O��������Z�eƉ3Wx_"�B55mLHg�_ʌ)d̂�%]o��fᛅ�,f@�N�<�y��+���8����̡�W�݉��L#k$�3߼�P��fq��^�'�%�c]6���N29������ <�̲��)�WB�D8"�*כR���;LL]����0����=�M]t�}�ϟ�S>�yl�����[�����������'�rT ρ�=A:��A�@�W��?<�6����V\?^ny~Tpj���H���'a� >��u���>�^^N}�2�sӋ���!���)����'����;LD� J���#iC���K�G��� 17� �~�q�ks�ţ��\��qq����R���3���s"M]��˚�'ac07`��� @��8b]�q�����أ�CP ɸ���W�� ���R[�ޜ:$j��h�����e��Gol>�n"�*��ęŚřF�֎��b+M���{r��GD7��y1�˟�W�}����ޑ=Xٙ�O�v�n�?`����V�b�b��M��]dN�C��^_q�a�Lױ^��Wk�W����T�"�Q�N��˩/�=�]o�}���\��x���M�J< �P�sh�f �=<���$F$<4��z��U�+���w��pL�=!�}�U�RҖ�.�rf��4��_��M3;b�˷�k�5���;L<�.Z�^��f�ѓfq&������-�W\f`_P���K.(��� ����g�X��Ō�)�s,�h���=F��B5��zӁ0���`0Pq�������%��z���Q�́n(o*B^�����ฅd������Gɹ�2#{�{j �*u�{�{��+.�P "|U�d�(];C?C�&�`O��QgD���-�6��85��Ye�b�+���=���P�#=)��H�Q�ɉ'�?�xd��b1$�4Қŝ�o^oZ��x�8u�'a��]�]1�V�<�h棁��L:���Q��Eȏ�g�c�/yo�'A;L<^"<���hoz�,1fq7 �&�/?q�d��Ś�G�����/!�e�׏o"�Z���� �[0Zq}��3��uefq��5G�fSmQ���H�$݁^�^�ɓŊ�=QW��M;$j2t�����v�P�p כ�&?Qӏ�\q�����lɥ� n[��D�_%�Hl�hC���>�>6��$o�k@�<~'_or~��2إ���v�z��e(�S>��8ǿF���H�$���%&h>�� }�����/���,��6E�^o:z<��.�I���=��,{����W\>C'=vt��C����3��|^��@�z�V&�8�>��~���q=���#u9� Bp ���Qe"�ӽ����E'��,p����{�/�!%�2d"�����n t�3F�iS<��8���+P���"tt~�iK�OA!<{� Y�Q�ڰr�[VxH���;T io���Tc-V��M�<� �@�iq�S Љ.r��'�5Le&���ތq�@�Rp�7`��XO�m���Ū,h�Q�ٻN���_�YId��4�H���)sp�iP�M��.����U.�?�����Ie�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: 'menma', chapterId: '87750030', novelTitle: '门马', chapterTitle: '第0043章 解决问题', 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 看小说网 版权所有