跳转到主要內容

第206章 一代新人换旧人

作者:扑街也有梦想
(�/�d"=w�ظ)E c �{�{���O�'D 4����Zh�$7†����L`7���&�Q�8���Z=��?��ETU]!~��U�&�!����%��qF�P3�’���ެZeyFؙ��e�l����%"�ئ\^��䩏��9d�~%�����/˫�?���!�m�3S+�CyˈO�G����_�'$���r+�ƿB�����I�=��8��!���ߔ�D�U';$�|�<���%�� �ޙ�Iê�̊�#�/�4:���LA� ��8�p �c��ͪ�wf*�a "o�|U�}A1ꐭ��o�g(���خd{Y^����+�;��e;��(o�O�({��X[��J�p��v]T� a/˝���Jhxqp"�Y��bmufJ���m1�f.D����2��x�b� �'�.��d�6��\����緒c�3S�� �pp��Ú1ۣ��OF���l��ep�4�ţ�[�+�}�?�\���;3�◗{���n�\��Q�:,p�vYם8�#��;��*�����M�_j 2�e��r���y}p��5�<��f�q�l�l�杙V\xW1�tY���4�f�e�f.� z������:X�b��ȟ Q �|W�݊�pЕ+ Oa�i��L�|2f�f�u�u^�ᮃ��+٠����=�l���^�?��ߩ�@�(uS���q���;%<� N�ڞ8�(y�ezN�G�=�Y۟��j�bk�^�l�sP�F��Ի� ��R�3S�vveҕm���%?0�n_�<#�孔�龍1�/�l8«A�it ���Ԗ����dW�3?Tx��Q+�3�Q�߬Z4>�Վ�V��*}<�y ��g�wT��rѳÚK����3� "P`��� L�[�G�O>w���� 3B^1�7C������U�ү����+� |M�U���R[`mi<� a��30(0�(��dԫ4_�6�A1D�Մ�}�+����Kmy���A�J6X[��$����ޙ)fu��#�-2?��it#C�� �� �����\Y�������~4~�]Ot/(���>iX��c��̵�;3�`>�yg��K��eY�-��?@�9���LG�U�J6����F� ��� �j0���G�� �m�����>�0�#�W�Ws�=��@�xx20d�Q�(�v'qGxW,|Y~� Řm�xU�+�x��3⟍ N\�y�t7���Q���Ht�&�w��r>".�8������(6����zg[���53��T�,X�����/d3�b��E��X����y:q5�f>��� �*�3���Jg{GxQ�l�|Ӑ1�`�0�1���(�PBg��@� %��oj��Ԏ~�`�LY'2*0L$.�a��B�s��5 (P�y�L�@� �ں*��d�%�n���@�Bg��t �'���Fv�J��Y�X[�� "��r��ͪM�>&����|ĹI��Ɠ/,p�\"��g�u/��,��@�H���/;��zg��k�H�Y5���&~�y�q,��L!&�9{"q�xS'm�}���䑲=�Uew2ϱ�D��L�F9�l�Ł`mI���UG�[X���ƓA��h�Zy��O��ݙi�N k<9R6��S�zXg���7��xr�l���O��2yD�*���.��;u�#�%�0�u�J���_�;3�4�d�X^b�C��7f*�8�K�ܩ��%|P@|�@��^� Ha�6��L0���F� 4�:�O�ȶ�������� ��&�G|��\٢�{g;$29�^�к��S�Q����so�,o"\�5O)�&�ĭdw%�`ޙ�'~��%>�����9��Q?A~�<4S>��V,�H���+O.�:3]�Lm��Q�Ae��\s�Q���#ԋRWe�;3 y>�p���D#�������Ó�'ڛ��l>���A�l3̷�?��oV=��>Ar���M� �ެ�s� ���p�:��G�r �U_:3ŀ�b������it�l����� ��M�㾒MrN*�M����\Gx���U�[I ���0[��H�?���%m�Ht��>Nnm�,ή=>���Jv���9�����uG���\�]���J�G�G�U%���lom_ݗdGX��?~.j���]��(�6���s ɿ�9'��O�����|�}�c�Ɋ��H^�cy�� �� K�}��F���7�b�/,�)��3 �m^p���!���"i����+B;�1�#GDY��]��s[M��E�@cd��~k��Jb�&�}u"2͆fIJ��>�5�&�M �PDi��:�1�M�$X��^E��2;/8).�� u����l���T���_ӎ�r���Gt��<��6�:�gh�W)ѯ7�3r��6����F�B�b(s�Ņ�O:���7e����f�RG�͵����Л�5l�F6���^��)�o{E ����B�X�9�ֶ*��`�Xd�Lk�x�ҏYy��㉐��"�E�>PU]�;<&� 1��,� �e�#�T"Mp�?��ZW"Ff{"a�����K���ց�V�@uCm�ל�'�����(�)e��Л��h+`^sP� i�2�6D�F3�D�v;�lb�/Q��ZЙ�u�^��p� U��K�I�~@��M�Q��-Y?��~�w���bg�) ��Ɂ���B�����^IL����p 7vi��iDDTC5�3KA�*�"!9����ﴅ'��H*%!F��i�5��L t;O���3n�8&%�T7���H�B k�?����Y�Ҋ��!�3&����xw*�B0����J��}foC�u�в�K����}S�|� /G�ӍtL�30 { // 初始化认证状态 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: 'cdgjzks', chapterId: '30784663', novelTitle: '从大国机长开始!', chapterTitle: '第206章 一代新人换旧人', 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 看小說網 版权所有