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,10 +164,8 @@ export async function checkSharedLink() {
164164 if ( data . success ) {
165165 initDashboard ( data . data ) ;
166166
167- document . querySelectorAll ( '.header-status-badge' )
168- . forEach ( ( headerStatusBadge ) => {
169- headerStatusBadge . textContent = '僅供檢視' ;
170- } ) ;
167+ const headerStatusBadge = document . getElementById ( 'headerStatusBadge' ) ;
168+ if ( headerStatusBadge ) headerStatusBadge . textContent = '僅供檢視' ;
171169
172170 if ( updateTime ) updateTime . textContent = '分享存檔' ;
173171 } else {
Original file line number Diff line number Diff line change 6666
6767
6868
69- .share-indicator {
70-
71- display : flex;
72-
73- align-items : center;
74-
75- margin-right : 12px ;
76-
77- }
78-
79-
80-
8169/* Read Only Mode */
8270
8371body .read-only-mode .import-dropdown ,
Original file line number Diff line number Diff line change @@ -247,7 +247,15 @@ body.read-only-mode .header-status-badge:empty {
247247
248248
249249.time-label {
250- display : none;
250+ position : absolute;
251+ width : 1px ;
252+ height : 1px ;
253+ padding : 0 ;
254+ margin : -1px ;
255+ overflow : hidden;
256+ clip : rect (0 , 0 , 0 , 0 );
257+ white-space : nowrap;
258+ border : 0 ;
251259
252260}
253261
Original file line number Diff line number Diff line change @@ -72,16 +72,16 @@ <h2>中大壢中成績分析平台</h2>
7272 < h1 > 成績分析平台</ h1 >
7373 < div class ="subtitle-row ">
7474 < p class ="subtitle " id ="examTitle "> --</ p >
75- < span class ="header-status-badge " aria-live ="polite "> </ span >
75+ < span class ="header-status-badge " id =" headerStatusBadge " aria-live ="polite "> </ span >
7676 </ div >
7777 </ div >
7878 </ div >
7979 < div class ="data-time-box ">
8080 < span class ="header-status-badge " id ="headerStatusBadge " aria-live ="polite "> </ span >
8181 < div class ="time-info ">
8282
83- < span class ="time-label "> 資料更新時間</ span >
84- < span class ="time-value " id ="updateTime "> --</ span >
83+ < span class ="time-label " id =" updateTimeLabel " > 資料更新時間</ span >
84+ < span class ="time-value " id ="updateTime " aria-labelledby =" updateTimeLabel " > --</ span >
8585 </ div >
8686 < div class ="flex-center-gap-8 header-actions ">
8787 < button class ="icon-btn theme-toggle-btn " id ="themeToggleBtn " type ="button " aria-label ="切換至淺色模式 "
You can’t perform that action at this time.
0 commit comments