File tree 2 files changed +39
-0
lines changed
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -2434,6 +2434,31 @@ body {
2434
2434
}
2435
2435
}
2436
2436
2437
+ .sendthermsign {
2438
+ margin : 0 ;
2439
+ padding : 0 ;
2440
+ display : block;
2441
+ width : 0% ;
2442
+ height : 2px ;
2443
+ background-color : # 1976ed ;
2444
+ }
2445
+
2446
+ .sendthermsign .animasendtherm {
2447
+ animation : sizechange 6s linear;
2448
+ }
2449
+
2450
+ @keyframes sizechange {
2451
+ 0% {
2452
+ width : 0% ;
2453
+ }
2454
+ 2% {
2455
+ width : 80% ;
2456
+ }
2457
+ 100% {
2458
+ width : 0% ;
2459
+ }
2460
+ }
2461
+
2437
2462
.clearboth {
2438
2463
clear : both;
2439
2464
}
Original file line number Diff line number Diff line change @@ -117,10 +117,24 @@ function initializeActions() {
117
117
if ( grpId + "-down" == id ) {
118
118
fvalInt -= 1 ;
119
119
}
120
+
121
+ //Removing animation class and stop running animation
122
+ document . querySelectorAll ( "#pc-" + panelId + " .sendthermsign.animasendtherm" ) . forEach ( item => {
123
+ item . classList . remove ( "animasendtherm" ) ;
124
+ item . getAnimations ( ) . forEach ( ( anim ) => {
125
+ anim . cancel ( ) ;
126
+ } ) ;
127
+ } ) ;
128
+
120
129
setTemperature ( 5.0 + fvalInt * 0.5 , panelId ) ;
121
130
if ( thermoBtnSetWaitId != 0 )
122
131
clearInterval ( thermoBtnSetWaitId ) ;
123
132
thermoBtnSetWaitId = setInterval ( thermostatSetTimeoutReach , thermostatWaitTimeoutMillisec , panelId ) ;
133
+
134
+ //Add animation class
135
+ document . querySelectorAll ( "#pc-" + panelId + " .sendthermsign" ) . forEach ( item => {
136
+ item . classList . add ( "animasendtherm" ) ;
137
+ } ) ;
124
138
return ;
125
139
}
126
140
You can’t perform that action at this time.
0 commit comments