跳转到主要內容

第13章 冰冷无情的包子

作者:茶色鸦
(�/�d{mp�̌&> Ss&�{7 <�#-�o���2���vW2�P�n�M7��Y�E�`�O��x�EQ4Ʒ2Dý���TSS��f��#����}D|�������7T�a����^:ݡ�#(olWk9d�؛�j��k{��M���!��|&^Q��i�s�y6���C'�H��5bA��ʓ ?�����N�ƶ��:�#��F4|z� s � �PR�'g>��VP�V� 1_75�f���]+���H��ي!�|�=q�|b��{O�=�_����5�Bx7�*�u��V۝� �8ܰ�R!5�$���&W���c���5R�S�G����bvW!��?�٠0�:n�#s�k�_7uh�:f[��ɍPn�2�̵�A��;�M_ڞ8l��vh�`���/�,޾n� {��"���k� � j`���3��_7��#�J}�t�(_~����g���M�#ʶ“���K�A��.��v���Z?)[��� |�t����d�*����u�N�A�� �ʮ\.\��$�&WPA��� ;�-]��#��Ġ�3�3ѯ�V#�F΁��nf��M9���#�G�O��� ��A� V^�p;2^�{D�Ti?qX|��MO0w���d�?X�V��QkD�@8��|��Bz��"�E�- �p�(c�_75A/?��pO�'e{D��n:)�#}�B<�0��F l�)�0��#U�>B8�H���|�x���A+�v� �'b� �'�n4ޔ�Gt��'�nZ ��&ɾn�@������v ;���铲5�Cp,�'�c*�B��54�}��Ѐ��> N���B�L�n V��VԈ��D�ƾn�am��I�k�ۋ�M)+�$P�ÓL��7�O��r6f������M9ʙ)� ��j�G�Z��=�O���8�G�F�n:q�}A�?қy�Z�q�AS9����H?q�b��G�|�TS�Ty��M���� ���l��iB'��y�}h��x��-�����M �ƾT~tx��)O^� �Rfc�� ��]+x�ۙ�<��uӉãE-�D|��)2��'TP ���b��eOʞ8H�zݤ��t�G�I�m�p慅70��F@p�m���"[��&�ؖ�M���b@0e��� ���h�Lr�5�8\a����SJlJ(D��%�h����s��\�*��̍�n+�qd+�\|�خ��*A��i��B��'K�|�E��l[$��`�.��3w�s�}^��ꞁ:���ݠA%�_ JmЉ�%�1�L�#rm�Z�U�3��q����=�C5c蓲)�I�� n��\!�A ���l��O�u\��F{��� X����ނ�;)c���7�"_!s��1��}�=f}h�]�`�[��(V��H��2�r������8)C�p�J�l���$�1�v�8�P6���CfHȖ�"�� V������.��>+�Y�>qӇ�e'tRQ�l�� �ˇ� �����;:\>\�c-9e�j[A�Rd�rH������� ��� L�T�U̶ ��a�Z��<���d3T�Ё�<); @0 @�@�F,��0�P@ p�L0A�Mop�J� _7%;'^�Ip+(8�P�6���l����<)�\��qPD�qSʛ��5�k>�‘{�Sd_�_,| 'e��'`Y�)e����)�;J�=��#�cl�l�![�D&7T���aH�|>){�/N��A�g�K�����M){cc�7 ۙ�z�&"�ad��V��r;�F�7�GϦ|P?C��)���)���3`P{O�-fS$����#\�G�WԈ<]7����.Y����C'0�#�����(�y儈{6TDAC���6�v��&��u�����1q�!���}oC8^*�"{c��릌3���*��<)[Q#(%�X�h(�����,?qxryz���� ��x�� L��60��� �� �{7M��t|�7��b�t��q�&���B!w��m�{ck(�Aa΀r�%o��=�������NM�a��n>�nju��札hdS �Ǩ���8 %0�!�@�0Y%ET@ ��@� F���3Y4�J_Q=�����z: { // 初始化认证状态 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: 'mstzwywxcstmwz', chapterId: '56453286', novelTitle: '末世天灾,我有无限超市屯满物资', chapterTitle: '第13章 冰冷无情的包子', 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 看小說網 版权所有