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
第23章 保命就行 - 离婚后,总裁前妻后悔了 跳转到主要内容

第23章 保命就行

作者:寒月初晴
(�/�dRp��h&9@Sh%�{�&%N~���٬Mo ��Q[$X���!��`H���d8%C�x�84YUQ�W �P0��ṕk�5�O��զ�Lk# ��Ô���7 e�ݳfk���d�t�f������ 6��Fz�ȳڛړ2[Ȯ�S���a����g�,W���Y�b"F.�>������=��E�A��E ��oo�K��:�A�B6�pE�%L&f�㙋s�֨���y�p���df�����K���J PZ�8��<�P���{��-e2����{&T�b�� �8�>��A�S�A��m�8�9\��ÇD_�}o[�Y���g��8$�̘�u5ʷ�T7 ��U~��d'P~�~Q��\�����;a^�κ�>��S�dp���Sbӱ��)�?�'Y�1�`>�b9���5�8������!�OJ��!C�8���q1vO�a�[k�'t�z�#?��I=�zxG4�.��~�ǩ7qx{B`��oe%`jđ�5�+p��ڟ�+"y���ߕ?�E 9a[�`�Y���mj�"�h~�0c���tOkO'?��רA��i![�LL*�������D�`�� 2� s�s���c��8�������^H8B&��S,q�ц�dr�WW�����a�pQ�%LV(�S�v�z������4�>�F����Ƀ������y�xH%l[�`*(LaNʬ�|�[���i����=&�9�>b0c�DN��{N�pZ{R��K��0��-�����^�<̔� �ֶ$y�6�Mm� ����e;4v��:�R��^8�zEL��a��'e����mk[(����*|��'��j+������Lئ� 0��1��{Zۇ�5-�E�jC�_ՏF#�r�:�p��~ծĶj[�5�[� �� ����؏�?""�α{r(b��-�M=��ީB8�%��B������"����r=����C�Nk[��Slw#Ae�^Ϫ��6�!;&����媝P��˜�N�� 樉��Įܓ<�mR>|Cz��{R� ,>���C2� �jW�?��y�y��T� p�g��V�'{F�qdl���f@>�][ �i�=� �,�Xd5�Ss�S�B9dȜ�#c{݇�_�]��]r[�f� ]\�=vOJ��7 �a������5�x.�ݓr=�^�NLk{�p�vI=B�C�k���܀�WĞ�]�a �3�\������x�p�v��Є�G�nt�e+�0ya{A��ڡ ���� �����m��%#�;���Q7:~զ�{Pf����%�im[;+ȥ�a�� �|����,x!w"�-D�b�� �y1v�ț� ��~pN��� 5sS���)�2�zp{�_�O��.!{��^c9ctxqM��+ �0@0@ ���^ZN`����R�I��d/d^��p��B��1�>AvEl�3�0$���{"0�^_8<�����6� ��Cy|��'9���=y+����QQ_2�� DtZ�����?������r=a�r]Q�z��|�0�p��O�m ?��Nj�M��Ɍ���Ƀ)al��ml ��ڜ��; � ���9��� �"v��ˁ9q�������V"/��3��,<� ���%L��=�q���g �����?�[<�*��ojsԬ֨�����S�h2^nfG2���&��ar��N�D�9ɫ����>X�I� ��c�+W��桌�Bx�}��ؗ� 9H������!�W8�fV=G���s�b�G�>B����C��]U��0�K��F���p��{j�g.�Q�����'g@8–��������~㢅�{�$?qXcYNk��W��|��e�j��o&�v�=y0 >|;�A^����S��ϔ^+�������2�qp C�72�Q7��H~!�����A��4��ު �����؊�?�%� �_l�����<��ش� �Y ��R�KFn���m작����M�d�M�ɨA�q�0"C#3 �-��Te$��"����I�Q1\ۉK�UV�?Id��u�yM�F����ef�*D��ʉ#��V�ϯ#թ0�R+�љl�h��)4�fi�e*�a[��m,�6��\�Wu���m��P3qE�,d)m\t։_0A���;�P�0s1w����{� �uDx�1/�:�xTm4�x��E�[����b9s��HX0j�u)�$��@��S��ID���т�9`��� ����"8��FomB� �$�(�ՙ�ص��L!�v�����)'�g���,����p,F�@�a_��]�l�����ё5W���חZ�li�:|e�+t#�ĢC��-%btE� { // 初始化认证状态 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: 'lhhzcqqhhl', chapterId: '35872648', novelTitle: '离婚后,总裁前妻后悔了', chapterTitle: '第23章 保命就行', 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 看小说网 版权所有