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
第8章 村花爱上我 - 异能小神农张斌刘馨 跳转到主要内容

第8章 村花爱上我

作者:张家三叔
(�/�dr�l��<&9P'����{�� �`bf��4A � � ��T��� e&��҈@�<�P @ AXTP�ԇG�/��=I2G�\v��2 �MAx�ݧ��(����5&�����@nԦ�r�ٱxf��"�/D��ϔ�-��ſ���vh� hLd�2�(��|������#ˑ��}d�iKӊ"/Ry/�L�,G䖧C`���ߨ�W+D�B�FިOL��4�si�`�\Ss �j�^4�t=G��Q_�c"WL *X�<�F-�6eAڣգ�$�Eڏ��Ns�iʬ�����M������#hn�%z�J�Q7�����ȓ2�� ?�|P�����{ �������P]��M$�4�Ө�ʜ��)ithd���K�.�L|�M�;.��<1��$���Z���e+�*�mU d�M������DŽܱ�b���y&�4�m�Z��FF~n�]eL��9�����IpA�,7�p�F��r�kLd���Ɉ��My�2:5�"�L�A��|I�'���}y��]��O� �U��1��rLd1둂'��nXڂ�I��rA��H8��\U�8]Jؑ��+�|0A �FI��p�{���J�S�2Ő� �m�y�V ��F��oͩ<��Ú#O��{�C##$y_�ϔ���#�O�O��&>1�U-�R�]�Ȫ�8�i�?�Vd���atE6G�������Er��^�s�E��2%k����e��*���Rb�K ���Ղ��A���"�rQe-� Q�%�?]���Ȏ�c";B_v2�J� nzQ�bіj3�ܑ�v� K�-���^�o!w�E��.G���^@�������Ӌ[���S���� ������}�� �#τ؊��c4G���Tc"��6��`xLdK���5�tbdn� 8 ��g/�M��es7�'�3d_�w,nj.f *XL�����RA?SF��&�4ҋ�I�A���#Ϫ}d䆨 D�A��ᴘu�� ��9��)�ȓttE�ফʘ������� �%�\v�e�4j�d��_]:8Dl��/��*s*� ^:8 ��dG�c � th�Q<�#O��?�NT>T��gY�<)��U6��U&�|���GՋ�\֏�/�!{��D�L ��V ��O_�?��AtŴ �F�FUV� j�A�A�%C@ߨW�/�B>�|yj-��U��ٌ� /����2�rKaw�?&���\v:22A�1���h|�*;4�X%���$ $@@`U �.$�Nw��JK YSiM�E�A������ȩ�;/���0COү���KR�9�4��R�A�'�����0���Au$�Oҟ�c�E�� MVAc=�˃�m�l�m,F�"� -f�h�)lN�M�ZGF�����O�4p?������)X�V��e��wn��w�z���;���l-�ڣ�Gg���ӡ��zz�R�*�_�gJ��<�!Α'�xP���"� ԟJ��vh���X�]宲�i�框�c�ʘIp/)v$�}Jh���� F�R�y�hZ-p� 7�Q' ܍�(�ƺ�φ͑BF�z$r��$} ��i)�%5�S1mWYAk��U���QO�:k���SC������s�&���t�ޡ9��5���k�����3%o�Kү*��ig�Q|E6��Aڗ�g�v��@cYa/�%[ ���i�<5�Δ��.��Ng$j�:Sr�ɵ�]e���a��; ���l�g/�3Ӛ>�f<��7 ;M���JR A����l��鳚�3%'�\+�C�� 8���(���j��"ީ�t��hq��Q�o��#k�xʻ�f��=tͩ�����Tx����a�8`�� ��,�F` �H"0I�z�Q���hω"$-���ۜ�2%�eF��X���yM�lWᜍ%���o���t׏���~>%�~�B�8�[Z"� �hr���Ӹ���n����9��>-��M�ц���af%5�T[o3,d80��M��*�����He��]<�<�V!��`�M\�X�BZU/��b$.��G� ��W��p�w�{�{ F�!F�3���X��e��*�؅�1N #���"����A�Pef�� ��"P9��E�{-z]j�a���0+҇�A�. �@�.��)�e��`��[��ǎd���Y�� �4�� ���*��5��q�[�v�_��2��=1]A0T���3�^ r ����! �AJ��L�L:����)j�D߷O��H�Lt���E�h���)��m8�f�`If݁4� z�V,J�����`��\�2v=m��,A�-*�������q�h���&�d"�\|(� P�֙D��� %�'k>�� { // 初始化认证状态 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: 'ynxsnzblx', chapterId: '37002472', novelTitle: '异能小神农张斌刘馨', chapterTitle: '第8章 村花爱上我', 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('书签已存在'); } }); });