跳转到主要内容

412

作者:拂晓茉莉
(�/�d�.���7�960S���f�i��PBA͠�0�P�l��5Uә�` 2����q��y��y� ��n����'�}�\��D&I~�̀xGd�m,�v&�"W��D#�1��� �� :�yy�N���A�����VЫ��k�Zr�j�w՜˭:��S��x�,4>Q�Q�+P�9�(�E�VF� ɘC�a�]��Rg2^�ڡ�5De�ګ�N��w��L>,���B_�s�[E�(��Y��V �IsE�U}94���R�5������͵�� |�޸:d���3�1�]0����%���Wk��Jn\�@/�� �w��S �U����l9�+��Y�jJ�\u�PӋ���̳�7쟉�xVAu�K���+��E2�����聯��d��%�� �W<��\ӳ�~��$��HV �����a�F��V@���)�*��?�O��@Q\3K�y����O{�!�b�W y�����P�j�F��L�«�%�dL՗�ެ{�A�������`�E�E��ZS4��� ��P1K�O�Ko�ُҙ�Hc�O���ҊY�j�f�%7�<+�~������-�g�����6��ު��Y�)%q�|vi �"P��E�m$��b5���\Սk�̝� ��Y$[&�,^u�"9�N�Z�����E�ǛZ�ݏ�V��µH��ޠ �R0����UgΟ�����22i�ǂB��ted }�0�;\�j�6,t��NZq�|TX������z*���˨C�/�W'�%W2QݸZCْLW���L#^m�@Ҫ�&jM�R��"�� ���Md �B�N��.v�:Du�z���]4�����\>�2���Ȧ�S �?i.i�ġ�ɠ�!� נ1~���j��{��'� Q F��Q2^E�Ug=���ʞ�[��}o��,A�>J�RR�V�i *B<��"��,��N��w�(�`�ұ��8�q���N�hfI3�舌9� �{�A+�l����;���,Ed�E�h�:+��<{~�g?JOл�IJp2b�̂�e��X���8�T�����N�v�`QW�8���u���I����r�.8� ��Z�l��E��֗���WCZ��p�&�^�%I-� �GWN�.��2�R���M���"���x^m蜶�}nF�7!��\)��.�@o�:�,�󑥫�v2�s�7�g��(.�4(���؜�yfaY76/���f"������\܀����7��+Vw�>m�f�@��k�\0y��$A�R���ۭ:���#i�J�[�wC@l��#��-���J{qw��T�`<�^u6ۼ�_�\.��;~/5�3� �F �$�(4��Ǐ1r�@m��Ni9�/`��x�$rE0��ɒzHWlA���l�8`hMv-�E����G����:���=�;~�D�w�܁�G�������mn�2=[E��I�p (�#�J�f��+A��P���~Q��a<�鄧7���[N���b�4ȫ Sx/ ]�R�����Ȗ�1��¸hi-�3�4�b�,���G�F�)ܼ��&�A��%赜,o㍫1ܫy�k�v��N�V�e��h�V�9^BxQz�$R��B'0[E�IR-�2<�@"�����j��� ��4��lbgr�!�1�޸g$_��<�ꪳ��-5e\��`�7�;�O���<�Z��^R�d�JJ�!�"]3K�uN�OBT�'4f�@�r� �J�s������#������_��$G/G\q]�� �N���%� ���-'k�_Z����F���}�|��6~g8�ViCTo"'En��*�.�.5�X�,d�մ2�&�2Tv� 1�,'��=��LF?8_u��.���dIi;�+c����W/@$�7�2� �u0i� ~�O�[1K!�'�U�H'�G��cjOi�k�w��PH(iYBI)���y�\|�ܭR,� q�G��5���#��b}�^y����­:{�4�]�^ ^��|y�ؾa �=%�R�$�eW��T�!q���V�Qs�v/�\Q�b v�|B��J�V�77��w��G��4h�ҕb�KZI/!�d��ڰ ��DZu��s���՛�1����7����6wS`����)ħ��<��"@K���?�1H��B�^x5�2�~Ri�`��x��P% 1�:��B~_�lAߙ�}�A�ld��L�\�U�Q��ޓ��u�#�Ê&�9��L~��(y�u&����[��T@۱Ϲ�9�;sd��d���UP=o���|�&�u�&2G�T5��^ z?�U�{�Yb3�f�����҃�e��&򤹚Y2�B 7�-�v��y����HZEV�*kk�"u�H����^>� ����J;!9���Î�a�h���nH��\q����1�T�N�v 1�'�!�H��nM� ��5�=�!h A��+DF)���.��#�l䌧�Ш�+ �5�!R"4# "Lu?p�1&��A*�)װ�*�@� ��Mc� ��֏Zn��H����R�#��_�0c�k���r�b��&�&61g��a!���+(�T-!9w3�|��d�f��Ю���o����W�b�� ���$�K�%�)'4��G�V+��r���k�p̽o]vN�g�*�X(��q��R�]�" C"{t�� e� �x�����^�nFꚃ5��M݆�� S�>�F�yV%��ӏ������UϽHA�D�qR/�ݲt�u[�a�K�"��Gс&hהa�<�Hg�*ޘM �&����Z�Z ���A�Lܭz��ݵA�q�H����?�0�2�� g�t`����@�E�q��6y��#Zz�z-�݌�n&��$�ש�N��ƒ�.l�\;8��ޙ���V]�L%� �D_ լ���b�A��uA�t1�`�:��5��t�|f���s�=�g�Y*ɲ<��9�VJ`�q�A =��|�1�f�@��|��0�> � P!|S@��:16�!��[s^r%�� �\M�#�9-����n��ma�ę�cN"-;'D͖�qUܺ����3`Σ�9��)lC\���C3�4R �#nRL>G.�m�Ğ ����&�AL�QwS��4�8pG.v�"��2^��>S���q�ɳ� lb/����]$G~�E�O�!���m~:����� ��-�&���Y{|��? hB����cA%��\���j�2>H�)&q,�HV�����Ml��W`K�)�\ .M� 7�\������.;����Lڸ�?��QZn�J=�pf�!�T�A��@1��,�Ǯ}5*� �QeY����(�|!��br`^$U�D/�P4��l]z������L .� �H�~���;y�'���d�s�3w�l؀�`a� Q�iD�چ������ �|')��4� ,��K�62M��q3�z���6���ٳ�^���0�2s�=�N���TP ��P~7ǞX:ug���?�� T��v��8l� ���V��R[X��T�׬�b�hE��~��L�)��g�;K�Ռ���W煠^�BpE��#_���P�X8U�H�5w����1�kKϴAcRU�@��Jw�s�e����� �%�� �D�Bƣ��Q� ����g����Č�O���h �9P\7j��JF�U���?�0��$rQmm�g䇐O����#��Ρ����N�]����%���-,x-)��L A��l@(��79�ӑ_LGr�$9!w�����4{;&.!ڔ*��p5 �\ ZΫƄ$��‰��U\�^�����fun>'?��g?/����,����$�����M�LhE�����, �D��~���x&(�?<',�V��J�y" q/.Ør�~ 81�.3��=oT�{� Kڑ���(3&V�2�,B�r8��ʹ,�f�Fy�4%�� ���=#w��Z�A���_��'����r�f�s��:���u;���ťJ�v��ީ��3-H-�|�!��K#:�^�2�9dլ� Ha�FU��q��3�(Bt�K���:�3<�^�8�lA������ u^��׿��<� ]�gU).�赝�bh_�Uۜ:��|@UH0�$`���-�*� { // 初始化认证状态 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: 'digui', chapterId: '86401700', novelTitle: '嫡贵', chapterTitle: '412', 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 看小说网 版权所有