跳转到主要內容

第1011章 非同一般

作者:未知
(�/�d��o�ϐ'B S �{�y������L��Τ�.��v�ٴ]l��V�F�����s�UUU�?S��7D�,Uե� q`d�N_[�4ZC��Cd��XS�)yv�rٰ�)H��ȫ�S���\"QG����J�\2��jֵ@^uVo���h���V=��L�D��g�Ym�k���k�\�X�"��i��ń��T�C����ٕ�R�e�� ���\*m$�Ci"3p�iz�]cy�k��m�<��,E� �ju����=}���>�S=Y�Ք<;�k�k�_]�l� h�j����b�K��M {���|�T�A�iU�}����*�q�ĥ��uz�J�*����B�X!���)y�:���� :�!@��Y��3jR�nL�9��pCF��f��X-X/l�vJ� �%]�d�D�i+,��|���A&O@�乑��ƴ�͑���%�=��H\P�C _[���iJ�%Pͬ1�'d rI(K�S��x�i%�*R����r' ���Y}"���i�X!0����N��:�!ҙ�����Ou�@���1#{Tւ5�Ќ�S�`M�S�p*2g��u��T1�c ��ٱZ���*f���R4�ʴ �"y�;%O�g-���7���,gZ �@��� �|�AXPP�\�|�]�*��Zh �ӊ S򼘖aE�T�8��^[�h/U0}UX�~�i�!�F}}m�!�Cs=���v��[�ɩ��j��5����)yRLtH��=���� ��Nq��<=����u��h�y�� ����ZLUO�ah�!����VE�Vy��yIdJdz��=M���1��й�!������djه�n֭`ݙ|�����t��=M��s �0�k��� U��iV��;\K,��Q3�O�*��L�σx�u/^S��D��ڪ$TW��htٸ +�H�Ӓ�-�"��RQ�"_F���$s*��k��I��?���=!_y^[�P���Ӵƴ�KQũ�<-�{UX����K`��L��S� u�ᜱ��"�$��զ^V�,F���*#G�h?D�,E��Q3�3]՘�Bn�|Y���S��}�L��ٻ�Þ���j�� t&��k^3�ț�:�ͬ+�~`�D��Q4C䠉ά~��TnqM�3�q)yBt�� �W叒% O�/�����L_[Ÿ�992�q;N A7B����U�qJ����Z��Q�נ�֘�������=�~m�Bn�q�� +�E�k���EOȧ��U� ș���P%�,�n�j��q#mE�Ay�=՝A��wk�iw��ͺ{B�Z���R;�O]u8��* 'U~y#Q)&:du�U�>�;\�U=U�9oP{m5���Z4��y�ޘ�9�>� �_�4%ϐ�w��'����ɍ�)GȨ���Z��+%O��M�����X���1a�.m�u��?�O��K��Y���x3���V���R9e�ъ9��"���N��Ez�$�&���x�#�!���j!Ҟ�1#�B�]�� �놗.7��(t,� ȩ�*���i���C(é��a�Ρ)y���?�S�i��8�7� ���|Q�)�#�W�'US�* �T���9Ex��צ�r4`.� }fr"oV�$���Q�/"��g��Rk3�a){m��)����iߘv�ߘV��uٰ�v ف�=.D�ÞYm��:�����RG�u�_u�Q��XG���z�L��)y^[C��*��I��ݺDgXD�d$u$�a��qJ��Q��1#?����*(�q��7������� *�r�T���ďB��E����V5����� 7ս�ĝ�� ������F�6q9���td��� 3r�و�aE�`M�� k.�-���X�v���(�N��`2����c����)#�� �S�^��O�Q�j�<�. Y��OB�/��U�M����J�@�,1� �$dzRt����������V����Q��w ��L�T��*�Ә/�\ɟ���Zm�T���\Ey��O���C�q'�o�3�K�3��bƵ�rw�g/�)y�0k�L+g��,d�j*�4E��{�v����2��(� `\G�iZ���GF�h�Ox܊��"���kd��=�zcڇ��-�E�Ӆ݌ �b�CdIfu��P���Yw�XL�Q*C�����ȸ�`Vaq���B�F�BF� ���Oɫ�E�ִ�<.���<� ]UaK�uz1��R�0���+�HW\*Mxjd��fM��`j�r3�#&�$��Ym�[諬1#�.5DYjYJ��v�q�K(���Cȗ�7�i�7��)��R?�e�~�C`�"���?�S���q^�:=�<�ljTU�Rȕ�4��P�f]R�҄���DT�SIQg �����g��\��zm�ԨF�h��!B��)r�cZ �I���Р�^ ��ƴ"{.��j��}$���̱X�p���)"/�.��.�nfu �SgCϯ��"�T�����1�b1"2## !�PӘ�0�k�@@@ 7��VPP8MMv�%��O�((%D6!�'$ �9�̨$�D4�e�kKt����(�x�졳g�[wr��#Y�� ���K"�j��� { // 初始化认证状态 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: 'zhongren', chapterId: '18748991', novelTitle: '重任', chapterTitle: '第1011章 非同一般', 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 看小說網 版权所有