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
第31章 赤子之心 - 逍遥皇帝打江山 跳转到主要内容

第31章 赤子之心

作者:未知
(�/�d�p��*=@)����{�o��r�~�K�DmCk̘��L�"(��_F�!L�9�Z���2Ϡ�}ا�˹<%���'�Eo�\�l�H���'.��n�4���O\ΔZs������Po���c��ۛ�$�����[fO\6O͠��7JZ^Gn���B���τ�F��|1�q�7���� �N���� /K̀� nh&C���|�m���v(�H#�Gt{SE�(��9Ĕ��lo �������])��7%� ��%+�0��G�ߊ��K5�R���f;��B�`���\�\�������'�7�B��D=6bt�)�-�0w*��:����M��+������O�1�K� �-m�WF]8oy�q$j{S��K�3Vc��<����`����q�J+d2CŻn��L�����w��v��iɐQ�mR.�[���[%+�d{Ӭ��$��܏����S��K�7Ţ=)s��Ԉ�.K5�Sq�絍o ooj2�a���F���u��_����9f=���U�+J,>h����_�W/ۄ�7�=h� ���I�S�Dҝ��_�\1�|��ý:�wS����'Xvqwbɉ�G�� ��D[$�7j{S�³��K(���������C��M?��#�H Au�M�Pl�JxL�w:�u��zot��`����l9�9e�_��M`�$``�@"X� ��8h@�"X��^�6�L��>�>�8�?Nл:��p Պ_ ?[!z������a��'.K��F�����˓��ۛ>p>S�� 3W�loJr|��ˌP�0.���7�7.>q���=��,��7TO\V��rYb����Ꮡ|���=�����3�on�^�X�Ҡ̀f4Cx���G��"oo�`�G�S�[%�0�Y臏�4�Xz��ޔ�ű'��ڹ��= gx|Y����o"�Yh�r�{t�rk�C�(� N\&A_�<ՠǎ�L��g�34Mloz��)pE�d�R� �#�h���ȶ75P�7=6�R��F�]\v�@i�9~��#�!n��CP zm����{F����M���$2w�#��)3Of֘X�x&z�� �-�5%����ň!�8�Џ�G�5*���/�A���'藊$>��5b�%��&��9 Y���VB�����2?Ao��޴]�#��S��"q51E��M���&�lu��Zr�'�.�"Ո��7}�=�ȍ�8Q���\��+J�]r�/�·7�h~+y"�ˍ���N����&���8�]rb�:�j��S�G7#�zt�96��S��b �fn�<��Qw�G�?͹�%'+wH����M���T7��F�@_$�Ē�!�.Zr�煉�CL�'���K�7Gv��t���ˌ�5%�X�inoo�ؾ!� �-*�Q= ��L01wqEbF���/Q7t/�� ݨ�r���I'Pw(���%�����4u��vq��MO\�Ԧ|Bmnnn���� ɇ�7�����;�A6�j�r*� &�L�_#6Pl-{��W�<ݴQ}C�2�,��\rb��c���DKN\�4��E��dȏ�� ��\dd�FLN&�s��(��#�����xd��䔌B��\��O�K�:b.Ҡ]I�k����������dHG�A۸%�L�8n2��y��SA:z����2;���eCT�iқ��j��˞�L�В�B�11 �Fsk�&�1˫���Y} ��H�(q��hk* A5 �d�rĒ�ۛV/c����$�����u� �F���X�eu�����L�A#`o2 a�QrS��%�J"[R�Dy���!O�F�h�������֓�mi����5ϽP{�z��J(k�;Jl�x��Y���eE�5302�A�c:�" ��K����P�f~&�v=6���;�%����H�Y����M��3�?��\B9fytӋ�������w �~$^�X���i�)��4���a#�2טx�r�����M�M�826b��%'>�vC����������5^�@� t����:b����#�H���7 ߕ�W��#��τ�F<9� ���M����V����a�]��#7x���.K,"���V���?�g�g�gJ�aoo��C����9� 4w'�h� ��d���%�6_r���j��.G����+ ��(�!]B�EbLî�mm2EڝP#\�L���'7T�ov�r���Զ{,���cĶ�N���oz�w'�.��C�Ur��i�� �ΦWH���JG����!�*�Pgz��rL�g�ve󏐟���%�� }Am�E_��l��~��憐���e�������ڐ���ň'��,h�FL>Ev������8no�@b�� ��ߋ�.OZ|�!��7Tk�>��0KE{�U��B�h+̬0���3ۛN�D�����Q}�rB�jč��MO�'.ߋ=�sl�$����Ȗ����� MY�W�l]A]Arb���wD3oTo2��'z�Pn��U<��bp��A��D7���NoT�X|�}���M?+x�1��?�?q�,qA�7#�L>�ĕ��ۛ�U6�l��KKN|u�#C���N�����~�%'~�qC�7��A�o���=3���(����x�6՘����Kħd=���I)s@�`⯳Yb=�"1��P�3��K�r� ��0H`@f0�@�R�4�h�`CPJxYX'�GK�H�=$��p��3ӝ����iqh�� ��P�@ʠ�@�\F8�|������119`̞ Ĝ�����V20���[7�.C5 �(���!�v��F.q���5��.Z� ������L��Gjz��S� �(\\y��b'p�RB�[QF� 6?�p�ߗs��~�'t��M�hx:��_N�R:�ֵ�l0�z����<�_F��b@ ���ش������L��o ��+Zw��Nc`o<�~�? �qځ��YH ��1�M��P��R}<�z { // 初始化认证状态 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: 'xyhddjs', chapterId: '10679198', novelTitle: '逍遥皇帝打江山', chapterTitle: '第31章 赤子之心', 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 看小说网 版权所有