跳转到主要內容

第209章 我又不傻,我真不知道

作者:新丰
(�/�dU�j��+2P+���9�?���^�~�3"05�Yb� %E��r��4M�4M�4M�g����C�T��̦��E�M�hu��—�[qO�a�P`���^ /�kQ��ud�s�(�u� � v����%fX��Ts�������F�H�i^r^K�Y�T��{���<�(��emdR�^�ŧLg65༣�W��_�a�A�M�3�b#בC�tv@��!�Qx+�)hi�ŧ-#*�brWp6m��=��̦�����[ \P���*೩��ŧ˩�7�fX�@xqmd �7�W�[��1��h����WP�ٔ:�ڶJ]q� x�[��\PІZ �#1�9y��6vy�j�z�6r���J�y�zfS���c�c#�JWr�D�V�/�*����=?p)h�d����s@פ��~���!YC=u�̦��J��̢ÈWLnP�{m,��Io�� Mv^19��5�ӄ���:�@�h�&���>X]G�l�0�2�y6 ⤰ b2 �3�nԤnGћ���CJ�lꅗ�Qx>�^m�m�������9�>T4Bkˡ &����`�ay�h�V�?3,gX^1�Q�Ӹ:�J=ҚvqÀ���^���=V�Bl��a�A���������y�W܃�O!gX�A�W[D�H��p��r�2,�.�|���L3,瀮���伛�E�fXn��Z�R�ā��U ڰ߰�9�r ��ɑk�a�%�}�\D�h�6��r��?Ϗ6�`�:�H�m�y�}�}��0� ���D�� o���,�ġDS>�uO��j�ֽ�Tp�&M�E��l z��|^^�,Z-��R�MO�t���9uv���)��lZ�|c���/j-c�so�8Q]٤PE��OH�Њ{E/�5�[qϰ� /�ф�QF|B�伣�~R� �n�Nu��`��#F�F�@�ٔ��ފ{��$�9�f,:1�r��Ԯ��:�CD�@x�z�@xfS�s�����&M��Zr�6rH��%3,'(�br��Ҽ�݈����$ɛ�M � ��\2Z9�q��$9{8iC9���k�z.��ԓ�W�X��"%��x9���=�c#c� �AZtp7�.Gt�p J�>�ġ� �R�K�����=V�7�_��L���.'I�LN�_?�9��3<�H\�lPr�p^�X�:7)�"A��-]q/v]-ڜ�ЙM��)�2��%g�����o<�$�*Ϸ�I��[D�٤.A���E��Gb�آ��lj@)�g� �k0��:$�e�O_^q_&�<4C��Ģ���G(q��G�P���t��K���d�ud����9�ׇ��;T F'?´gd�ؒ�z.�#�$f6M4��P� �;0��(��̦!�m���2�[��"�ٴ�^!v&�����L[}�tM���Tt�nɖ &����Kʯދ(�Qa�%Vg6��:' �P��t3���k!���5I2fd�j�<4�}�r �����]�az\��9A�hɞ�;��H��ӹ$��ȅRs��F�l�!��hŽ�NPr�d������p�3���`:��i�7.:��Ct��]*B��z?.�2�r��V���$_�w|�j�e�=�%0ofS�r0�S��%�����:��2AK�{.�#���Ȅ̍�R�D]β���!%�#6�0��L�'�g6��h.����&u��&I�:�iC�����M!%CJ�����a�!e�[�&(��br�~����~`B��1�[����ay�>�<�C�����t+�O.'��ǚ��I���Z�X�еJm)pB� J�prd�d�{�s�*G�<B�����<|�k��`:�x����� �f<\D���r���@m0Yrv��wL���+&L(���$�W��'�{.WLʹ�.P�u�u��.!s): o����G�lW�Xqoao�������`xCbk��&d�v@�� H]77��vfS��"�$g�'-�<��_�7" m���yfӃ�ב���Q����%�`x��L��:�wp�DK�=�� *t9u���FfX^1�z��P� ��)��_��r������cu����I|�c�k��4_��8�Q���E?H��Z���j&ב��(7�F�u���i�y!%S�Y�.�lj!�M�V� #^uE��%!�!%�»1�z�xt�E��»�|�1��y�J����0B ���" 㹲���E���a��{ +���sɣ]�Yʭ��8�*/U^�|��b%-N�s,�4�f`��$���T`�}��e���6@�㋖t����)�[+�{U�W��و�uW��12�M�Jh'L~�� �z���uicR�P�푑�,�r�}i k� �.�G\�[HԾ�B�*�A~�����f��-�O)������S~q�'-W���v'��xEI/?�m$��;)��^Q��8�< �83g9'��A)'�:��}�w��i�}q�Jn}*��9�w�^����� !��)��b���xʆxKz�ex�yse��v�yP�Uپ��*wS� %=�^�4n�Y�WZ6P֒+��4����(��]x�O�EJ� { // 初始化认证状态 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: 'bzjnbq', chapterId: '87435944', novelTitle: '被揍就能变强', chapterTitle: '第209章 我又不傻,我真不知道', 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 看小說網 版权所有