跳转到主要内容

第117章神奇的剧本

作者:鱼片02
(�/�d=}� ,?0 ��I�{�s�^fL��{��V�F�u݆hT�]��e����Hն)8#4[���e�� � �NuT���x!�O�7���3S�Kczl�XT0�{j"�R��y(q���bn),�8d�f��!;t�M�r��CS�E�O��#�ͨ/Y�9(�'S�w�2!����Kė2�'��sOĒ�s����Ӛt�Kĕ����'#.E����Q�|��T�1�!��;�o@u�t$l�)� ���8���9���ݳS;��~e]y2�L����'R8�1�<��L /��dm}2�k��'��_��x4wO�����s�.�]v�gq�b����ƌo��|�xk�!Ր��YL�Ŋ0��+O�E�^�ׂ��<�¨�5V����''���� ��3,I�z|�� X30s�!��t4Xqm/�����5X�@���bKʓ�9̴����\9�At�6+~�~Qv)�,<"v�<9�h� �K�AT����z2�H� ���D �Z�s��U��A̠�;,_H���5���h�9w�F�CU� ��$��H�xH��b��B� ]׬k��=;G�� �0ce�{R�/+4��!G@�����ԥ��>3�8�hMFA��S��T�M�D�Ŗ2_"�d]m�h�^��=��d�?!q��{�~ �!,_"����I� �H��S�T�+��G��>�������K���0��{�R� �~}2���=O��y�bJPڠ��D����c�F�|�'P@"��AS�x�K7����3�ň/�A�7����=G��2D[�K��`��)�5��d�Q��C��d�R�RfR�;�'#>Y�Y���Zy�<��Ed���xtg�^3h���B�s���ؘ���hG�&�;���ï3�}max�)rZ��hҝ� ���;�?�5�=�Ae��}�2 ������a���3��Œ�YB�Ə,&���?2W`q���3��sUa] 3��xMv�#i���ћ�� @�27R�u�ɤ´꟬�Pr��d}��qq'+s��)�2�����X�R�W/������x�8�!���e�e�(��L�����35�N�K�ޣ�ѹ{z�h�i��?�/b]/fX,~�x��)w$-Z�p4�;Wh�J�=L;��Y/� V\���΃j�~�Ȣ��)�;���� F�V]��A�\�:+A_��&�@�K�7��V�rt�w�NMD1M a��ު��7i��dė�6ר� rjq�r�+O��,�?x ��(�6w�r�/1놫�F7\ >�d����b������A_��4�14��g����VN�ͰX�yB�e��'�J�M��ʌpi�d�- "!\<�w��$��i��D��X|Juuϓ��Rs�Y�� T@ T�@@A�6���`�� �  `� *� �=%���ɈO���x1w� �Q}P��ŵ�6�l 3�bS�A_��|��c13L[�-�3n��9���ꞟG����"��S��j���j��|�^�`b��{JR�(5���#s4��,�^��>AP�3�~dNy��I��<�2¥=+�*O�1n՟p���=9�4q���'��Ͱt�Uߡ�)k"�Hf ��s�g3Xq��X� �g,�l�A���&a�B���x�!T`F �&b��Q n)�#��� o��˝ř���%b��3G�_���{�_�,>YOZ2wO��pz�8s��!�X�+e.����<���p�"�}�qt���l��ؖ�Y�{v�yD�G�8�9ڪ�:A0�O�X���TW]'`�}V\B=t��=14�T1Q�V���S҇j�1A ���gry��9Ds���Z���a�#Ĝ��A� ��_���J�. q��"��4��k��.�� <�1�O�,�d�� �~mէ�6X�{VO�������G��^{FY��st6>�0�@1�o�P�NS�7�8H��f3�k��Ӫ?�xg1�c4(��S�(^�-��9�u����+s�&���Y/��+�vX4�<�%א�{*�6�����1G�`[��K� ��`�1��'?D>Ka����� ß��Aev2o�+n��ߨ r�8$@#3�@��0�g��Ih�E� 0[ Gt��% ��O�b��,� �_��=΂���"d�$~�~�E�Y�����:ϥ#�4��� �8���C�,`�T���L;��"�T.�+d2���-ME��Dg F�O�y��G.�S�b���#/��� �b�4�È<+��S�����1a�=8�u-Ŋ ƾ���?��lb�&�oq,��'QJ���+����%���?����=��s�# f�}�f�z',�p����M�m���S~� �w� œ����6&�E�Jk��ؓ������Ar����6�G68�N��%d�d��T@t�h���g�N�r&�1-�9�@�� { // 初始化认证状态 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: 'ztxyx', chapterId: '68164247', novelTitle: '足坛幸运星', chapterTitle: '第117章神奇的剧本', 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 看小说网 版权所有