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
第57章 糖糖就是糖糖,独一无二 - 重生之国民影帝爱上我苏棠沈少承 跳转到主要內容

第57章 糖糖就是糖糖,独一无二

作者:慕暖暖
(�/�d��m͌&>0 ��I�{�s�^r�O�pX/���iH�#R�m�x/wܛ��b���n#B�ҫT= K��T�RNX�d� �֨�9*�`ޠ���آ��{����R ?�ɕ1/@raӑ���ϰv�X��� ;4�C�v�Ŕ��ܠ\���ѓMk�'su��1�<�O��¦ ��j�C0�U��|�Y�$�Փg��t��k �'!�<�`������������l\�'m�����nF$nIoɰX���inF�[�zV|#]a +cgW�Lo���1����i �c�Cڔq���_�E��X�� ��P֌�b�)�Z��2�(?Nϸ�q���u���9�c[A��x�p��--�;����DͰ�tug��o����q~iM� ���5�W�[���I_�0�Sc[���Z�a���z�5�T�_�E���wT��5�%6����:�<��޲S��Ϫ8�5�82f��V�����[֠S[�?�^ә��+Z�[Z���3��G���G��*�F�}yQʳ{�����[6*n�.�zN��yj:s����3H{!��F�$m�=�@Զ�̥!Jn`��B~*�@4ϰ����� ���HOί�8�dF'Wۛ2[�-�sj�[~�ջ�m���ˏ�W�c���^_,�XB����M�H� !��$QHjq�≹`V�����܌ �r�S��ĸ�PgX�No�a�K�P����|�x���uš%�gWۋ^O�ГjbX����06�iQw`n����teF�B"��֌�D�Y��d�"�"�[JB��|�=š?K,�f7#>[�����¦Z��-IV>���P�,Y�� ���p-R�����Yq���6lzK� W?�/g�����Љ���A�i�ھ�^��\̜1Z��B:r�W�ӊ��qИMg+>$CB>��t�-��\�|�}W[$�W�D(sl;P���I_Np򥵵��jz�L徵�3�j{�:oPq�uC�#��[v Ͱ��� Ė13\�)&͉�à���&^m?y���OjcL�!k��[Z�g�$R�8x���}��Η�/Kl[c�.H�,��Z!�T�ՠ�1�)�H�š�G����-��8��Bx�s�hG�����p=�LJ�Wq/�TA����R3�zy/ħ���I���$�G��-��h�=�\�HF'CH$�6��:�sKj�X�2�b���T|$$��3XŇ�':�Z�u����� ~�q�� �p}���{1�5�*�Ls� ��ULoٰ]m��^�4@�4`@��b.H �@`� �@  �� �[*>�� �Vyv?vN�#�S���2h��F�?o@Y��Wq�3�ʠE�E�3"v�8��<#bnF� r�Q"�Pg�^+D>@��B?D<�����#�A���\�Z3rz�˽h�p|SD!#c�X��Z�tIkK�ݗ!"�7^�~!j��֘?�N�Rt��pnFD����2fI� W�ڢ��I{���4CB�4�b���ݗCY���~1vV7�� �I7(�\mOA:���IO�3"�Pq���(G.�|�R���F��($z�]�|aӏ�_.j�l��+�����ז1[c�(�>�5CBNp2�{��-Ǫ.=+�H>��Lo�����o_޾\mO�:��:G�,<�eD������x�y��t�Yq��^�;4 ��X���g�_�A��*�\�U<��Z4�\�1�'WL9���qd��I�wp3"By�������~Rq���u���� -�-���!C ]m�4��܌I�H{gX���%:����[v_��<����?P�U\�l�k�ŕ��2�H���AkF.R�Ģ�cC�]�0���Yqf����X���-# ?+���.������:C�+��y����q�0c� H!Ai���I)$� ��� �R������9�z� sH�u??�hQ��LB���~�O+��5�����OpAg�-�AB��90k�֙}-q��R4d4��~�5�l�A~�^�f%K�:?8x m��Z���^ U��C�dTh�zh� �� �X m� 1�[[����oR ��#,=�\�����;�� �‘$����2��4�E&'0 |=�s�� {sڈ�8��V� Yc2m9��CF8���"Fہ㬟y�f:dK,hafR����w��a� �s�S x3�C ��K���;�O{����,�f�K�������~^��D a5���]�e���inu踗��`~��X0�Zݒ�@�p"R" { // 初始化认证状态 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: 'zszgmydaswstssc', chapterId: '52870195', novelTitle: '重生之国民影帝爱上我苏棠沈少承', chapterTitle: '第57章 糖糖就是糖糖,独一无二', 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 看小說網 版权所有