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
第20章 双赢 - 我的黑科技会自己动 跳转到主要内容

第20章 双赢

作者:云流君
(�/�d�|j��-> *���w�'�`�${�i d�&6(���"B��M��%�4 �Ja,4 �c ��Jd �����+6֯zX����A �gg�++�s�� k�� �;e5����.�:-���n����gG�=�7�jc=a����LU�8�)�d��Xc �U7��vn� ����][܄Q�a3���n�8c`-���<�8I��j贬����=�n�]�����xv�<����]�Xr���QEg�ZV#^��(+��o��D+F?->Y��DUA'�"+'qӲvƊ}�a�p;�`�eä�-ς�UcT��&�I�qp������mϐ5!c�O[��Ɗ8kb�c� �2� ^PE����܃vh��e㢄�35ٴ���"�/|�]���d���*�VC8���f�+i'�U�ɲ��$��e����Xa_�j0���L}ʺ5���ѳ3�5��Y��P� ����k {Q���OY3�c�dz3eyv�TⲬnq%m�F� �Q�A��)�1�� �M��qW84�s-Ϣ��T�@�m��ltЬ�v���LmF�uƴfɂל��%mҀ��5���=����8;S��(�^d�̺a��-�Z������C����,��B�{�{J�1^Rp��ٙ2kV5�L�%[Z<�pv�D� )����{zaD՟ε����9S�"�+"��8aԛũ��3�]Y'��F�kc͐��vwqv�e�*L&,��irO���DUAqG�+2�Ǵ���b/��,����ǐ ggJ��(+�u)c?�_�ęB��CUUPU 0@$pBCg�5 ��l�A߳3�@=A�i�v�"������ ��5�� ;4���������X�:?;V�ӌ��g5Ս`�5nXڲ��A�{0�qs���f �<۩\�e-�QF�,gp���(��LA"����C�kΊ}|P�)lmT([��郊K����X'�c�v�:;SeY-ϖ�8u�i���Y՜���:�>^(�QVb�Ƴ3���)yQ�O�� ����Ut��"+���Lm.�}|Pփ�NPgp�L���q4�p� [�=(�L�V�ױ�7(x˳��fڡ�+D��f>�P�bCgUw"w�������ҩcEU����b��)i�۳�}`,11{�����[����U+v�Ń-e�>)LI;k\E�p�t��}|V}ǀQuv�c��W������0�򮬛��z(��UwTኅP�$���j�eY%f=-����� �����l�-F���� �&8��a`���qO�3�*^_�oy� |��@b�D�&BW�����LA2GQ�H;t����ָ�Fkc�D��#��$����Q�&F��Z7�3�C��9j��MH�`V�YI�3d%��.�0ƾ�=�����K&, >��Ǭ&r�q庇{E“�9��!�G�*nv���5�0 �#bN�2��qxà�ӆ��F��&W�`�x��C��p?Y6���� �I̚¦�]nnq)�Cc�$n�Li�j�����3d�5�����4:����a�7�q� �����V�itȅ%fMuv� ��Uclh�L��tH�e5Tq9�D/���f��M�Z�l̈́+���/�q�U��P{.� �ǝy-�FĮ0ƽ�6��yv��lq�Ԗg�5�4a�kyVbV�c��%E�$�-�b.s�!�C C� ���5�eY���8����zD�>6�pV�����!� �>&����5�'�;�]%nv�P�*�my�t��Y1�-�� X��(T/�b��&���A֓eQ6�a��<�}썕#���X��Wc�Ү��nh��} � X�/�*J�r]S]�uЬ�[e,�.�1r�T],#=�rħP[����_ڣ�ٙ�0N��Sp��|^����Y5�D�D�򬃆+i[&�������>>[�\ltՈ �> o@ly�@��b�N�0���vc���p{%�L����!4��Ȇ�[��|VÎp��ŗ��^80�8p@�@��@x (`� &`"p@ ��T�sEz�cQ���D1�.���I�z�~��r�W=hh}?Mx�nH�e#�Ӄ��<��v��FGT�3^bV�F�T� �a`ħ5�+Pc�5h�T���G�Q��� Yɐ�p <�Ea ��wQ��(c1�1���vE�]��g�Uk�qΧ���ny���P�/�V��L}�� ���p�pBr�����z nHaTq-e���*4+���--�1Y� ��)��Wi˳�-�Z�uKY���ĊiQE�.)X �5 ;m�C\k�Nq;"}�N,��-�VL �}���⨢?e�.�D�jG�kq���BkVV-��e-�r�s������FN Z= k���k��L��-F�G0�Κ!kw1�jN��I�#� :���O��.=a�Ok�x}�:%�ӄ^؟��2&��$�W=\*�,�:�>~|6a��|֤=;S!R�myV4Vr�n��݂e��[����bL�Z� ����;���H[���V��&�\fLI�d�E�J�݂�l_����^$������ hg�*~o�\��̈́���6,^gt��Лi�m-o#m|����,�F֓e;�[I[�V��fg��>��$t�+�$;S��9�j�}&wQ��C�0[6��4���V�#S��L�0����<��$��MZ��VU+$l���Ǣ*�SU�ٙz|���_۳3�����Aš�?���(1I�8F`  � �==����c�@Ӝ�8�5���ͤ� L����95�Gn�K��g���d� ���z�$(Į�tdI0���i��@pr��%���cW�zs~�`���:�ċ1Ć��� ��e�fg���I�H�� nBGe��o�UZj ���}"�ҏ�x 0�+���qs�Rr�U�4t�:G��R���P/����΁s7�.˨O_��X�y��4e�+�䕽I��og�P3�K�>;l�����3ED�����T\�=��b���b$��U5�����:���(�z��(U_j�L�ppA8�‚�( �(��i$��V�V��eV�`e�R���c �̃�l5�yL6 ��u+ӊ ���,� o(@����8j�����.iA��p�r�?|�P������(�0��v�LM�u�-�,K���p��(�~�ǡ� '�F^�3aW+Q�X� ߻�lS A� �3d6ǩ�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: 'wdhkjhzjd', chapterId: '46166544', novelTitle: '我的黑科技会自己动', chapterTitle: '第20章 双赢', 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 看小说网 版权所有