* 绑定事件监听器
()
| 970 | * 绑定事件监听器 |
| 971 | */ |
| 972 | function bindEvents() { |
| 973 | console.log('bindEvents 被调用'); |
| 974 | console.log('Elements.enterBtn:', Elements.enterBtn); |
| 975 | |
| 976 | // 封面进入按钮点击事件 |
| 977 | if (Elements.enterBtn) { |
| 978 | console.log('绑定 enterBtn 点击事件'); |
| 979 | Elements.enterBtn.addEventListener('click', handleEnterClick); |
| 980 | } else { |
| 981 | console.error('Elements.enterBtn 不存在!'); |
| 982 | } |
| 983 | |
| 984 | // 目录关闭按钮点击事件 |
| 985 | if (Elements.tocCloseBtn) { |
| 986 | Elements.tocCloseBtn.addEventListener('click', handleTocCloseClick); |
| 987 | } |
| 988 | |
| 989 | // 继续阅读弹窗按钮事件 |
| 990 | bindContinueReadingEvents(); |
| 991 | } |
| 992 | |
| 993 | /** |
| 994 | * 绑定继续阅读弹窗事件 |
no test coverage detected