跳转到主要内容

第298章 裴敬

作者:龙泉警神
(�/�d�}q��(?0 �����"��ӧ�wຝF�� �h�@� ��6�M�*�I��7(z&ʬC����upk��N��f0���3�6UXY�S�VT��������xt����t��� �zN�Y(S�|3��^�d- �M��|s���d 9��N<�N�<^�8bù⢲��n��g�T�fXW�u/��Q�8��".�`��+Zg�)e��Ѳ�HS�^�bm��&�EQXk��e ��n(��a��Em���b�G�e %�>�<6Y�029N�8�� �GWK nĂ&�ْI?�����d�����Ms:��tgq��7�e 1����<\Q�z6M��&o&܁�e  m�|a��[m�UxĦ/�%�,�\IuE�_��R�V?>�5��t q~a?Z���О:�]�A�@�+����5�F��5l������%�ז���w+ ��+դM?L�*S�R��>�1���՝I�RP�d����&��!m���댤?\W\��ǏQk�F-k�5l�8���j� p@֐��5/ b�dɰ��s��5L9k��ɹxR��u�x �+���``H���c�#��\�PT���2(ܛ��Y̨%��>��m��ͧ,n!jǣO��] �i}�x�� ��0��@�ϥ/��(<�|5��h@�Sg�Q[,869�Oƒ �kp�N�=zsd�/�:�?>���� }b��;�o�� ��ᩳ��c�+��O 4e���#D�����Q_@ �����{����=Igڇ"� ��! ��XS�A��&S.�ċN�������X��9�F]����i������~� Zs<�5�����p/kQ��2D� x�¦)Z�6������z�-�r st ��G`\��1�~���dA������aƸq2�u��Y����gz��5%�@������I:�l��da� �;��F��QÈ�8-k�Q�D��ʘx�Qh.^H&-#��q�t�4 �'�Y]�h�#r��ZB��^�P�qv��x��nI����>���8ƍ.��=��d�89�9�t�� ��G�"�9�x�騱�W\M9ה4y3��Y��Ӑ�� E܈�/X����9?1���ɲ���he 7Qw�?(cϰ�x���D�}P���4jS���t�گa5%�&/l���<� �+l���A�؎�;��&WT��<�e �%j��&G��/x�IZF ���(���I�F]�,ź�Ě2�ً�j��䭲�"0.�ֱR� 0�@g� hQ�A�"�g�~0y�,k!��>�����o�>9<�� �-�u�y�K����)��,w��Ă+����5�H�B睉�$р<>sDKE����,�ڊ�I��.��!�LN1����&^D8ZC�j�΃��[ip:ف�AZ7p>U��q)e�䓂O�9l]x�a%[g�I��5�h���0�����MԦσ�w4�k\Ϥ?N{N�Z�U���c�������֝ŵFg,8½�!#z�R���q~��a%՘�jJ�ᾳ8 � �j���&K�A{���hmI��p-D-k�����BiJj{N_m/kH�fu�}ļ��Z�Q��5i�A�59u��dj�u�ǝ֚�W�#`�ᴉ� ţ �6�qK�f��#��Sʓ�3 o]�S���Z�k�5������ϧ.��67����O���@j)Ju�y�Om�ѱ�rjK���A#0�5;�|B�&�n /k1����ک�V ��� _S(K n��;.k� � ����`<�4�n���HP�H�5d�|�����kh`yhҚ���$O�:c�xy�F�� N�M<��X��c'2��� e �2�y�H(��b�G��΄'T�P��=҃&��4�y���r7�`.&bx��ة7e��������8b��01�p(�1= q-�)�0��@U � �Z��r7M�U�b�z��@���P�r�,���uh��n�q�ʀ�Bjm����r�D���J�Gk�Z� @�YP��}P|�Ga$B�!�p��Dӽ>7ZRܿB��C؄Rg�LT�9ӑd9�Dܷx30��R��Q�d�3o���c׍�r�d���*[zY��L��KOo���:ɲe���B��E�^����nꨈ0��2(TW�'l/Bw��U�Rq�w�� ��B��Mi��X�qoX���HGo��29 �UJ&�o��m��� C� ���%������p��[Q�Q��� �1�\~*��mW'Ї�-B^>�jpnW� �ѐ�/����_ HC�{2�n�擅�Z�-���*�h"�� x!-���\��� @�-Y$��9X$o�gD���G3M[�qNP�5��t&Jc�/���]���eɞV��m�O� y�*�.pZ��� ��*t>d�:;��r���S�F�v�![����-�%4%,�� %�+z�c��$)b�� �ω+�����Hu���5҇��"�ޘ�� { // 初始化认证状态 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: 'nshkjdlqhby', chapterId: '38057139', novelTitle: '逆水寒:开局掉落琼华白羽!', chapterTitle: '第298章 裴敬', 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 看小说网 版权所有