跳转到主要内容

第九百四十四章 真正的赢家

作者:最爱咖啡色
(�/�d}}��t.3P1U`�� �&$���i#C���"���m�l��m�a�a� �\�3�����t�!C����q�՞W�_?mO�!���U�I �Mx�e��c�e_�CH��̓US����:g�״�1"�x��� ��(��ދd�?���3�f�xx��x;�Nh}%�����݋> !o���Lg`3�[z�(�EN�i�drH��&���j��@Cz����@s��M�^��_�4�gq~1�q��j�i{��A�k��&7'��jO�x'&���0[�4�Q���%S(�]��3�'�1&��>��x��E�mqR���՞�W❘x^�$�@,�k=���~�Sjo�=�O���/�_��l��]8��+"lY4�!䝐�I\a�+��X+L�����Z�՞�ץ��]0��"[ ��0[��æ >���� �$>06Xu�')�`�/L�K��$7(�쑡=�%��r�I���x�5�`�6-�h �՞fS �����s^-� �9\7����ty��P�+��8����4]��v�-���'��!�5��՞%"@� ����Y�!����������D�q��%�K�Z�z4}9�՞�N�WW3�K�p���7������z�/����1�c.���ZSf��71^���xG���p�gC���+L�ht'oċup�L����3|������K�q�j�$W{P�S� � `W{2 ��æ���=��P��"�����U��S4�Y�4}d ��=᭘��=mo�i^כ����9M{T�b�j��,���)�!�D�DdKy L�0���U��ч��=�E��Jm��O؆ �\.x�xr̔���U+ Y�|� � o�k�T#4:D�=���z��a�F�ӈ!["��Ky��;,7�����W���+�+_c�;,�HG�>ԜJt��ם�N dE��ĿLl�Օ�3�A������áJ3=m�9z$�J��>V��x��? X��B–�R�-���,����� `���ü�4`�f�̴u9Zɣ���;m_z�Y�����c�U��!W{�]� �'e=��276���� 4��F3��՞$l2�ayh 4m pڽ�y��EWW{����(����� ,P�;�mT8\g\�ipt���e`p'�x�*�2������E#:��NQ�x搧�A�GEC���ړr�+�jO�ix- ~^�壢C{��%�)�w4m�r����K�)����8-^�yY��rIY����j��?�Ʈ����8�8s�jOGy1���oT>�?�71� ���/Q|����̩���KR�$�(o�'��X�i{���?�c ��_�a���Z���=��[���j�� �� �2�$.�< ��?�Xy���x ��d��#r�� �l�kt���Ӽd���/�{�p�0�NP��UO�c���!��,H�͐wھ����(�m�޺.3ɟ>d^����$&N4~�$�����h���>���R��_�lY4&�ҖCZg�k���<^2_,�+��p�9?lzDމ���Ɩ=��W{>@�dM $O ��~i�_� �4�O��`π���dx��?�_�M�@�Mc�|9:��i{��E���=�R˫=)��x|d� �3Cg�1e{�'���4T��Qm>�$rP��T�GU;�k���1ޒ��#Y{�W{*ȟ�O|-)xnl�ᛦ�R��MT]�F���rގ:��nC8��������W_� 8 ���]��D(1 /㑻��=� D�0䇧џ򿬯�N��i{ч-Z��´��y'� d->|��w�4���#@�9�s��o㭊L*��i�.l����Br ��V�z�4��؛� �E/KL`�i{��+$�5�#�Y�"�=� }��/�s0"�x��OO� o���7⭊<11X5����ƅ9�O� ���؊�'&�4F�3qze{�z�zb���pqj9DQ5B� ���c`�����'�(�"IW{�%�<�kPw��՞�� ����'��!/� �7���+!/X��*�`��d�Eb; 9s�+\Dq����磅����'&�W���hZ��o��ċQ�>��{P�VQm���$��N$l�X�$J�r9y^��� ����S����x�^ �J_(r�|K4�UN~4�~�a�a�nh� �9�ȴ{�i{ �%d.�62M�����W{ a��=���݇�(����i�ԑ�o�]�8^�cx-�El[�s�����B�뜀� ���{��U֢���C�7���8')���\S�{ n ��i{ТI����Q0�{"�ʺ�s�7�+�՞“ O�X��x�[�[Z��� ����'��9"���F_�"��;Yk�[�;m��p}ɼ":m���*��[�6X��Q�������i�/x�O�$�ż��^@>�5���uޫ�'&�<ް�����l��ރϽQM�gp�01B�)�C���4��:#��mr�c���� ﴽa�;Y_��ADj��kڲX���_+��@�X��G��󯨤Eȕ��#���R��8��R�3Uk�$���lB񊅂F QVS��Z�IV�R��z~؈��`������\�P�.�;����� ��`��<H^1|RO�MS������G�NagA�P�AY8�@�4��\[�xb4goF?�қs���pbkGY+Y��_�C�G��K��C�d[J|0Ð؆��i� �j�S��qp}��υ��yQ㳟e#��R�2#m�����Sh-%)�-��o���� �I�1{WBc컝�����+��H��>�񞔸i�]��,��H ��e��ڐ#����:�Q���#��#��edeh>�@DV������%���A��mC���E��!�=A2q"wa��Qxa=���[Z>g��QW0�� 1��dž&�n�ՠ�<7d��W����4�O�������~ȿ�_�a��q�0Z�J��y����[�D��Ӫ�Ӓ��NW�qƙ s`u�?�7f7�Y|:t�$��~�܏]��X˻����j��K��I����g� { // 初始化认证状态 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: 'zszhsdg', chapterId: '87147656', novelTitle: '重生之黑手帝国', chapterTitle: '第九百四十四章 真正的赢家', 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 看小说网 版权所有