Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/kxs-php/controllers/NovelController.php on line 303
第693章 乱臣贼子 - 娘娘她不想再努力了 跳转到主要内容

第693章 乱臣贼子

作者:未知
(�/�d�5u��+> ����w�g@d$$I���BB��F SAH"N�$�&�7�r0F" �0���3����L��e�)Ks��>Qv��v1�uwP�6y#� M[V?�w i1�"Bv�5$��坵�K �,��.B��K�A=��u#�lr򨩣��2�"�&��R;`��zF����� � ʑ��5��8/�a�A��ǐ�A�@A;(��:�馄 �*��t��;������5ւ�5jԋًٖ�?�w2h����հ��%�2Fڬ����T�S�-"2� ���N��A�5B�"hnX���ɜ�-���]K�gA��&[�MƐV�`�ɋ�7 {��|`���M��X/�*4�q���M�L猌 +&���6|u� �!�I�5�Dx�ٺs�ޥ �3rg-� �ƕD��N"�64�&���)���v3G_\�H>��ka]R�n��qT�N*U���SE �R�XzT\M,9��m�.]i�eM,W =J�wij�����rD>Q���1���� ���/��Z}����B��A!#� f�"Lv�\AuLXɬ��� ��7����"L����wi iH��J^�M��IG�º ���ޥ47>u� �b\M5���տ��p�Qq C���,J*D�ޥSWaVˋ�Ecݥ���K�S���&=46��T?�z��G�-�aWA�R��L���kb �<�Y �R�d� �M���H�� �D�@ @�p$ЀD��!T�D��\A޲:���Ƀ.�=Z�h���N�X�I�ZVSʤ�U�@��8�,� ʘ�^B�8��=ޚ�M���d늺kb�@Ya]��/�� jiq�j���*̓HK�XM,LWa.�!;32�C �t��Q� �H�2�1y�d=�9h� ��Wm��^\��bI)[FW�ݻ4g�����2����v����TP�^�ʍ�Rʟɡ�I� d��3S-�o�7�Eu�L��i��2;��MfP�D��TI�I�'P~ �����*Q>a�ޥc4�Y�њX�>LTKSCT_H��MW)c��L�{W)e?� B)WD� ��Oq�y��m�wiPf1a�P�}��]�SjKSɬ;�ݰ;i4��t�r'_�����ԯ���+њXn�g�SB�p��A�F���Q�)����������Cѣ�{�� �M�59m8�Jȗ�5Y.�.���TEݽKG'��@�쇨����~L^�!���K�T'9�� n�����K� �5�E�����Eȣ�n����c9�U��8���/�j��L�.M)WBN-�!�]�3�g5�Dx�αt��}��������(�Qq3�1��8ڣuX��E�/��z��W�����R֕��$X�A��2��9FZR� ���D��.ӠM�&�����a��c��,}qucP)v�qQ��MN �3����/�z��O炠TWŮ2(wh���M��g�IS_\�L�nc�QqQ�jM��5kB,uC�����QqG�H���h���䋫"��p�� iI��� �w�]�5š uUM,�M������RK ��A�Lu��8�hq�$���l�n�$Gm�H>�&{w^\ }nu�M>�_�\�O������Y��n�2FC��e)C�n�rpe�� H�]�uKS��& ��t*�� &�5����9���M?�n5<�5�Q�m�����U)�ki*�ҋųɓ���W}@��.���Ay"y�k���g C&wz�ē���eֱ��~�1�r mM�X�1�R�P�$.$d�VF�jb)�<��*�z� ��=���R�R�.�Z�ˣG՚�9��O���&+�kb����\� ��S�5���;��H���eI�g�V�2gy����@'��`;�� { // 初始化认证状态 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: 'nntbxznll', chapterId: '28345507', novelTitle: '娘娘她不想再努力了', chapterTitle: '第693章 乱臣贼子', 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('书签已存在'); } }); });