跳转到主要內容

第0054章 玩的就是偷袭

作者:昔年小梦
(�/�d&ݠj-I8? )Ms��}? <�#-��rt�� ���nP`��`�.���"���#��ΥDB����YQ73ppk�W�$fob��uΥK���$㙽��� V�t�ʚ M�� ��Ym�Hl:�A��ڰp~B��=��h�p�׳�;�qi���u� _��jC�����������&U�`ʙ�õ2u��H�%�gV`��`�YyE�v��:8�.t�ʝ�3��%��20-�J���Z�Z�l9�$rE�"�ӭ�Z�N��N�,�q���q��Ny��t�6T�l�N�k�`�����3GțP�C�3[���� �W{�W'u}�n��uze�����ԍ�r$V0�"^�A��x�_ ���R_���a�פ�g�T��[��@�@Ҙʫ�!��L���F�*�:�Ф���y58钅MJ���W$�Ԛ����]+S �읜Yrz&�O���i�a��f#4��p��j �A�L| ����^W{ǎ}�$(��1���0�[����`Қ%I��j��Um�:�0�ΑXj��7{����!^Q�as�2x쥜9d`���=KkeJ2�8sb���W�$(��Um`P2���������^�pQx�L�攂w��JZ�f��KNk�e�71��$x���;I�V{�ڀy��. ��P�L=6W��\�p������;�I��?(�s����v�� L���� �c^��ke:�;I@g��p��41� Ӕ3o�K����2~ao=�T��^��KN[�HPF��x��%!�7�i� [�$��x+� @�뮼�u��^�\��ʴ�tgo��V�G�}� �6 `�P���3{�����e�0�A�~����F/�5]-��ͭ�KNl��z�Tq����V�����do&^I�� �Y�O��0o˜��%��^��j��j6IPL��2�������N�� rGh�n�A�c�硕�V� }���x��aL�5z��83Y��x-�ke�y�A�! j��j��a�z�Zd�G���f#o4�d�c� �2��kr>B `����r�2���{�!�TTҵV���1�:�������J��7@G}�fލ� c9�j�B7�ȹ�̝�6D�)@�1�c^s�6-�O�"�Z�>��m=��0���_e��٫ ���C��5�A�#l� / �$0k*�*�̎���W�2}Ph�9ư��л)qS��&�4NڲqrfƤI`�¼o�$B^ �Z:�� kpҌ�^$v\�����E�G�7�zEڳt��q�L=���-��0���(��I[�����V���g�����x)g� *�AeH�W4�v�_��ThF�-��2�C>(����ʜ�Z�뇷��#��4�lS"4^�=_e����ɗx�)g>Q���!/�~؎IO��f��^e�\آA�|B�лU�U�h{���2���Z8�����''{�^��M�ג9�t���9_����b� }��0�V��KBx��z �� 55O����V�+�9t�y�4��Wo�=���83�C��7{C�?�keʹ�銧l�k �v��t��Z�n�n�/��O�7��"�M�`��M��E6�P��a������g����pO�u:C�ey)�|/C�Ż�v-9�ז�3Z'�ƿʀ(e.�W���b "u��s��uBA63I�T {C����S�4� o��%��~8+Q�1��Nm���=�ǘ71^�X^����}K<��I�\���-k�шCg�ά �+�f�(��t�`� �LՆD?(T!��I{���Q�lM�L͙7�5�� Y>aބ1+�1�(�: ̵��r� ;�΄p6���9_��a/���CO�|�0���_{2 M!���L�3�k�rf�Q� N(g6y�*C��\��:�{g�a��o��A����o��Y�2xds��L�b� @�����ݱ�Z���W����1�9ZY�a<��#�$}f�C �K������:�Zq�CEG����K�Z�u�)Њѡ��+2=B^�钊jeJ���je��.n��EgX�tt� �"ju��:�ZS�� -��^M�R�c�!���:ܸtb�% [U;��<�%�y�� ��d���V�k"}8ou��Z���Ƶ2�:�y�@�R����'X#8�sfMI:Bd�BF���y�7�ňkWV��!ox���uRW��3&á��o81�Q���2� ��뜯���V����� 3�I\!q��ڢ�P�[��f/e��2up'm"�59� �>ؼd�Cv� 5���q���`RǻAke��0��֙��O��W"�{�� ��~q��4��e��^�QgXw��^zX�zf_��%߫��뇹�A�fX+����w� �~^_Z��P,t�����͜w�7s^�L1�%Ami�V�kez��3o��w�×�#��\���Z��*��u�}S��%m.�YAvX���i�+/���K���#�_��A�D�� ����Fȫ >�t�>.9�"�X'd�L/�3�*Ø�aeF�V�A������S���Z�%�G���rWQ +���ܲE�� �� . ���^�� {K6xd�L�Yҵ�k�����Um�|���;���d�V��3OHT+Ӂ�,��a�� ^Xμ#�ELCƛa=�>�05�=$�o�R�zM��bʢ�W{���c�j�ОN{FMPj�L . �m��* �0"G�f�IB�¡@S�y�Y1F*b S�> ��P�4��J�T>�+f������E8�~�g�@�,�9�w�N�B��{Jh�qz(��� ��}-��;�� ���wt���.�����7>m@%��CL$uς���C�Ԗ� !V��� 6!��4A �xV����+t`ضTh��"(7�d��9>�v���s�� ��|*����C�6,���� =���I�H�7���(���V�~I�%���YfjN���g�`�gxr�9��yA@�Z7?�����CS��qj�F�ښ5u���+ �Xў�yl����4g�:�˞xϘ�b�F����6�q���<�����Q�x TS�OD���t raCsi��,�G��ADڤ�T8��6@����!8��"0�վN �'����W#ӹI�ɋ�t{^�0T��G�Z�A��~��FX� �v(y�4����ps�� Iэ��l�>�?&�Mj��� �B�0md��sD�����L K2����:��x�l*����#a��lǤ��9����[����hfJ^~+#���WL�� l i���*Es%�ssk�r� t>M���h�����<7�1���V� { // 初始化认证状态 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: 'minghuameirenlu', chapterId: '55340025', novelTitle: '名花美人录', chapterTitle: '第0054章 玩的就是偷袭', 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 看小說網 版权所有