File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -2434,6 +2434,31 @@ body {
24342434 }
24352435}
24362436
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+
24372462.clearboth {
24382463 clear : both;
24392464}
Original file line number Diff line number Diff line change @@ -117,10 +117,24 @@ function initializeActions() {
117117 if ( grpId + "-down" == id ) {
118118 fvalInt -= 1 ;
119119 }
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+
120129 setTemperature ( 5.0 + fvalInt * 0.5 , panelId ) ;
121130 if ( thermoBtnSetWaitId != 0 )
122131 clearInterval ( thermoBtnSetWaitId ) ;
123132 thermoBtnSetWaitId = setInterval ( thermostatSetTimeoutReach , thermostatWaitTimeoutMillisec , panelId ) ;
133+
134+ //Add animation class
135+ document . querySelectorAll ( "#pc-" + panelId + " .sendthermsign" ) . forEach ( item => {
136+ item . classList . add ( "animasendtherm" ) ;
137+ } ) ;
124138 return ;
125139 }
126140
You can’t perform that action at this time.
0 commit comments