File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,8 +164,10 @@ export async function checkSharedLink() {
164164 if ( data . success ) {
165165 initDashboard ( data . data ) ;
166166
167- const headerStatusBadge = document . getElementById ( 'headerStatusBadge' ) ;
168- if ( headerStatusBadge ) headerStatusBadge . textContent = '僅供檢視' ;
167+ document . querySelectorAll ( '.header-status-badge' )
168+ . forEach ( ( headerStatusBadge ) => {
169+ headerStatusBadge . textContent = '僅供檢視' ;
170+ } ) ;
169171
170172 if ( updateTime ) updateTime . textContent = '分享存檔' ;
171173 } else {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ <h2>中大壢中成績分析平台</h2>
7272 < h1 > 成績分析平台</ h1 >
7373 < div class ="subtitle-row ">
7474 < p class ="subtitle " id ="examTitle "> --</ p >
75- < span class ="header-status-badge " id =" headerStatusBadge " aria-live ="polite "> </ span >
75+ < span class ="header-status-badge " aria-live ="polite "> </ span >
7676 </ div >
7777 </ div >
7878 </ div >
You can’t perform that action at this time.
0 commit comments