跳转到主要內容

第827章 复活!?

作者:捕梦者
(�/�du w���)>0 ��I�{��E~�d��HE����K� ���$� S'ɥISpFh.���.����������6�x�{��'����1)�҈N?&�������A���(��^2��J/�>��Q�:�4���'��=-�Ga�5|qj�� �W{VHk ]Im�j��3��YnqՠK�6��t$W��������-� �l�9�Ӝe����W{6T��X�f^�[қ(Sv�燵)��#g��F���C����@��C�s�MW�Ӹ��!H+j�@n�l���SA�G�+n�Žh�l��-���Gk s<��axչ��o��̌gR�/�!�gH�C⵸gph��(�H�f��L��ՠ# �͊�����-�K���5�K�H�xt����lN=�g��|�mZ�"2��bן�/���Ya��}ҧ�K3��R4��՞ �QX{nq�P��� �[8�����dԨ���Z�4�4�ң)�=�L��έ����4��M��K3a�Q�D���5��R{�W]}������v���톢ˉI)/Iy���+ph��%#W{�6Sdy����� 7S�a�M��  ��Ϭ ����V�d�(Z���ܦ�T[ܟ*���u�g����,LϦ?mqob���:7��uq ���6�6�J}���G�6����<���� ��=?MS�-�=��XG�GT�T �P�]7�� hZ4&���O� _721�BrI�\Av��[ �D^ 2����"�kF ������w�8��MW{r�vL\"s<�x�f����D� �B���SƇ���uE/dJyC����Iѕ^�R�����(�2��C�6M3�Yq�]УK���ab6L���s/���C�jO���)�A��[�/�a��L��d���C�����lt���z{��r���9��c�#5��D�-��!��$rjt�™��!W%_8y���ayD���ړڮ��82�p�x�Fr�Q�]����Ş�4���C��]���p��FY�����_��#�#�.�i�{�էA ���r~}m�Z2��JoI�d��P�&5�(2���� d�"'�<��a������)��1h��S�J�a\A���@1'�N��Y�՞���R0-�+"�$�p�a|Ky�kYkL-��D�]�@� &o����e����i�x6� �ڳ.L G�"<0�(��,�@L0� `@H �=K&��9ř��F��ўM�,�)M�Rގ.�D&�(r�@�՞#�K�#|��@��l^ч�>x6m[q)� ��eL��Ʉ����R����ك6e}����T���z��y�ס N�����:u�V���5�I�k$�져�\}���ri��"{ ¼D�8���L���vEdУ�#6����K���j�N!�dԧ�G0��I*�sGSQ�\�4�>T&i3=��L��> ���|#$9���� R'�Ԧ�6]��\����E���#��^)�Ž��-�l��h�jβ�����I�������6-���7eS�[�-mԈ�^��mZ9D|�� �G�Dٍ�E �8�%rֹd��d��4B�$���K�c('9MI�ɨɄi)/sO�=g�t(s9˒�Q��!#+�,��0:��Fg�+(p��� ��@�6M;��|��EB�"{G�-�-����d�2gs��a�IE�(m��%rf��Ĭ��R�h�@��C� �}*�jψ�)�(��Ik�k�u�(�4q ֟�+]���s)��<�^�8��Iy�R�F���a}*���N����%d�ȏ�N�"�Ң�+ϦK�5];D6 �ҫ���@:�Ȩ1 b)CH�# �0�Zn0�h`AA�hM�_��̫�� ��۶j�,��1(�+S�~�A6%���֘|h�%H��O���r��FDA����M԰�x�cƒ�y�!�� ��1���,��Lg � �ɹƓ�Y~s(2���h���U�f9�m�)��9����}��"X�W�蚉�a���6ʅ��J�p�-o�6j^��<7����-��" im ��w�/�t��0Bw"�G�wHape �>lX��Wk@f:���͘B�UҷA��nK0��F=�N*�h���֦ �m�ݳf��_[��I�)s�+���1�?��r���m��k O���͔q1�qT�m08���Ҵ��0���A�W�_���*�@�:�;$��}K��S�7$b�(��|s<�(������ �T�n�4��yh;�l���.��ݔ� aEl�!4�Z�B�; ��P!.$ �̮C`S^H-X�~�b��C� ����Ɗ#A��x�%����Cwx\^S�=P���v?\��S9l��Іoh�[)��ݠ|B`���th �� *T���q(�V� 7?|���G�s�+���bEt_۝���|�����W�ȹ`"ء͢�� ���ɒ��Q4Gz�E��|�j��f�D˝�j�塄T'���7�,W�@��w#+� "���H �l.�%?B(�j�� �i�h�g,�_�s@f̪���d�ě���O�$�t�&�~�t|M��H�Fk{��&� "A��9_�� �v){��&�JFw�h 8,)���h�x�Gn����n�f`���k� { // 初始化认证状态 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: 'cjjrfs', chapterId: '56715068', novelTitle: '超级巨人分身', chapterTitle: '第827章 复活!?', 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 看小說網 版权所有