跳转到主要内容

第九百七十四章 落魄贵族

作者:威霸九霄
(�/�d|ms���'=@)� �{�綾�������%-��"��� � ��'�ښ��gf�~�<��� kfjT{J�zOQ�m�X}�����Nލ��ծL�x6�����Zm�tG�eg���ծ����You7�����˵�!����n�����Bwc/t��.��i�&W‡�?^Nk��Do@/XD�����F��]����[�:$�d] �Z�̞�='͛�'z��g�Q$�.��̞���6Ʉ���=������� �Kŵ�S�0]��=ܗ@�]�b�s �n�ep��i1���7����B��zp��A�6_=�gF�V�0����"^�x���«s���6h� �ř=A�-�^+�b�&���A���3{~<�D�E>3y���ؙ˭�~<���� �����lk��'K\�|fO�E��񼬲(�l�v�� ��dk�k�bc'��|����ߢ�e䌱�<�d�ʖ�-�c���$���g��C䖗�����C�7�Kħ�2�f�}fO��Vw5���yI�6#�L��k��A� �a��Q�Q��q�̞��c�W ��܃�3{�' �p�H>ir�9���&���Ѐ3�>gHxfO X��*����ͫ�M��P2"���){���J/H`�"P�m� %l�r��%�B������=9�g��46�S�Ԉ���Zm�c� �%�+�.V} }�6ƞ��&o�.b�/����ZXC~�p8û��C%N�x��� ��b�u+�[�mp�qx��[�uh�Zm�����ؑ�I�A�A�=�P�bbL�A���.��)�$4b �&D�:$��˴�C����9����K �8���yD}��86�̞��2j'|�ч�$�� $c���g��Ƶ�-Ƚ�l���+S��s&�jk g����d��ڕ3{B��lNkW�/8<�>`.{��"�4�H�Y�R���uD�P�y��i�VwM#oh�Vw���ڔS�� rϙۜ��V�� S˥�n��Y�/��a���e�����A�#'��Ѐ3{Z��jgʮ�Mk�@����AVxω\&� �&�ZN��3Q6&6%�A�\Bvf�Qu��Y6I�ؓ�0���1�ꮄl y�g��Mb�x �7ir��E���"�w�� _��;�C4�NY���СVw;�CdgLd3ƶ�� ��´�X;s8F�b� �Z0v�\�畊{�3:E!t��9�_�M����̞��?��<�%[�����]y�#��s���]-�ٓ�� �g�`.Đ�3������c76��ɉ��/}NBxOD�P[Q;S�ċ���Ljͱ�e�&�{��#t��26?���{������6F|`{F�v(��M1�4���X|Ya��C�+�̞�Eԕ�����Q�Qv�4�\����)��%k�sOup�l�>,"~�r�~��ql�{�m����K���ߍ��Lou���ɉ�I�K6Ljj��?�k�ҁ5 �p�*�H�k���g�Tx0�2qYe��K��(�a����A��5걓S�uO�b'�МY�pez�����jc�NXxi{ y���>��`�e�-r-�sDz�y.�� �/�1/8R6�9��+�����.��3�� �38x�䫑��_�S� N`^��<��e�D�7�6$B_���|u��is�A�b���#(&C.�N-W�f�V�$:���扱34W0�nb�����#,���D6� �̞ �3�np�@��9��7.}�|#l*~�ls&�8���̞�I��G�L6\�� csH����CGk�����1�V�Vۣ6�K �x�%�>G�~�B�z>W����jW,�z�j�Fؤre���c�.�Anf����� �1bg���}1�F��i��2rN��&n��S����e�Cd?�7�n <0 <�@��`��@�*� (`�$x`� ����p�=;��(��ٓLXC(ow��ONn�k�� �-�7 �����4ɡ� �d����@������ƵT�B8�e����f� �p�Rq�Kq+�-�覄�0���O����$z�l��� (��&떦SL�8��"葲 :���lC�ElJ�l�P�܇��pa�lZ;��2g�_&9�T���^e�P�E�wF�F��3�EɃ�`ɕ�7��K�g�|8\�|�� �0(�%�RL������''�h.+ qظ��/6/+�ٓ 7�ؼD��r�^p��X��qj}!�r�H� ܂�A鑲�ڋ+o<8�>�#6��T�VwiYa ��mt���Z�bFfO ١�g�8Pn8|��+P9sybl��j<�H/�~u3{2�ЀC�����ះW*܋�����̞�I��]O�=�x��R\Z�����E�/jKȦxu��A�9�.��"�H��,����#�ܘ�y��>c�:��F� :���G� U1a�0S'�@��2�� x��~��d�N<������BH^M0]���ޮ\u)%�8&�&Um(�Oy�9�9 3��:70D�N��[�Hf�z��x"@�]�]�X\���A;,��bGӷ �D��`��d펡̠l�OSNA�֐f�( ���xa� ~~G�bɁ��Z���_����nN��]�m`��O1Ċ���^�fw/b�V��ٷDt 4F�$�֛�I-Aip��ճv�E��|!����� 8�F�urF��]e��q�o�.�� s"���*���"� -�0o0���7ڷ�� ���/�� Ƿ����Aqpҳ%�iA��Iѳ ��\8��#�'��l �4UO�7�x =������Z!�u�����J�N�蝪��������� ,��6��.pؽv*ָ�B)�"k�#l���O�ާ��S�B�8�>Pj'�������@Y����S { // 初始化认证状态 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: 'jxzzzpa', chapterId: '43434131', 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 看小说网 版权所有