跳转到主要内容

第九十六章皇上奴才尽力了

作者:刁三双
(�/�d��q���'> )Ls��}�TAն� "Pa��ݠ�ɬU�,5�`C[̹Õ��.�����h|� lhd �b�zJ��0V�����7#���Q5����*v���)�:�4(������;Wy! �T���"��b*�撵� *�A�N��]�ao���F7����.�g��FohŒN*�w��U��s��_�_��D��D����Wy�+��P� U��R^�R��عBnm��Fxpk�� {�4W0��D��+���Ey9�C�� ���%��"�U�3�v�{�֨�x�6�cV^�n�E!�;���go�� ���1�khE�ع>��4�@s�w�덢�s��uA;�^��u�[���^y.��` _����y�����c�:�Eړ&`X���0��ع~��X���¥�PxN�+� )�Cޏ��J̫a�����F'P��R^�Ë�Z�S�Л��pD�撱se�k>^��3��C�I�� �<|z;WQ�=�{�Szy%��AK�i�:l��48ĥx�\���Lu�#:�� {1�E�3�R^y/{C杤y�]#5��s��;�2:d�D&?,�:lf�$��L~���K�!I ���"0�1c�ljær�s�? �:,r�Oux�~y��;11v�!?H����h�R���b�:Bd�7�j��\si��=���o��\�0g� `�֮ع��ѩ?L��Wy%�5�E� �O�MC�<������?㳄�0Ah���0S����5XiD�4;�t��S.����^�.qN ��0H�U��|qhKy�4g4|4��yK�[�b�x�y�s&*��Px��L��?�{m Zn�7�B'�,rm)/v���7������x0v��3�Lu�%.�������p^���� �t�j��ȫm�"/��IE}(Ou��bK{�"�2�ü�uQ;v�� ���GƖ6Y�T�1U�����%i�H��$TЂ3�Z��w���s��J[��~�7�����&;l*�aЦ:*[;��9k�E��;�R�y7�Gʽ4�c3��;oFޒ�phk��}�f�뎇£�R���[���􋫩+l��d��E����q��{'��;v�^�tt�*dG'���U�I�?c ����! ��[������9h�&��:"t�]��c� �|� Ou��p'=:��N�� <"�D{%�*��,��8I^$fn�)+b��5�f�H���>���CX�O��=&e�ן�! /�s���U����U�C�\�!�� 2���ÖLu���)�#�`�?PVH�E�- n�0�h�a�C�c�*Rh��$yitm��5:�S��١ ����� ��@y��`CK�!2v��/PG�$琗�|"=V;W�� ��;�ף8Xipkpk�\=�{��uB��ͣ?l�;I������ �;�N��=�c�z��;5V��� )b,��aP+�Pr��y�s�|�BmpCu�\>����šA,���2�"�����x��yG� ��03���`룤��l�F����j���%��<������ ���Z]���*8;�=�a v�TM �� (_B��'9���P�=�&��ӫ-�����ZC�R�%��3야m 6�"w�E���!Y3| �([@yԉ\��k�'=�9c;��{@n��X *�0: 80�8`@ЀB�H P��@ �� ��su�w��rd|(qKyE��F��p��j�'iVH���g���u� +I7,��d�S9�7IK$�C᭽�+�0&iψ�U��؛Ȏً����P���:=�z43���š�s�@�@�H� �X[�"}f�m�S���r�<:��H]��Z�$�ع>LͰ�a�69#��֠w � )[��B��Z�yDĨ�6��lGv�+'o��#Y?A����zNF뚉�'����� { // 初始化认证状态 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: 'lghhykj', chapterId: '63716733', 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 看小说网 版权所有