File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 btn . disabled = true ;
1414 var label = btn . nextElementSibling ;
1515 var countdown = 30 ;
16- label . textContent = " Redirecting in " + countdown + "s ..." ;
16+ label . textContent = " Downloading in " + countdown + "sec ..." ;
1717 var timer = setInterval ( function ( ) {
1818 countdown -- ;
19- label . textContent = " Redirecting in " + countdown + "s ..." ;
19+ label . textContent = " Downloading in " + countdown + "sec ..." ;
2020 if ( countdown <= 0 ) {
2121 clearInterval ( timer ) ;
2222 window . location . href = btn . getAttribute ( "data-link" ) ;
5050 cursor : not-allowed;
5151 }
5252 .timer-label {
53+ margin-top : 1.5rem ;
5354 margin-left : 10px ;
5455 color : # 333 ;
5556 font-weight : bold;
57+ display : block;
58+ text-align : center;
59+ }
60+
61+ html : is (.dark ) {
62+ .timer-btn {
63+ background : # 3399ff ;
64+ color : # eee ;
65+ border : none;
66+ }
67+ .timer-btn : disabled {
68+ background : # 555 ;
69+ cursor : not-allowed;
70+ }
71+ .timer-label {
72+ color : # ccc ;
73+ }
5674 }
5775</ style >
You can’t perform that action at this time.
0 commit comments