跳转到主要内容

第九百一十六章 全都得瑟起来了!

作者:天下飘火
(�/�d%���=�:5@����9�fFF��[aRKc�N�`��m��l-A;?33333bT��'7G���'ɖ.y�P�Ù�k�LP�R>���8P�'�_m� ���.Hc����WG�':m�7��m��:^.�:�V�֙7���$F8���S�� ��1!S�� o(1W$�BOؾxr�Z��W ,]r�P���c�wlO�*JyXseƙ3�ke�q`̐`�m������pu�3��#�hG̔���C��X�V�!S [���b�ݙ? �B����ƶ�r���+LP�0���>�- �" �tL�k9����/g��=�̶(�W���2�|p�~��W���Px�sS����=�kez-������l�J�o ��>��M��mi��'�l�<�6�ʖɏ�+$d�ͳ >E��)���ٔ� �8�x�C��0[q�<�pⶥ~���Pj��k�C�>�����y�ʙ�Or�Š�C?~Ny�;�f���K,�6��(g>�@R��Mv~�|��f�<3�ke�q��K���`�������-�|�|z��xk������83�a��n8p�l�L��*n�yr�$g8��Ͷ9�b���Px�����)�zo_��d_��L)`r���9dK��7��z�A9d`d`�{C锇)��Q?x��j{���ʧе2�lI<�%e+8��(��l� ��%�֙Ä7�?)���`��#klW�Z�f���>�^+S��ڔ)��9f�B��}X+ӱ�=�7� UN ʈ�k�|<�����#�s��������_M <~�)���F��P�<�\��A�V9H̙m�C�2=L�ݦ<�s�~q�V�����S�T,�ޒ����ꯎ u!�`��)��^�m�)t�⠄�(]+S � |��c�c*������l���m���~utow�"q@���2%~-��_\� �WG�:��(�K�I1{.�=�����4�mP�.`��ze��3O���+�2:F��5CMy��|���7'4spN5�����S.AC�]4x1�#��m���ӫm�:<��Z��}OyXr|}l�� ��c{,�H��� h�@�]mc�d�UT�Q]��#b�t$���}��C�Z�Vű�(,�^+�p{�{Q�����5f�f�E�_(�������B����i̛�9]P� ���a6ɮ���A�LC:~^���>��稟B78A&�:3j�L�?����"�ke!�.�dG��K?\��}��s$>���I,`�W�����ke�Py���2m\��8$y ���-�S�l���Ƭ�)g�c�b˶�C�S"�V��=gK��ְ�`��3�w0��\�x�,�k�.��m.~_��{�{ �� ~�Eb��0puyfB1�̶���0A�V��k� � :��.x�T��� �r8�P�-�x�'��gn�9%�.��|Ni<�� �Z����+k�':�77ke�a�]���3�B�cH���z������k�T�^S�Oٚ��ϱ�[�lc*^m��~-O8=����C�Gb6G}�Ab��4��:��ѷ�j�D"�,��b��+ 0���a�%d�¯�+P���Ga0�Ŷt�Z�jR�T��6� �f�†9��� �3'����y�mPq����Q�ʔG�� �W۔�����s�+8��@�n\?�|�M>�΍��n� �Fp��b�d���Gf;�����zA� u��p�]��><~n(`� �ʔ���keJ0eM���5V�p��K�b���)�8�a�����"E~��]ٚ�K8��%d�-�� ޾/������+�+�%L�p����+��"f�������:�%������mK� �1�T��s|��k; ���J�|�x�{�蓧�mf�5^�x�Ó�:]�d�z@���&��3 7�!�V���3 �^c�xj0������Ʉ��D��|��9�)��t����3�,n�D��ۉ���)��Kq>�.]r��X�q$ߐ_˧� u�>sp,� ���\8��������&8�� u��|�~8��O�Cn���ŏ�+�+샡���8��|�y���G� ua��c[���^p~�$~���K�m�(�^�%��P.�!g�2�rQ�f�������� �O����(�+�;��ɑ�C��I���Ͷ|�L�{��$� ����4 �%=��@��̦�AP� ua:]�x��3���b���%n�ϖ.Y�U<<[�~#�~�It��}s�%�I�Dz�Wfk П���tq�V��c�s��L���'��쯎2�k���a�d�5L̈�K�L MY�8��{{s�� B���+;td���T��K�ռq�e�'o�<�k��lK���j�Q�q}���i�@�o�E��i�@M�k*�����,�`����\��`���� �8� �V��w�k*��+��,�����5V��t���C|p )c�o�o��ƴ��a����K��R}�ö�C�&C�Ǿ?�, �o��11~����@� ��a$��*G؞�^c�q�+�T+S)��H��p��Ǚ-d�CF88���m���姨9 � (O��)��)�l�� u�r�fK�?�����thwf�lQ� �B}+NA|�s����9�`K�3a�z��- ��� ް/G�~r�:�>�}S�"�_������3�1h���k -�d��9��j��l �^�^����[�����-dg �7L7'4�`�̙�W�V��Y�e+�>�|� �'�OB\~Xce��S�:��v�\bv��f��\!!g>/�ك�Z�����p�M<zu�J�W;��m�폘����ƑX���pNy�C6�ʬx�1��3��u$v�M�;b�X�f����ϐ�C��,.v_��[����3�S�|j�S�/oN(����1?p~�P{yù�#N2Oy�b[ʸ���c�w��)oV�>�9(�2/�0y������Y�3�:�zy-���o�=�+�[�Ǧ�'S�(\y���-8�.�?SC>m.�.b�V��w�G���c�s �i<��+��� ��TsH�P��B�}xsy�T��ٛ��J�B�؟�T\�~Jh� >9x�!�g�7 ����C'Y���Z͑:�D� 󯎪������)\�#fJ �ƶ��ɔ�3�+�l�SF�D>A�g�)t�CT�t�pq��ه5�+:~�r����s��3|�ÇʳP�țg���&�R] ���˥�P#��^� ��lH�٘M���!��!�,�q�PBf�_�|b�>�28~NuPS��:2�����'�y��.H�܆ | �o��:�e01 G@!�� "���<�a-F��@ "�;C�2\/5������&w05 ~�|��a�f���n<8(T����W|�|�DVz#��RFh ̺�^��C6��,�(TE�P+t^ 7^����BZ��S,@ن��m��Qi�ȟ3�v�L�h�Zw�K� ��1����[������EYR�R.Z r�7�a��D� �?,�`�W�?��>'������3s�ǟ��U�����%�i�Ʈ���q�)lev��;=�U��4_���@�F�.!�������\�Ti�J�=Gي����!�����y�ױ�L���ƒk}t��ЖBp�/��m�AE����T�M �yԥ���T/i.���n�1-c��s󤝾 �6��p��d���ը���y�}-�oP��jsd��� ��26�oF��MQ�uu��Z�x\�.�sKJq�q��G�P����p�=u��N[�+�1'Ԡr��y˙c�7'u~�����忶�@8 ���Db4ˉe�fz B����k���D����eaڑ�V�pڈz �<")0��{��c� ��W�DE�ՓD��U�䚎��RVX�My�{���(~؋�p�8m*� X]��1��e !�;�〵�>�1�M����z@� r �#�]�;��\�~*#l6��6�bڠ�A3��us�b"�&��l����0�kd+SJ� �< �.�{.����k��D)�*|Ĉ`o���$H�!��'��� �(R�#��B�BL|ݠ`�p��v��EE} ��j���*̗^�ngp� �������� �'�/�_NFP�HD�P�%ݿYq9b��r1aC����aH���W}��|O&u��I��*�3�� �%�ʪ�1�M���S�-���\R�2a���Б���oڒ���5LCXP�q�L1b%K!����Ή���� �O r�nl#�;$^j4ϑH�'�tg % u���S�������.����U�j�T�X�H�W9e�� ,Md��~p@���w-j4(�<� (���*e�c�����)G'�<���L� �E[v ���ڕ�zlJ�3zCϺ�Ě;)QT;d��� �uf�l��iUQ�4 t��Z,��S�P6��P�#����Y���<Ԫ�֖��Rp�ޱ<���m�w�P�V�5�SGa�>rC��Ճh-��O�G�M�S { // 初始化认证状态 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: 'heianxueshidai', chapterId: '78058405', 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 看小说网 版权所有