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
第51章 城 - 默宠 跳转到主要内容

第51章 城

作者:桥七七
(�/�dp) ��H=? )@Ep&�;�A0 W���2�� �N�Q�.���E�0�N��x�1��A��0@ ����[��g{9�����&2(�M]�ԅ��ɗ��W{���n@ڐ����\p��j��C�T��1�D��yz�l�r ���h�����5r-�3���rrש�Y�of�>�UH�#���~^'�;~7pnf�6�mԫ�LAP]�lf� ��0=��,�6@7���� ��=lnMR2�N$]�.V�pO�nF.�s���k�lRtf�(�%�5�O�)��8K�L5Jz��d��gK�g橂��c���3Y0 Bl��I���'��Hs�y"E�R�/��x���k��Z$k>��E�����I�3�T=;B�@a�9��j )� ������� I[���7(hM�JG��=l�YE�ݑ��3���UZ��Ҡv+Β�W�Y���f��9G��Ud�d���y�l�Y =�N�J�ʢ)�ԙyCwdI]cZ�^�䊳ev���*��d�P'`��a�Hs��j�2r�ω�MRk�f��86��d��g� ̣��S��UdE{�� �:� @��݌�u�r�Bd���3�t����@�%q }�^Ď�����^��F� ������d��Vi!�#�K�S� 3?�{@���[ե��GT_*�_#3jg�edH�]]�0wCZ�b���_���7�%%\�dMd.t�p!%CJ6p. ��d��a�����pG�O�TJ�n��X�d��^��H�.�nMҳ�yE�?�.�H�l��v��غ�xi�\��9&r�Y��'EV`?�+A�@�������ZSA���<������<-4D JZ;9�~�,�&t+�E M�GX� w�]z$��u�+��h�ѓ�ɥ�8��z�*����H�.�������G�@}f�FT���J�(�)�vn%i�� `M��]'8�84A���gz������W�^����%��H�'uQ���J]q�d.�A�*�MP؊���C�[ ���� )�zvDu�YJ�VJ�9h����S��0�b���\ t��=~%�����֚!� i���@/��rcGT���D@O@��l�sM\Z�ԛI����'���4&2DK�"��/�����yA"o sЎ𜦦�Ȕ�3�񛑷�;��Y"=\~��E��~ �B�P$�DR�����-���%���CJ����"�hq;�ȫ`��a!�F��� jP������%Cg�[$�CJ`H?�eHځ�H���%��$�g�BJ&���Ay�qHɝ�!Ò�6��������$P�Z$� ���*�>8p�!rV/����5r�FLG �z ��AhF) ov��|^7p���@� e#�+8��R�െdOiTk[5>P�4��Ќ�/����rc5Uk,�M�հ>�S�����x)D�N�h�A�!�#�#�?��DR�dO�3�D&�a��� ���Y���x���kA�����,z����=xf�$۱��̓f��EGL_P��'�v벥�<�3y�^Q�AhPҦ�f����� ��|y�+�� ��阐���;�тE��<�B�� 7b�@�5E;.Rp�aW>$^�`����\E�Xg ᝔��X�{9�k��lR4(i�՘�5�7� �'�����?�[� ��jdz�I���B�x�҉��&4��W�p� p @u H�� @��0�@���8�d��d���U0�s�Fd�A�4�YGIz�X)Bl�d�Ȥ���S�Y�v1�% XŶ�bd#��^��И7x63O��Z$c<+ ��\M��bAC;L�t�Y ��Ŗi����z�S�T��#�&���BdP$�L�ɢEo�"yCА�C����<,�"@�E2&��8����6��yMaZ�4.�,�d�k���vH�&�f�_�+�1]=��:3OQg�{��v�B����J�*��U7�^wl'i��:K���y5�C[��� ���BJ>8/��A"�:�Ia{F���=T~9�z�3IW���\�����{��'u�k�5뗓?�E�?�s��كE�"mB�1�V��� �A~���Nb�"�K ;�;?C������x�,H�&�&�$�հ )Ycrd��kF��J�v(� � �9���>P��p��Y���-r�&r��*�#l��~�_N�p��]=����crp�I1� ��.=A�(L��l����u�T��>=���^E��?'��$�����"Į�w<ؐ�3��i,���%��a5��^$ғ�'6���`���,i��H�`�a%$"@@P�C�{ͻ|�?U�W�R���jF�U��z�S��q { // 初始化认证状态 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: 'mochong', chapterId: '69248626', novelTitle: '默宠', chapterTitle: '第51章 城', 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 看小说网 版权所有