MCPcopy Create free account
hub / github.com/cutedCha/noteBoook / showCover

Function showCover

js/app.js:1184–1200  ·  view source on GitHub ↗

* 显示封面

()

Source from the content-addressed store, hash-verified

1182 * 显示封面
1183 */
1184function showCover() {
1185 AppState.currentView = 'cover';
1186
1187 // 显示封面,隐藏其他视图
1188 if (Elements.cover) {
1189 Elements.cover.classList.remove('hidden');
1190 }
1191 if (Elements.toc) {
1192 Elements.toc.classList.add('hidden');
1193 }
1194 if (Elements.content) {
1195 Elements.content.classList.add('hidden');
1196 }
1197 if (Elements.navigation) {
1198 Elements.navigation.classList.add('hidden');
1199 }
1200}
1201
1202/**
1203 * 显示目录

Callers 2

book.jsFile · 0.85
handleTocCloseClickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected