跳转到主要內容

第46章 一次就成功

作者:谢客
(�/�d��h��l$< )���;��VvS��5�B0S f�Ђ�YQ7��n-���p��� dHP>/4 �+������Ý����{ �yQb#0�hdj������l���07���uV�ewJ^���S؛�*n�l!�^� _[� �52���T��\L�K�z���wT��� �r^k�����6�U��4b��/���Br�ח�z2��?�zĸ�O/����s��M�]X�~�.d|�T{ �\�� Z�r^�ȋ�52�X݀�� Z|�L�4yA�iDu52�|��~����u�������G�C�݇*�P� f�����Z�SL@��>S98?�%v�y�Bͯ+�+�����)�Pt ����T�����5�Juj1���V�L��u7"[���Im�L�8�Mא���A�@'a#��T��M�?��0����rW9hdJ�4�u��[��e���xe����x|��Y��r�.A�u~ '��[l���$��{����{G���'|�1�F�!�ݓ�W��7��z���@HT���JR|!�ll�ש ��h��J�/�xg�52U&�Tz�5QW#�Q�r��$��Q���7}OB�F�۝�ۮ���%E�Fx.��>������v>>���^ו�3O��F��s0f� ~�v��|9�Bt9G�n���r��D�$Ь������52�"�U��]/J�0�5j������\����;*�N��&%]eu�Vx1�5�̟��#s�L=�kE>��ʋMa�*�g�3@]�3{#�#s�Q�.�x��ri]�Ȧ�^ק�l��ѵ����4��Žs�׏�JFl ��A��[���ut��:OT��w%{�Nq�Q�e4�h�Ȣ�F�V�JV���3��І�E�=MJ�1��s52վF��:[�px'�9%k�\��Pm�����u�GcλU�dNº�825@���*=b� ���͑b�`yG�%��*ff_܋�ET�2����"ؙ�A� ˍʈЕ`�U��C�M�:�3�V;%�>���M�Z&!��ь�z]C�)�u���rކ���������/��k��l?pjO����w�ʗ�jdzZ{��r��n� �M�#���U�)y5��5\�i\#S��`���x�Fe��1����F7h�1r�zp��BzG�|���R�Mh4d�e3�S؈��( �"��O��Z|#r�z@1. vi]�Y祅rWT������rB�?�7�52���Z[�A#���=�\�2�⢒_�#*N�W�����S-����|�!�"���d#� Oq�r^o��q���ѥ�j�nP��Z#S R|c� ޟ>�U� ]�rF��^�/x���#ҥtӠ�ꁓ�G���A�Z��>�]���`�����y�:DFUІ�ۄ�t�u�<�>���^�/-�ὧh�LC�)#?D&�R��T��=� ��4ܑ9��ʠu ��<��Ѷ��^9h�Ž7��52�:�5(�d�"l�LR7�p��l}�����קX�=�"��#���7([a��e�:���H���M��l�L1���dЌ�V�+�ʍ�g�Îdoe��E؎�5H[�Gh.���l���M/�,�<�2E�`"W�W�V��e�r��I3�#�e^k��X���Bz��G���ȴ@tl�L^���r�u�p!��Hs$7*{�?h�gr��tN��� Z#��� ѽ�� �T6G��8Ӊꁳh�iD�vO�������*oD�`�UF���ܪC)#�*k D � D�@���,�����{R�²A���� Ɛ����1HSF�:��b�F��I�q�Py-�'H|a^��{q�u Z\���@a>�+/��! EȠ�k���w9�Ư:wd^1�J]��ȴZ܄��4�P�~�\U��u��R��Ci�Q��ʦ�5����>%[˟ʍ����/g��唢A�U����A���Ho,��r �����v}q�P��/ٗ ��r$K0�&�ג�yKPsJ΀~#2fv�lx�/A= =r^Nɠ���T�;�zݪ�)� ����*����-��bv&���= ���/�/gkP�6�^�zIbu � �d �(�"��U�í�]��s�L�OaK0��^�.�7@\#S�ț��o�52ET��b�0�z]�|��r�y�V9�lS���7"ۮ����r �k ����Ž�k.� ����W�B}D�2�e��y <>����לF�0>��7F�t��*�*[g[H( ��w= t:fv�6�5�� ˦y��ʼn`�Z*Y��J�Tf<���O��ɟ���2uE��ek|��.B����M�c�����{����1b�0 �� 0 1a��(Qh� @i)�*ͱ��ܑe�J�q����@;��X���G���j�u���=�G��� �� dM GVP[�6bt�4c�Eէ��#E�X%���Q��(0ˆ�I�Z�E�>��O���U���'@'aA9��R% 2)}mA�����DYK�(hZ�ڨ� �?̥� 4���� C�}��CN5�}D�ٮ�)"� �J��^j��?8��z=V u���TXʐ�d��/�b�^�� �7i��Ό3��X�a��c,����J6V� �"]�� ��@�.d� b�FQ �`�C�K ��K�L���Z�@�F����������/o�c�-��� ���f�-�G�6��Ί�G0��J�}�Z*�`x?�Tڴ��Oge4d�q���H2fPMtF�y�+��O���D,�2;�����3L#$�-� Ɲ�vP����@� X!�ILO���C��199�ӳ2q�>��%�'o��T�)ʩ*w�%)Hh�|� a,X�N>���;���' ���/͂Fi"�#� ��pS��c� Nn=�Q��;��g{�3rҷ� �Y� ��BDJs���~�Q��;�5VLK���ѱVġ�Լ���x��u�ӛ�Fr/z�^�k���r��SK"jG�� �C7��xRJ ��c"Ӓ 429�*��Vdz��.9&R�F|g��v� k�� ! l/�s�A���Wە �+TW���t�tS�H�Յ!��T\�Hq��m٭p�l�ZN���ժ�Z,�b��d�7>�0�02�9�B�R;��g-� (�i�ʄ����ۛ+��'���~p�p���i���C { // 初始化认证状态 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: 'zdwz', chapterId: '11658709', novelTitle: 'NBA嘴遁王者', chapterTitle: '第46章 一次就成功', 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 看小說網 版权所有