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
第46章 江山如此多娇 - 陛下,你也不想秘密被人知道吧 跳转到主要内容

第46章 江山如此多娇

作者:正经草莓
(�/�d��k �%9@'L���{w��K�p% G���j���("o�T���6Y�b5��|�g�o��<��lP?@<_�2'ɖ2�4� t��M��Gz�{ �/��6o�ߙ ��ds�W�=V��m�6f�Sw�Cr�n�z��ZA��E�cf����0X�A��NݭDmAd��S�K���ky_!(�7��V�Z�x)����� 3S�/+�?`p�li�"�"�) _m_ �5s���#�o���.Ep?|��G���.O\��*o�3��� �+l_�9�?�g��b� 3�־�j��LK�"^�ޫ ��@�!��3S;��D�Pp����b�~�=�׺@�  @ P�����#��qI�'�K� 7�ѧ�$��l�L��[j޹8F{L����Mr��:VN�V��¤��2Bt44�����Ňw�\|��&� ����\��O g������ ���7�bP�G��Ï�<~B�d���!71z�6(Ȟ� >���C���wK�3�؆��N,m2�]�r��� !�� z����W/g�'g{�Ab�D�$���d�6�d>���!��Ic�W>���%�� �<���=;�?�` cf�p��#�3��F�l�����P���e{C���YCF���Pp���Zў3�h�3�|F�ʝ �/8�j;Ā+���_:?N��LO�3����3S��V �j�Ỡ�^4�z�(�W���Ñ��1ew�q�ݩ� �`�������?�7�OH�z���\"j�� w�.� �xHu��k�wꮶ� ��=^c��\�5f���d_����3z%j�>f��SwdcT�Ҽ���dCP��»LP3�j��93Ss�x�mx(ᘙ�61��^"j�t5��o������N�mp�Aį�.��<��h�P$K� =�⟨+��9�7�s�>�彣l�� � ��([$:f�Sw96dx����;��:�..B��"�Հ�K4׌�3����� '�2����?"v�M�����Ǿ�{$w�9I��#Cl�}b��٨�O)C?1੻�[���D<�yRYa}b����� �l���� ��-rNݥ.r_�>!���Bv��(�1�j��⧄Aխ����q?�>V��7�l��1�̶�>x� QKD����r���~! Aq�6X�K���*O�mE.�w���|��E���?�[�w�m<��ٖ���1*3x�x��§�r��Yryb��N+��q�m����~&��\�='j�ű s!(N�pgtӻ�bf:1�b�6x���O�;!���{R� ��xg���=e�O)��ke�@'mO�M�@����w��E� �C����6�<����w��)�����,<���%����w��O�3,� �\�9X���c�$ @$P@�� lH�pb�LA��&)oX�D<9;A�c� �'ɦ,|� %��ˣ��Ɉ;�>`,#�����i�"�l{ {�9�t� ��/x��{Q���%��� �<� �F�HtG���Q=f��r�_�>����G�����t�.ɡ�Q�Gģ�A����mz�L� +�� [;#��>u�rP­� Aq��p3���bT���ɓ/g�Q6��b���+B��ç�f����x�@q�n�����#��+lls�<б����<�b[�M���Ʉ�Q��)I�fq�r� ���AeWے�1����.A��]�斏�)��l{�a,%f�X8㼏�\����}f�~@z����9FO�~hrb��t���.��8X6��@��٣�o�E�T��G�nټ�^mo*���]��f�M� �D�>>����!����"W[8h�]ސ�3-x��Gx;���W�C�� 2f�����\|�(bH#��'����P�����u���C멃g ��p�A:�}� *��p�]j~@���3�wFI0���lK6�@��=I�Bَ�B�QP7$����L��ד���@‡+�|}�Jq��UT��-t0aӱ@�}�ɞ�Jr%�*\�G�B�!�}ȁEY�-B�V_'�e�0��� 6��\�0���;K�Q�0��s������R:������>U_�k�ӐF'n�B���L^���fi<���J���,�� v�UC�4� �1������(۠3�Og�?������� (NK$4�LJ��� u�msˌޠ.�cD���.�h������H��~J �}q�$ Ь�;(��񪡠�t<�� :e9uW")k K"d�#�I�\P_���o��� v�~s8��mJ�����.s��,���� 䲁�N�`Vq���-{6�g��'���Z���Xq-{Y���Ы��}�����N�[hLI � ���6sBI$�[�t��n�� �Ӛ NM��5���O�ʐ8H�YyD�ڑ�(�Y k�m۳�WG`s-`NzX�J\����+�|"�S ����^1Ԯ }*$J����~F�h#)����b <m#�v�����f;;r}����i>7���;��.� �-ԡ�*Y { // 初始化认证状态 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: 'bxnybxmmbrzdb', chapterId: '39836597', novelTitle: '陛下,你也不想秘密被人知道吧', chapterTitle: '第46章 江山如此多娇', 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 看小说网 版权所有