File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -453,6 +453,8 @@ input[type=range]::-webkit-slider-thumb:active{transform:scale(1.2)}
453453.s-quiz-zen .q-grid-panel ,
454454.s-quiz-zen .q-tag-row ,
455455.s-quiz-zen .q-type-tag {display : none !important }
456+ /* 考试极简模式:单独把计时器显示回来,其余隐藏保持不变 */
457+ .s-quiz-zen-exam # quiz-timer {display : flex !important }
456458
457459/* header:透明无边 */
458460.s-quiz-zen .quiz-header {border-bottom-color : transparent;background : transparent}
Original file line number Diff line number Diff line change @@ -2886,13 +2886,16 @@ function _showZenHint(text) {
28862886function enterZenMode ( ) {
28872887 _zenMode = true ;
28882888 var s = document . getElementById ( 's-quiz' ) ;
2889- if ( s ) s . classList . add ( 's-quiz-zen' ) ;
2889+ if ( s ) {
2890+ s . classList . add ( 's-quiz-zen' ) ;
2891+ if ( S . mode === 'exam' ) s . classList . add ( 's-quiz-zen-exam' ) ;
2892+ }
28902893 _showZenHint ( '⚡ 极简模式 长按再次退出' ) ;
28912894}
28922895function exitZenMode ( ) {
28932896 _zenMode = false ;
28942897 var s = document . getElementById ( 's-quiz' ) ;
2895- if ( s ) s . classList . remove ( 's-quiz-zen' ) ;
2898+ if ( s ) { s . classList . remove ( 's-quiz-zen' ) ; s . classList . remove ( 's-quiz-zen-exam' ) ; }
28962899 _showZenHint ( '已退出极简模式' ) ;
28972900}
28982901
You can’t perform that action at this time.
0 commit comments