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
第47章 回家之路 - 重生1982 跳转到主要内容

第47章 回家之路

作者:初雨彩虹
(�/�d�p��4&=0 �������"��)ӧq��X ��p�#R�t���q��U�, �)�� �/�`5�_�TOOP>.n�Y�s�s���2��|�� Ic��2π|QN| ]�.���= [����:gPQ9T� ���At�\�^�� zͅ��'�S,"'AD�B>h��CXs�c�W�Ey�XI����b�!�b,GE(� ,�+͂���/��!y�r3�+ �e�P�L���I;��A~�{��E�;4���H[ K(��VP�)�����kb�U���ٌ�g@���b �� ��p���sTD"Ӥ�C�%�7�L�|�"2bi�t��Zy�t�����������e^ivs����_xp�UPx����b ���>h�r�l��ɲS, ��X/���S,%��t�<��LT�YK4��TȖS+~Q�by��dq�k����&0`�8���Xr(��������u���X�F���)������InI�� �;Ų�i�s+͂]G(7*��^Py�efa�q��$�w�4��|1�m������E�]�x��bҚ���/�;(�!�Ki��f�.}��� ��-�Fe�jpC�"P�(c���C� � � q+�F(� ��Khke�ȍ�3�_)k0=�2����6j�r�����2g�|�)���'��3�/��lT�Dg�#@ �uzN��P�p=�5r�Y��,hk�B��]ɤ'\oT&�`kFYn��厮1S,��g�<�eɤM�ň�kɤ�S����9�g|�َsf;��-��F/�,Ey���DO��|�8}��M�{F �' V{�I^ivµ�y(�L{�gHX��g@� �Ҭf�)�s�S,(�@鍊H4�rd�˱�*��as�rf��-���:=$��l�H_7lj|�e���= ��z�������@�"�21�@�SA/(���C�K^��;�Z3�k����!�GW�����Ob��9܅P��oL�KM�����Ӓ�/:��b�؜�nX��qWW�-y�y��& {"W����=iwn~\|�����Jy\�J���1��F�4�ؼ���Ƀ;���p�s�#��Ħ(ג���v�KB�b �<,�����>�ʏ�{l�Y���Ir<赗�0��rd���j��H���p�"Y�Ú��cs��1���]O�4UvK�)�����N�%�}(�ujmԞ�7�E�UP� �3Y���5bg�;�XW;4Z�� �z����O�3 ��s���Y����܉3�A���|}1.7a�%�"2g� �W� �5����r���)��td,� �+�bjH�� 7�Y��1�=�g|Ψ+�6�-�B�& �Gg䏋�A|�3��.��#F��Ť-�Eݭ4���b:�t�D�PWt}�|��%��5����N7��%�|�%B�A[�,�:z�*k0��ԕfi��F��f�kFި��7�F6;Œ�,C�'��p����M�*6��i��}�,�x�C�;�R;Y sO[�^���S,��4���c�I�j3�pa�;�k9�E�rj��ܨFZ�d��KhI_g*�3��)� �/1���ӡ�s��l�2Z���y�vF��r/�S,?�g�`�a�%�2���Ľ�CX�*;^~�%�� ��F�Q��cB.������q���f'�u�\�t��c��)�$W�5E�uz��LZ�.��4���t��ד�ᡔ�S�)� d�nT�ЦX�5cv��f��7j00@0P@����h�$ �"``����q���v��6���ľ��R��0�r �ڼR��Z�4���r��j����X?j�j"�j����qq'�Ym1���v��˄��7*£�n�rM'��e>��J���/P�<1����/�l� �W�M�h����R�[�Oh��(��=������S�?�%���^oB߄n9ug:�3��Q{�W��u�zOQ�8�P�$^i�S-�����+�en�l��S,��A��4��|�h��Z��Fe w)�Cʤ�AO��Qe��!�����'\/���u��e��]ا�;,����CI'<_�>#��A�UZ��)�r�9C}���0X�؟�5�b�������@�#�� FG2�v01�G�|3��r�<��B>�k��f*v�y��N�D���o�����+�ԩE�k,ntD����::Dya�����tӨ?�ިK�j�;�XF8���3L���B~��nT����O�� -�9�����W�m��n��0�0kJ��(oTD�Z��<�]���2��1ܒ�$�C���Bk���$�Z��^�S,A�/ʜ%iv"jM�dw5c�Ԩ!�q10@ !a$j5=�4e�!�M 4]�-�;�FB<ÒY����'4.U��#,���:�;&�9 #�K zx��݊�c�U�ub_��9��{��j~�BY���erI-��J���0��,�n��A��c��jUu %�� i�����z�W��m�L'�S²�,2h�-df�C��d��#�R=��&^tow2�j&� { // 初始化认证状态 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: 'zhongsheng1982', chapterId: '47278101', novelTitle: '重生1982', chapterTitle: '第47章 回家之路', 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 看小说网 版权所有