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
第148章 科技的力量 - 极寒末世:永夜下的艰难求生 跳转到主要内容

第148章 科技的力量

作者:栗悟饭和龟波气功
(�/�d�ez���,>0 ������E~)��G�D����(?����(!�L�%��X7�!@�U���|�ZT!��� /Y~����]�x/�3�:3��6�{�T��=f��:��� S{9�9�5�\~^Z�Omj/�ѕ٧��M{6͙�)=�h��WxC�n� �+R]����I���������W,�wV���� ��1����xaӋ c$�3{'}ݡ.����ْ�L�|��: ����7��3 ���;[2�k�����`��Gq���;[B2��O�=Y� ug;��ugK�q�Җ�j�SoPܢ�p�(�7[���>���p�~f�xE�"N���KG�!�f�:����<�›Aj�7]�H�h�G�l):�"��æ�h�)�9bV F&��h�z��͖Q;`�BbF�͖��g�A�]p]!�Gq�ћ-Ic�@l�_��Dj���吢+���~j{9���i{�eC¯�6$��e%1�Jb���I���Ζ�G_�EI�2�+������8tg� u�x�<�� � ��O�6� ۣx����I���9+@`� H���|�l9}T�#s������ r�l�Q�תW���^�0���#��&�l���g��G[�X�lb !�U�_���Ө��CH�ٲ�aH�A��\N��YW�$rG�u>P[2$��Wx��S�[�9�;�w�� ����B�l�x�¦1X�Q�Ì׳|�m}�~i�c��?�o@�b�U{��3�Ζ��s%c�[!�<�9C�O�-��̛}0^�T�B����?���Ah��1��� �"�X�����sZ�� xL� �p:�����[_DT��\r�yls�s� �/a��}x�o��m�����g0��=&����O�6h�E�1�ǘK^B�͖ c;�آ�@ä�٢�8���'x;��آ�U��wF�)� ��/)�WxGNc������f�٩���@1�6t�ӴEzq�V?"M"u���I��9�������gFآ�`�'y �K�8Ga��_֟D�(z�` ;KU��C�xO�>MA�k�fKkӠ�� �����w��Q��ۣ7[���hvt8��@�+k�����h�ę��'Ë���Z��0���?�洖����H�0�����0eo ����:�pC�K�Jx�u�L�ꠃ��/��sh�4٢/�!�/ø^����3݁�oC��zf�g��l��e.�+�w�o`�o�� �j}�|�����9 �D0�<��v`�C�^�iH��BB_����{��`솄C2�L�6A���x8�$^����xEX��A�:�S�c"*mR���u���R�Q���˺!���&�z�����9�z�A�E�L�4�y�q� m����z^��p�_Ldɣx�� �#�c���e.�y �����G0oY���E���l:C� �Q%LZ�ӨGK���E^u(�7��F�mt�e q��Ӝ��G��U�ba�|� �����7[�*��v��O�x-���QW�&8�ӈYA�Awtӌ���M��K����w�2ilS��?m���K2��` ��>���3}cXg��$���8|kxcӈ��jH��8� (ݙ����>��� �.yXT}vr�%��<����;`W �</G���>2�����B�+� Wk<��5�+�߈!Yi� "j��{Y�ț�k����80�8p@�bV��<�0� 0�8 � P[2�=�C��(�v73P[:&��Ө=�v�py�S4��3�[7 ~Nm��*�%#:�Q|�����G�,����פNE�n����Ԗo�q4u�Mӌ�Z̚����F@Y������Q�S;aԟEO�M�<�� [qu����K��i^!�� �vf�����m�[�k<�ќ�ۨ��3[�w�E%mY�G��ר�:7��E?��Bb+�.��� K�;I5V3wП�M�&��7$�Ʉ��:Ƌ�ܢoY�'�N�d��+�!��e��y�,��?��A����(�G�*�!xm� �.�oC�%��y��g���l.�¦1�K~�w^��5E3Tڶ�7G_��y#^�KkWH���Xo[_;Hzx>����5�� c�m�Rȕ-������V/�!o�Td�"՚�+�\�d��#�X=~M������W���м�p�xA{>���͖_֜�[�GNoX6}�� qL`��$�a8C^�2;��ؖ�� �a}L`OA�jj/��ƣ9�5�]ٲ3�b�����(ģ?�������D��X����+�t�#����Q�8@��(��1 Rj�`�i!�(@�B �n1�]�#̚�V\�m�({�:}��6R�eB�1�t3�O'�ˆX�h3P��C��$*��-�u2˿�rW14���mC��o@d)8+�S�W�p���h��N�Q��:Jh�7�gM� �5����3{��at��<�h��;$�˿Y�>��_hԕN6A5G�ִ:�c�s��d�3�Mu����/�E���XI���7� �֙y�O$H���PC��ؾ���.퀍:@�bJ�(FY�+��M!�!v[�3o���[����?̕��}�_-�0�����*'I��e�!����g,����P�n=k%0b/�>����x�Ul������ Ǯ�7f��QmY���(��&��Z}�Z@����v��3�2��(-_�>+�~���a�˰��RM��"kfH ߄�f6�+�Y/so7E�m����y�Y��� N^�z� ��'p���ovF ����ʋCG9�c�\��߭@�F��k��P��"G�U�o{�}��kT?���i��@�1�>`p3��PǨ�`Ӽ���Ό��ܐΌ&-0;UU����5��1�P�� 0=5XtԜ�������G0tFfij�P���t�%P+-��cgP�Kޝ9���� �,I��򻕎�}�������������r���[��5j�v7�ل���fW@�����t��s�Bc�Cԁ�e �9 �:�b�R���:E�<�N��H'NXZ�T!�h�,�(8��������05Y��0�:H�G?��1P��Y��\�Fx)���dEH�� { // 初始化认证状态 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: 'jhmsyyxdjnqs', chapterId: '43921371', novelTitle: '极寒末世:永夜下的艰难求生', chapterTitle: '第148章 科技的力量', 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 看小说网 版权所有