跳转到主要内容

第八十二章 星天光幕

作者:沉默不是低调
(�/�d`�mˀ&B �L��w޳��� �&ۆ[#�<�fbP�DOF+K�����w��/UUUU�<��W����� 4RQO ^䞕�'zf�ir�w�j����b)�Vqsޮdlő�Z�����׫��;�|U��z��A�7�:�p�z�!�� H�+��d�#:�n�,�V���b�b'InN�I���&MY��P�L� �l.�f�Y=^�D�z��>h������ ϭ�VgE�È%��1Y�8E�^�W��B֒<��T�_x�L���X㐑)�"��>��$�����$�$Wl�:{��3�c�P��PU�U(ߙ.�V��ȗȜ��UӜ�9&ke� y�W'.z�:��p�l��J��J�Ȗ�<�#�� �S��;`}��,� ���]�Hd�Bke ^:�����.���V�V�]ɤƭ�F6o��]/=��Ѡ����4ezEd��z$r��)<�i�q��v%;(�q�2}��`:dd�E-��s���ș�����ՉZ�`L���:�)Sʥ��G"w��H�`�}Y+� �)�9�O�7�9&�,�4ɼU�x5�V���Ȏ�������12E�~6v��V���^����}�����:�Ƞb�"�M[�w㮕iE�����3�;��]ѺZ�jH�iS�F.M�z�M�s��m�M�t 'w��;^1[!9���&��ncu�b�Rg^oV��)�]�R!�a�,#�����3��2��4$9�� ꎤ�<��t.|� ��ُԅx����ϵ2�:����X�y##��ke�� ���(�� w�nu���$�.)��臑7�C�g%q�� N+S�=���4"��JD�Z�T]��'Oku�S�j�h�*�x�Vt�uV�Z�j��y�Q0Ob,ָV���?�3�1�#xi�yM��,�|� �OT���:��u ��O�!v�g��mdPF��O��Ά�2�w�;�/j�" �,�{�����T�����*@� �UH���RyB� �Q�S׉�nYc΋��xD�Md!#�HƜ�Y�g��2��` ��:1�ګ�K(�rLި�k��i{�Ԙ�^���l�!�>�z�����8_EN��0>�d9&+@w�2}B�Vg˄�!�b���٫��O�Ȣ�Q�Sx��"S.��K�Vg��J=��0^O�7�'���9��(�B� �u8o�o02���Nq�VH�o"�FFq�E� �B�V�Y�d��c�{ ^Z�Z�~4���`�A��U$3�lu���� ����W�{z\�LC#[W�@E2�� �jN6w�:�z%q1�/�Y�k�L1T�YH�bɘ�9�Ҙ��y%�+yy^Cڇ̎��zs"�ijRdR��⺛țsL/�� �\��1�-%�:k�܁pU�u�,���A:Wq)���t��Ѡ"�dȒ��Y ���Z��;^964o��"��?p��x豊2 ͫ�zF^'z�`Ŏ#[Jvx�+�P��ɅZ������U䪱 �-I�$��`>�MY��L"YL�k֚� �Au�A]bX z9�2�l�9N"���Jo"g^ke�y]~�k�DŽ��g�U/9�d������B�&�W'�/dnu6�ze���֌�G׵:����܊��JJWq��,�|�����w%'�O)�!�f��)%t ��� �zf�*2��qsw��VgW�aD�.�����<��> �I��iP霥#P��\+S�qU�u�\.|���Ž��"g^����7eY�y��#�q v��"q��ё�%g����$�D��Y��hP v � ku�!r�w ��ǣ;mR�~�h�� ��&�.�䮊�Xx�Ύ��sS_�~9o�����s�12��Z���I��L�`���ʔ!t#�§,;�nc��w1c 8`���"X� 4 �@��X` Pࠂ ���1rB� �e7�1��f�[�#�3�{P�k�5��ܙN��Dr�5�]�8*����0=��RxH�^� ��<�+yTA�Ƴ��~4��ܫ�o"+4�#aG"GF]��i�җ晑�Β#J����c�ٝ�2��,���Ա�ǒ:�Dr��C�O�0����!�ClW0 �}7#m���-�6DZ�Z� �g�T��u#��?�;xn���AMT�d2����jez�w���B��Z�Z�������S�\�m�n ��:x_0�"yIa�T��{ɜ���q�Ey�� Z�0�%!��p�Ɋ"�ѝ�f�9�"�I_�>}�Rm2t��H�"���*2YsV��:�I��e}���O_�L 1yà)K�D�^8=��.ZtW�Ғ��b����a׬>!v��g�=uV+Ӫ�(��w��Hݏ��k���{W�X�&CVi�������9�ɸ#�c��W��`��.�d\voCf7 �[�nM�a�V� �7�/�ՉI�MC8��Vg-G�J�d=^P�"�M�K����Dv Afd�y' ��&�:�ڛk��֬S�U�6 v�5��nu6ez���! b�0`3 �@��� SJ�PZ�h,&����"UO�:��Q��)����su��  @JR"`}F<̫O?5���y�dE����z@�W���uX�-�M�����(�Ԛ���m� ��8`*d�drm��� 4�0G� ����x ��P�d+*0\�L���6�B7jK��p������$ܵd ��Q�y�M��v�a��aP�!�-�(%���eHL���Ͳ� �c�� { // 初始化认证状态 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: 'cszhq', chapterId: '59261895', 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 看小说网 版权所有