跳转到主要內容

54、54

作者:关心则乱
(�/�d�=m�j��H< A�p&�;wA X,�M�J�Q�zh���Z���������C�J��`1Ԏ&D� �~vwa�oғ�V��B���S���%�t隅Lm6  {+S ���I�Z�c�������� JmVr@��1��wKyKY��t5V��ބ����R�"2V�V����~��6�Q;�H�%�/�=!/1�!�I_�� =�{���{|�Xj���MM�pn�a��M��о���>�ܰ� �°�㐐�z7��?�����iÞ�%�G �*�P/��3�#�ZW,��/"oB7!�,dK�J��h|S2tS���u)�W_\tv5V�����f#$_\k#��2�ԗ$MmVD�`��3�o�VʴP��O�r!o�[�Wt#�rE����N�Zrze��P��C��/�t�4黵�����}#r�,'K|W#��.l�&t���%�!_oBW��u�MD��d��+�Q�E�c��K�=M�*��B3��+SF� �#oB�g�쩮����ceJmv �3y�&mP���u�d�&���W(��@�/ҏ�%�O�RH;9/�kPt! �PtasVH�d��'��d��^�cu�]\-!5���:�dѻv��b܋q/�'�����S��S�?8��hj� � ��\�X��Yȧ�)�Ak�!!�"�^ך�Wօ�=8�!�;� �����f-\oB�F�,g�$�W��ߤ3412h�xv}!2B�Pt#��IT�:�4�SH� zӜ�9�3]�3��ӈ���W�t�*< ��q ����'T$A3���q��+S�������6�5y���� ����d^F�%�be�����m�N�(Gs�m+�v�y���� �f)4 Y�n��}S �g��E���%0h��XDvX�����Lkg;�����u�����˰H�14WƐ/�oj围Gt=���ibd��,V�$�%�[i���d< �z|�YKdF� …|}�y#$�>L�^�, r猶�찺v�Z�y@ @�}mP�tS�]_�_\�^_!c��^c#�Uh���I�א3�KB܄p���[D�h�#k(��j�$���9o�a��@|�LKΎ����֫V��ήެ?jk��&m���\���Io�`��%���Zr�`d��X�]q��f!_L�Pj������FH��'!Y���c�‚�V�B�ߤ �[)���z�y@5�R���⇐G"��&-�����,QOȗ��!�K�����碩��(J"����au7��L���LD��^���<�:Cp�Ece�Y���5��9c@��#$�.!���6>2��Dm�S[�n=�o���X�㸉.^��t~��h�����.���f���L���vV����ql +�z��d��x���5ɰN���݃CS[uD�JN���@�q�t�;���̍�|�P���ߤ;��2(���R��qj���ͿHW!+J�X�`C߭ߤ#ceJ^H�-��&=��9弞�f![D.9kR���7A��#$0�"���~0��4���e/ս�!_��[�g4a�����q)�$����W�T�jM �*�k�̈́�Q��Yȟ��2�h� ��Z3��l$d�L-�����&���' P�L1F ���=� �qi <݈����f (��P�#��o�6wr��j �bC��-䁯;�k炮�*��y������T�ɘ�p��.���Cq3���� dX�LA�eɞ���zB�'I!Yr:U+����.7(�Y�d��/��6[)S�b5�c��;� F�� �P�r�c]�,V��)]P�C�K_��"�8o�:�u� Y2�Sh���hI����7��8E�_#Wʴ@��ڬ�:��]�xR�$�bK��HZrz�Bdè�I?�#$g ��L���{p��y��?�S��g h��,��F2.F䰋C��P6/Q��H� Ћk�tˁ0ٰy#�B��r`9[�� �%�n:�be�5i�VF�!��D�;B�K�S� �gaF�X]�r/Q�S]��/B2h��y��wE�b�f���P�и�t'�D�"r�Fh�"r�LIR�[��^$��'U�p��'U{��!I�����6K�t� ��s=��B�J&�e;�;_��82V� ��KNE��͝W�X���ɋ����,`^�h�����z��Ջ8��r7�kg�±2%I�I��f+[�����Z��&��P��֐&-�Ή~�@��X�~KmV4���tOuk��M�o������5]����%~�P�t�� �Ryƀ ܄p��-H������ ���#0h�k�dj���}1��`��6���f�Bƃ��0�Xt���4$A {�x�z���zX�h��|�C��Y9�X=B�Yi�8red�y��nC��:�C#${]3H��Ews�{][?��<a�֐%�_�;�IgWKN'kojg�� :k����M� �P-]�@OJKm+Ӆ�dm��i|�~p��e=�uX�E�:^C�k��]V��-�)��J��,P@O�}��hæ�,i��xҬ�L�.��v���_L֨&CVlбz��Ҟ6��.�Y���=�2������a��]H��)��*�� D�]8�P� ��.�:9�ƀ�P���R��D�`�{�~t(V�����xEȑ�kgIR[ �fK� �_`���).g�VL>A��$�ڸ�c��NrH]�x����t�t�s��M����\*t�:g2b�I��)�@|�A��.8k*�T8�C!;��4g��� #S �VX��0y��]ӻ׵�]���8b�Gr�hC�H���&`��@Z�;�k�2(ras��[ᜀ% ל,��d��X�$�A���ׄp)�㇋���n�黛�`Pj��j����[�[�аz$�H|!r����^L�X� l�LWS��L���i���4�ZhK�H��h�#�A��z��Z"�#+[�͍�Lm��A��?("��ɧ�r�&Ϯ�D�!GH&�"dI�&S� �@=#�,��i��*����`���J�g�cu�ȖI� [����39сX������V�EdIƀV�5��t�r�p�����"�O�&���>��A�N���J�����'sI滚��7��-�\����bV� Q���z:��e= >��L�x��Oьҭ�!��,�U�A�ߦq��I�vDZ��Ez���Q�O�*�XiDV~�tI�.p�IN%$��Q����1�6�,�l���y"pD[�E�^���:D(� 6|Z.cC�->�d��A��ڣ�� ��$��ZE5$3�~};��m�`���+i�iE(�{P�d6sh;�T�pL�)V�#��}�["�\���Q�2^ pD\ ��Y�t�G��@ԯ(L]��j_�Y9�d%�@*���6�`;(A2�MF0V���mqK Z7���cNq�l��� .��<�{' �ڇ\���!�INe��>ʏ�����'�[��-b��LKزz���ON�mA�Oq�7��/���>@R/�~\r�*�?��X�����-k� u�������k���bKi�VqTLiק�*D�Q�`N�0��0�٭�3D_a���yL|�2C�D!�0�~��} ��ni;�����%X>��\���Ox8��hɒ��S모Cfƕp��ָ'ɨN�ζDX��^k�D�U��M�Xo����U��b ~N��Za��9�1.滗K�3�A;�8�n�;P�i���+`�H���hD.�x ̀�}_[B�2�wn��óD��8k�X�{���;ϠiJ�8 ��f�TI� y2߷�$��������^{�x+[�����(n��\)ڕ��%�*!�m������88ܣ~�H�Fj����'aj�䌓�釕REܔ6Ʌ�{=�� s/�E�m�MC�:�"a�/�@��6��G�IL<��Dh��݈ja��B��?�Ěу�����z2t.ogs�?y~�?��/��� 9/��! �R�d'I1�7(�٩�u�k�ǻ�w�D"�}_�XY��� *jZ���E�,�B�&�"� �J��޼�Zm:�ƃKAsq`����ѳ3���W0+�6f��d�i6�OX(Z$2�Kv- �r$�vP �o�}?d�ߣw)�K���i�2Z��hM��B� f�K�!��9����wJ&��-��� { // 初始化认证状态 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: 'gelintonghua', chapterId: '6810168', novelTitle: '格林童话', chapterTitle: '54、54', 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 看小說網 版权所有