跳转到主要內容

第1章 第一盏灯火(小修)

作者:十三春夏
(�/�d+'����8)8@���9砿��H�;%5�3&05�G�,10!�l•����:�Eu��Jˈ�U��b���~�hq{��`s�I��@E���'c[ jf��ۗ۞�C ��_��➲)go�ψ{���@�]�pf������4�����z m�����噹b�_�&��n�hs�:��i����\-e_Ⱦnk����X'=~�pg=�l�r����U�����I>�z���<綽M���?1��f��H3�l��Ӑ9:��= �5�ffs�,?�TH�E�E�/�2�[$����â�ΧS>��g��pLٙ�J�<}�fF����/�����\O޼�̵s`k���M%�ew�z陵D��g�� ]�<���O��S��7¼=��Q6���<3׈Af�_�<$� � i2Yd��×�2�)�^��͹ Is��`҄���_>FB�ۡ��0S����x �$���>̩�p�l�v�p����晹j�;�A{��k�6u�.a�v�$qσ�Ҽ ��ZHyt��{҄�����M��y��pkᓱ���&����` ��&`m ����{�w�w,�p�B��S�~p��3{26�s��;�3se��l��u�p�����-�I���o�c���/�C����, 3�sH�' l|3���cڃ�\uf҄ ��zf��U�)�E���&�<���Ë�K笪��@L��Y��\#��rz��Gp:Z� ��s;t�3�_\�i`�uT �Ӡ� 2��2_�O��6�>� � hf���]�<�����o$$zf��E�Sd_��gg�*}$��aI�� �g�fWi�X���S��o��X��6Y���M%?P/+�!�H� b,�x���â�%�:;� � ����k����D?�2��3;�T��3s��log '���>#{���ʣ�?��0C�L�]��M��ĸ�:$�^G�>l��Ĝ�a9zm�U����g�*�` u/����P�rRl���՗H�)f[ʖ�M�����AŮ' p�}g]��67@ޖ(�;.>}q�C�r�Д#d����7b�d\��RPI.��\��1%� � ��ʤ���c� '\�p�y�|N� >qT�r�u������c񎣎Usq��N����A�J3Wb �A��*I�C�xHtE�S�Sh7�&��ܾ`�0c�8��q+�"�{i��u�m����Î���ec>o� i|��w��i`{�� ��N86�fQ��������7�g�)��󙹒�������I���sk���-��� �i^�}&r��9U���K�/��$>�;���ޞ.>"�%�g�o����|~{;_�R"�mo/���S�c �\Z\?�`{��� ���7�m0(m{}�pm��q��_�2قji?Eqۢ�QN�MVz���a���ll��Z\oQﬧЦ�m��sL��t�s���3s�0T�� q(yHJ��=�؃�� �-[��e2�ۖ= �FuV��4������g��r��١��A���dl�{�{���������Xr�z�z�z�U�)gSdW�?PWT}2�Ωr�p�&��>�M?9�NY���p�z�u-!:!��W�iP;��ЁK��>�Y /��S��� qg}�}ս�L�Se �@nok���y��!f%81Ě>L�0꽅zf����)�)�[ �\GܾSN �NY!QKSE ���|⑪�N����\�w��� bJ�ǐ�,�a`-�p�` �@\n"�_����C�/��0p��Ӈ)�kF�`s%m �9�-u�p�tM�����3��WWxVQA��<3WB� ��?3W��������h�n��7)��"[��+吕G+SdG�\@9I�nXQ��G�K~#�n2Y9��t�� rf��R���g�*J���+�c E< �0@P� P.�,�u[�! � ڃ��l ��&2Phoew�C?�4��\E��3[,7��#[Q���r{�Cq�56$͎�A:�C�[�<>��H�pB&HT�lH���?�C��)�rv�̢A��-�\�.� ��0lb�m�s�z+=V���2o�E�'ӟ[&�Ӈ;��۝U2��&�A�8/���𙹂*��=�A������3ېCε�$PF>3��\1���s?1Ӈ�[&KAE4�B��S�Y?)�"�y��.=U�p���LV��]�yfS�1�N��w�\�F9I��a��/��l�X�2qt�MIb/0¢�����/�ůͳ�C�[��!�Qv��\a%�@����g�a�^L9���wR�*G8�Qvf��ӳ��أ��<}X���+綽���S$W�ҥɔ��E�|�<��Qh?}x�p���F �~$>(o�s��*�?�� �`�G��5����Ӈ!�O��A݀���L9;~v�Y�f�Za�ĚO����VP����6�r�=Rp� �>LV^���R� Y��%|�p��'�-� y���=E��}�N�$�k.��x��Ӈ��# OV~��RK�{�Y�q�`g"� �Jp�s���3D���# �5�!��H2 �%�&�0%�u�0$�A���8$`B1�y:7��hP�cʞ����UY̅�n��� &4�p���(��;Z �@1]�*PU�5�hȏ]�'q�'��q1�2;>6��)y�Dkh�b� �Z�Ћz��2k����X��|�r��Y�A��BD��P���oTqKԲ0v� �}��!dyF��7(�b� G�|iO�I�'Z��!�����a5���,�x�澌��f_I�=.��r�X��}*c5�Яţ��[ ���ƚ恻����|��Iqv�����uXp��Cȍ%�kr�]����qkƚdP�*q(!K�0Ǖ%�f��|%�N�eI�#�Ai\i�շ�/j[d��K�p���1�ؠv 7y�S-N��!�X�2$��� Nx )&�kc�%�2D�z�uT [���K|Yʨ �����MCA�+Rz`)dfp�{���-�.�������q�����U�Y�@�E/�o����Z���>�z�%�i����, { // 初始化认证状态 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: 'tayudeng', chapterId: '37503720', novelTitle: '他与灯', chapterTitle: '第1章 第一盏灯火(小修)', 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 看小說網 版权所有