Copyright and delte old lines
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Clock component for FTUI version 3
|
* FlipClock component for FTUI version 3
|
||||||
*
|
* based on clock component from Mario Stephan <mstephan@shared-files.de>
|
||||||
* Copyright (c) 2020 Mario Stephan <mstephan@shared-files.de>
|
* Copyright (c) 2020 Mario Stephan <mstephan@shared-files.de>
|
||||||
|
* Copyright (c) 2020 Torsten Rywelski <torsten.rywelski@gmail.com>
|
||||||
* Under MIT License (http://www.opensource.org/licenses/mit-license.php)
|
* Under MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||||
*
|
*
|
||||||
* https://github.com/knowthelist/ftui
|
* https://github.com/knowthelist/ftui
|
||||||
|
* https://git.rywelski.de/FHEM/ftui_components_flipclock
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FtuiElement } from '../element.component.js';
|
import { FtuiElement } from '../element.component.js';
|
||||||
@@ -158,11 +160,8 @@ export class FtuiFlipClock extends FtuiElement {
|
|||||||
var mten = parseInt(dateFormat(this.getDateTime(), this.format).toString()[2]) + 20;
|
var mten = parseInt(dateFormat(this.getDateTime(), this.format).toString()[2]) + 20;
|
||||||
var hone = parseInt(dateFormat(this.getDateTime(), this.format).toString()[1]) + 20;
|
var hone = parseInt(dateFormat(this.getDateTime(), this.format).toString()[1]) + 20;
|
||||||
var hten = parseInt(dateFormat(this.getDateTime(), this.format).toString()[0]) + 20;
|
var hten = parseInt(dateFormat(this.getDateTime(), this.format).toString()[0]) + 20;
|
||||||
// this.beforeup = this.shadowRoot.querySelector('.up');
|
|
||||||
// this.beforedown = this.shadowRoot.querySelector('.down');
|
console.log( hten + " " + hone + ":" + mten + " " + mone + " smten: " );
|
||||||
// this.activeup = this.shadowRoot.querySelector('li.clock-active a div.up');
|
|
||||||
// this.activedown = this.shadowRoot.querySelector('li.clock-active .down');
|
|
||||||
console.log(this.clocksize + hten + " " + hone + ":" + mten + " " + mone + " smten: " + this.smten );
|
|
||||||
if (this.smone != mone){
|
if (this.smone != mone){
|
||||||
this.flip_card(".min", mone);
|
this.flip_card(".min", mone);
|
||||||
}
|
}
|
||||||
@@ -193,13 +192,6 @@ export class FtuiFlipClock extends FtuiElement {
|
|||||||
this.replace (cl + " li.clock-active .down", digit);
|
this.replace (cl + " li.clock-active .down", digit);
|
||||||
this.replace(cl + " .clock-active");
|
this.replace(cl + " .clock-active");
|
||||||
}
|
}
|
||||||
// flip_minten(digit){
|
|
||||||
// this.replace ('.ten .down',null, digit);
|
|
||||||
// this.replace ('.ten .up',null, digit);
|
|
||||||
// this.replace ('.ten li.clock-active a div.up', digit);
|
|
||||||
// this.replace ('.ten li.clock-active .down', digit);
|
|
||||||
// this.replace('.ten .clock-active');
|
|
||||||
// }
|
|
||||||
|
|
||||||
replace (cl, aattr, battr){
|
replace (cl, aattr, battr){
|
||||||
this.el = this.shadowRoot.querySelector(cl);
|
this.el = this.shadowRoot.querySelector(cl);
|
||||||
|
|||||||
Reference in New Issue
Block a user