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
第40章 - 状元养成攻略 跳转到主要內容

第40章

作者:苏 芷
(�/�d�&-�J �5@ � ��o͙�U�2SH-i�B]��EJ�ܑ� ��A�Dn�#3p��3���fKBM����A��փ��.�d�Pj��vȠ� Ƈ�'&AZ�e�E��H�j�w�I�&-m����L!S�*�[8`�[��w��#�t&ZJ�ě���`�<&� ?0��4���&Q�V��j!��H4�-��l���փ�z�N׊j����c���w'��8�T;��2ZDז�JL<11����턼��D�?�RDk� �.��f��� e7A��7A9)�O�4k�0���'��HOLI�,|q�T DGD�H���R�% r$�E���/���^8�~*al�!�*0.�(�0����i���'=v��k�hi'��"�)dl��N��#��4�-��5-��y����� ,ޱц�G�I��F�T��]`��3LaS�9�?�&�6�vYb�¦9�k�����k��R�)��ѕ�<ዻ� �F/��L�0���"����=Q�ӎK���" �p�=,a�p�ъ��(8�kl�d��GRGp0����� 6`7X4&�R#�� �Gs�8� iC����$z�r�p=�%-1qEt����5��V{q7�j�u�{ȸ�����j前A|&ډ����Dڣ,��i\�p�SFk5���y�+-��j1���t�֑�V�5��g�*g���Zy^��B�]�z�h/3�����r�ewi��h��ʓ����J��<��Z_�2����d���f ���x���EHoD[2����V� n�_p���w!��p0ָY� і�-��kE���9܃z��5�{4�>1�V�!�:�{P�!i��Zy���P���0@p� P��E�V��!S��;:�s�/{) Jz^+ϋ�\u��i����j�)^���ji�c������'8�ac� .0ɸH�Gr�=�^�(��t��/�+����_��t��R���@�푰'��QVn�Ε����v �]��6�of}�4ɸ儫 v���Qm {���(��4GR}�LYf?�n�y=AZO�Պ)���vȅ� �vaN��-���H+�O �V���M��鹑��-�ѫ %m-��5N;X�.���S1�¡���!��>����tW�n)o)�����-bkL�� ��8�k��9��#�}�j�$����ݣ��ډ����ͩw7����9�W��sQm�r��%�k�TK2nȰ!�${ ����z$�f��+�G�7�.���]���<�.- T��\�h���p���V����*�5��0N2]�(����S8Sȝ�����D?e��\+O BK:度H��h5I�Uy8�mF^�<��a��G�&��W�?�� �&j|� ;�3�2h�@� ��o��1d��|�t��?�-�'�����A�,������Ҝ�� t�5GsD���=`�e�M�w�[D{�t�����/�~^W(?�0�� �FpP��՝�њD�h"9�en�\uG��AIgB��^E���ҴZN5z�rS �FG5p�$4�t��. �jGi��j��4�R� G}�6���B�� �>���������#���,wQ�E�z �]S-�.�����h?FW��)��gAB'X}q�d�B����Wl)�Qv���KS$�T����Zy6B?]��(���f Y�]Pw����P/�#�6Xm������.�����F��O� Jzqq����;�]����j/��jCA����MU���# Y�J����^Q "-���v�d\+OD��h/�~���XL�k前���)�+ν����P�I�+�5��퐱�K:���#�϶��y�s� ���龨��j�=#B��Poᆲ �͔E�%Ew7���3���=@�:��'���`�w#���:3\���������#™B��sc]r̎� �J��`K �AɢH������ x�V[q0���^� �W4CH�H�V��H�=���\`�6Ԏ���bi+d��I�Yo�I ��BZD�)�az ����ә���y9�RX��f���hE��i��@�;j`m�τ���ZiG��G�Y ��v�C=���.M�S��B��64t�Y���#&��쁘b�<�ђ��� m�8�xG 8����^bb�� I;��7B?����ԣ���F��n5�(�d��g 9�!܄��,���]�q��A�m�� C�Vm����>ؾh\|���15n��%c��g]�$���~��@�����2(izZm�qA��"��?����󸤆� i ����"�6����ItZ�V� ����,�̺BI$�FHm0Ɍ�I(����Z�� Bt%��\��|�� ��2^�h�9�?���x�YO�+1�q2ԤRu]{4O\ܵt���E�����v��� *hPA��U� >�V�@<�@�Ru/�f]6bv!Ի�����L��9�;ָ�����@8@��n�Ж���C�=�u�іy��;���v��tS�6=ZLaZ-��b�Ҋ�Q�'X�Ahi�Ms��kR���I�q��j1�����Gs���F��q�z��w?]�FY�t]èk�ZD�� .h@0@ �z��� �@ � ����As����TI�����ͬ?զ�2��N� y� �ЛH�u2e剉��Nȫ�(|���͵���h��^T{A���������Şį>e��c��  J��I &E�v���g����]1�'&�t��~��6��e� �j���[DJ Ě ]#‹*�j%d� wdm�R�����]P��5���U�q���~���`� ��~q�`q*�Zy�����l��'����ވVa�w��y#�#�M��j5��`Z����=�k<"�Ѧ�=�.�b�D��L��r&�L!s�]T���1>�pZ-I� �k��Og9h��hUv�p폣� _����ty�s�M芃[q�f��і�� ��0��Zy&X�`u��y}b�N��0��Q�H�Sam��\iG��q˳�əᖚ;�; �]�]�j�ىdǥH�Z��Z��v��E�%󠤫���~��\!����Y�vdM��@�X�r2���j��1ZI��.M9�S�E�E����;ʤ��_��0�y�+p3ei��L1qX� �B�n(�z�Rt&Ԙ�$g�L�o�WW���-|��E�L˃��~��S&��w���+ �(�A� F��&a" �U�p�-�2PH�4 C��!GxR����C � J_d����oTY�%Ljq����V^h h��"��P�w��*{JwWU��<1HF� g��KV_ �b*�$ ����]-4'�d�xͭ�0�{��K�A�{�� ��!i/)��rd�M������Q�P�@ӵ\aJ������K.�s�6�r��y�ζ?�l���So�O�f\̅j/T�[�zJ� �y�Kg��o<����;B��%v�E)�����g��G'��ɸ�6Wa��nf^)D�h ����K��7��\���ChW}Q ��-KۀE n>�/|��8f�e��)�z��׵P4אq�,�� �L�Yzr?���1���p� �P��=$A��~DZ�<�������R옗�%�AWQ*�\ ������d�v�A� ��P� ,<�bŀ0g�2�M�����'�`8-��mPJZ�S8Bd|�zȻ�EWN�\19��e���#�a/p3��E$�헕��z@�;��95a�Ho��(��0F�I*�B�D�$@u��y����F.���Cf+ ��x���7� ����_�� h6fj�R8��D]7[����3�Q�w�kO i��(&R�k����rVaDLf�b�"@�N:\�^w�U6�}�M�2�Ǽ�4YeH�6�:) X���'W�^�.��zF��f���#���'Y��|t�cI>*�m��p�2L�e�8:q���SR�U���j}�M�����*�� 畭��L䙬3����fD̦�����h�S �3� G���>v*� �Sc]��tOtP�Txq_5� Rْ��L=����[��V���?�i�uГ��|9`����U�r���6&��j|�g��u�#�Y�^ �y'� (3��e��:IC����ի��P��D��p�����b�P�A��;q�!����ōg��㏄����#ԣ]m��6���|H�J�ֻ�!�F�D ��S������b�?��_!;���B�kI�tSp�2jǸ�P�|���J��W���;�l�@��ܬ���}U��Wo6 �&o��iP��7���������Y�3,��H��XB�ܾ .��n�i�N���Mpĝr�2�@� �Δ��Ǧ��4��Hn�U��9�p���8ݩ�&��%b8-�O��)#,A { // 初始化认证状态 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: 'zyycgl', chapterId: '71188203', novelTitle: '状元养成攻略', chapterTitle: '第40章', 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 看小說網 版权所有