跳转到主要内容

第612章 血液

作者:未知
(�/�dh�n���&> S��2��|#i=bD�#Z=w:t�A��``�`�O5�pEQ����ҕ� �y+�j\WA��y*h>r�^��yz�{�S��D���`bkoF����rj[`+�S4�i��6LM��3Q���I <>xI����ȓ��z��B����|^#O�y��$y%k� b���s�d�-�9�;ُ\۫A L�kyr'�{1T� Z^�b�<�f��v劉9�+�w ��b��*k���}�i�x1Tu�`�&�O���2��j8g4 o�� � XS�p���{��W�4��~�5G�ynX���p��y�-�C��0_� �.+ �>o��[xI�h���a�љ�k� 9a��5�<�Q9��+�-��K�� k� ��^ ����� ���d��a�=V}Q�ɒ9{�Q_$�ɴF���O%u~����5� N17-���I`��[{���^ �-�-ٴ�������+�W:��y�,��i���v$��ItA���@?HP� 0@,@�$�P@�L� @� �Lw�&�mitŨM�{�Tb��)*���`�� ��� ��ѕ�L�謾F�d�K}�.{2��������`xυ�����"�"�4� ��s�F`�����s*]R�yGy2���[,���B������A��}���*�J@&�@�1� �/����K?g��#�ۢ#���|Ye�F��;��.��`MÛ�`�<B�V��׀.셜���bo���I`w&�X�}@} o�iL�-�5��ћL���Ga�� 6���r�EpYe�d�-�їU�@�#��bG ��^��_��o��d=D�yr��`�D�#%_� /�������N�`q��6oy���t�F�Փ���:�Z#�M��+X#O�y� N���d����^��'�fp��}V�yYe��6�pa�&�,��zȘ-�(|�dN�Q�$0ҵ��G�=/�6��%k�I��ꃵM�o 7;�h��G�sj#�Z#O��������b�!��r�6Y����;O�����F��6h`L�����e<�i�i/ /��?�:t�Rt� <�#׍�^Nx�2��^����g(���~,���aј� F=��Q����k䙅7�y��&���B}i��xɾ֙8�ؠ�&t2ͩ���� �yV$y o� @Fo�`N��l�z���}#� � 6 Gg⵸���V>��:�8ڴ?:a������`��ķ�����ګ��fo�bp��f���� 勅���%?��pubk�v2M u�.(u�� ��:/Ix �]�#�o2͑|m������B9�9�ix9�)�Xu+�$�� ���h�DkP�?���2�G�i�{�v�p���>�3�e�mB��� �?��/�Й��AFk4�8����#ek�)*+��=Y��� �L��Go�ly�����:Ǫ��;(�a�튉A�!�&q���kZ]�rV[��G����D͑�Yފ�;�L���T���Xu��[x)�6��lE�&�;��`�����ګ#��:�L���"^K����z�Rd:/���VM,:�d�Р1T�4:�Z�K ?�0eTo�Z3h��&�[ޓHm;��S��ž�5�L|0�����?�0 /�6��^�}*aƣ% �m�bb%3��L[��w|����y.<�G��_�%�w5Y_s�<��e�x�xG�WLl/�7��4������4��sN� �&���a� �/4[ރJ\)(�8u>����g�$�L�j��\#Oq�`m�{֡�sjw���g��{��Q�a�D�L���p.JP��G/��ar�%�c��W|�� a�e�9�//����=Ej��4��H�Toy�������?�~Zd(��t&�]>0W*�S�0�ȓ�)����S{.�U�L�]��d[ޟJ؊0���[�uny�`��f� ���m�%�9Y'�n硜�5�n%���RR�����D�Cz��e�4�9����a�D �+�N%-f�XW�l���!�0W�Tl�f�?-�[�s'+F�1�B�}��R�~-\FM��r+tB)���g�`j��"�1� �†��/��;|�e��^Z���Y�C �T#qMB$�Y�()�T��蒛�N�j�*fܰ9���6�0�����a_j~�-�b ��o5�q�9�;Xj���~�,|M�����[��SY�vі����`�4�� ��KxĪl �g(� $ntf��=��ƣ��:�XcsnP��a�l*MV?+��Ƥb���:�D.�NQ�E9 { // 初始化认证状态 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: 'jiuyangdizun', chapterId: '12010334', novelTitle: '九阳帝尊', chapterTitle: '第612章 血液', 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 看小说网 版权所有