跳转到主要內容

第四章学院东门

作者:一是我是
(�/�dY}]��h:`�q�H�'��o�o�DI��+$>Ml�@"��� �7n۬-��C�{K���گ�E��|�����Ƨ%ޥ������=c�1�.8by5]D�p&��=��"(���J؊ĥjO ?�x��ϧ��Lף�K��a"'\pE=��f��sܬ���� ����^���S�w:�_�����H�p9���+ag,�d� $��MMwC]�3$����qH�s�%�3�~ף��� �9�;�x���ĻH�2?xأ\�v��<���#����kB�����Q������q l�mj�F�hoOՎ��^��2����i��zk;�iG$ρ�L`���9P�`[��G2�e̎ӎV{I{Q;ӮV�ĕ�3�H�ȼG� Q����-������v%l�O�%튆=i���'�^:�00��E�1�|�|����s̃[���)�%����i��s���J��-��ӭhs`K�7������|>%� � �V�[k/h��Ӟ�ӎ� 9P������OڝvT,���đ u 7Rp�r�R8� �(7�!�}$��Χ2)����] ��� �gX�<<Ӯվ�8�rK�ęV}ҮG�Iݲ��q���_��&b l��+ GT������(�7X��ڑ m4��\Ҟ��1��DF\�e���8��]����s���!�;%���i� w9�/ �#�d���[ž�y�����#*�0�KuI۲] ��?�9H���t��t?�f,ʭh 򴣂ފv��D܁˕��&���í.�Q�"�iG���v�~jx��'K�w�Cq+�^:^�^����le�����.�e {L�˧�#K��V��͗��\I�� O;B\C��}�� ���H�%ލdH�����NڄxE�#�E���v����4�r;�3.ik����5�� O;n��GmгL>S���o��Xo��v��-����rт ��vCOF61F س�6mI��0Tǧ#�k�~Q{�.��J����)a��|>L�嘔��,� �0@�Ц�M�ӎ��6 <�P%T8�!K��ӎZk ��fS�g�[A�i��vAϷ�O��Ԧ��\��v%18L`���[�o��� i\Pv3�z$CR��_�P�Q`��?�Kip��ؕvd��-����.�L�m���Q�S`�Gr/�W�'���%�=�#�_�x����W��4n�s�s��3 ɐ��7L��`Pv72��J�VzE{2��0ڦ��Ym��'#c8�֞ ċ'.n}ɐg��M1|�wڱAQ��#�{����� T�,�p?�ksg%|�e ����{na��yj��u?� �?��""�lar+k��-��T�y��6�5|��y��J���3,.���a�a�0R�A��8�J�@ � Eu��@Pa�$�db��=��[�� ��rߜ@�~ܜ+ji��\>��'��mE� ���a` � �=%&j�N�M��AʔDL*�/+K�@��'�J�㭫M�^�8�8��2�EV�@v�e�{�x]��5J�cz��:�}�B�Oˎ��6[���O�1��ݼ>����Z���\����Ȓq1roK���n' +$�nֵ�2V�v�!=��loJ��ɣ�w��f���DP�PR�&p��ډ�)��VĂ��D���J�q(P���CQ��h��<_��V�B��IB>��&�j������t����k��Π1���3�M�<��?ŢG��[!�[᩽����ωc �����t��4Iw�[���b�ܤ2PIJ�Q���P�̈́9���[}�T�\�/�!P�x�������M����}"Z�"����Y#��f]�(�H��/�������m�ς��Tƃ�aWQ�R}�B(!4ad��� }�~��B � t�A��ԔAeN���(�Oo���%k=�y�<�` L����<���ݺ�t� ���* { // 初始化认证状态 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: 'donghaixuangui', chapterId: '12186456', novelTitle: '东海玄龟', chapterTitle: '第四章学院东门', 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 看小說網 版权所有