跳转到主要内容

第31章 云韵

作者:未知
(�/�d�&��#�6A � p��9�����)S�I$q'"`��2�B0�R'��d�l��`�D@�a�v�d� 8 XkJS�Dd ֟D; n�� ��l��T\}���o,n����ʛ���� ��Q�ujKM����Hd6P��c��a��2ti��5�SZ�>MH��-C�[M :�\o"���8Z�9��h�+Ւ�@gk��#�K{1��D?@��C�S[N�ό'T\�r��e�Ԗ3� ��@e����{L�C��<܄�1��$� ��5ᇥO(!<|�%� ��Lmy}�������O�'��.��h�x5�'�5��>o� ׌��O�ES[���� E�,���# ya�^[*��\����Nn��h��-G�7������-����pMb�O�7���4@���#ҍ�-\k -Y�p�!�9 >+s�70|La�����bS[2*[>��8�y���K��R2���ʜ�)q'����O���-=#�`Z��T�,)�Ʃ-(���৐;�~5I�'-��t^�,>m��D��Ԗ�O \Cy�� ܥ��}�����[ڏ*��D��֨�+)p�}D�d=�%j���=� rT�R��rK������O��Q9�5�%f]��DSF�L���)�w?��2=R9�eb^�B{K�"�� oi�讇�`�M��䙈L`ȍ�ـX9Q�2y��uWC�H�)�j��h��O�R<���DZas��E���b�jp��S[R����23r8��� ��p��ࢵ��@xc� tI^_f�,�@��x#�>eH�*����}��d�΁\�R��˜�5*�N� � k��R�U��t�t�-M��1�+�m�1� q�-! �� �3��Z�4i�<r"���2 ��\ni��d}�Dm�����Bu���$�-�� H��;ӕ`=��Y�\�Mm�I�&]��Fd���\�`�U]��d�u;�˨�`8DdG�:�13Z�1�1k��Zգ�]Y`qp�HGF�. � ��q�q^D�JȖ�& 9^�ٴ� �Ԗ�y���ʋ�ڲ�!�NO*�s �>Y�Q �-Q��po���P����:]@��.]@��<b:�hAR<8��k�YHb ���"� �V�|H�������ǀ�mN�H�u�-cc�cW��A�Ӗ�_ŷ�z[_2�%CR[z�.ec��"|��5rP�Ay ���< ���]Bx��F���'��o~x�k��O�A���>�A���t����|J4A�S�fT�`h�DȎ� �5����F��>B��H[�S<���u����<Y��֚-?�#�k�-���3����Qu?�-�wx�R>���L�Ҿs +����\�5��>nl�9��]�� ���c�������պ��+[������vT��[ ��}AϬ�NC������)hl��"�ғ���4e� p� ���},�<�k�3�ͽ���8؀�Y92jx��'�R4Jџ�/ƻy�$�o�f��geȉD8 �K�@:d!����+Y�Y9�\�WD\L��f���A���x+�+XH����G�����HL�� ɥ�Sh�l�:m%�@��=IJ�p=#�p��� � �?�.:��݅H���Rm�4�}�� ܽ�^8lzV֪IO[,s��:z��9��*���B�ꀬ�| ��]�ג���㸉y���P ��]��t%�4�D�K�@��@b.ۣ��C���O�F�ki����Es���z*ORc5�<�<���<0I=+S�S[4�e��J�]jKж��G�#�Om�%�D��g�e��+$ge�2�FdjK���4]��R���tD��r�Ӹ�C��|\nGr�-3�7��2�f�-+��X.�!2�-��c�g� {.�� ȏ�!�Km�u,W�ܱ�r.��I�z�>���C���żf�j]K{Sw%�S��@�\D�%���\�O9$�}I�Ԗ3tC ����-���~g� ��ʒ�)��0,��dH��[�Ԗ��TW@����_)O�W�6��$�I W�clK�DC� ��1 Z�4��c�"x�=�$��w�P[Z�K����48���ES[N*�2^�hl �5��2d�񴈸4Ҟ�?*k��,zbb��2�h�D�sB��%�pF�������#�yL!E��N>�����IU���ω����S���U:�-�uc���7]@E�A�L:8UY��0�uuW,�l«�Q]3��QԦ�ej�8�z�@�[ŏ����� �`�F&Z�U1b�GR3�D���e:U�4�3 ��E ��l͛�"H�7�$W,v��naUp�����%0�� � Q�b�|�Ǭ-?'��T!���-iœ&9nJ+;��th7�j$ � dd��8�+�y\Ԟ|��bA{��P�P+�d�ԝ|o�D^/��am]�{�0t.\�᧷u�����ZG�MCC�Ɯb'~[�ġ�s�(p��j���d o�0>�ܹة]#O�����$��K��T�<�����+- ���X��n4�Œ����W�'�|il���zCY��y�m�K]:B����r��7���Z2�7�/X�p 77jDӍ t��V��O�����w ��,`k���� ӂ�a[`M�V*�雖�� B��l�爏c� �s>4X�l��AA ��TC�������XO�+�Q����o����2&�\ρ { // 初始化认证状态 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: 'csxks', chapterId: '1415545', novelTitle: '超神星卡师', chapterTitle: '第31章 云韵', 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 看小说网 版权所有