Update for more widgets
This commit is contained in:
parent
c113b2f1fa
commit
34d6294bd0
9
public/affirmations.html
Normal file
9
public/affirmations.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="86400">
|
||||||
|
<script type="module" src="./js/Affirmations.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<lavender-affirmations></lavender-affirmations>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -3,6 +3,6 @@
|
|||||||
<script type="module" src="./js/Rainfall.js"></script>
|
<script type="module" src="./js/Rainfall.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<lavendar-rainfall></lavendar-rainfall>
|
<lavender-rainfall></lavender-rainfall>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
100
src/Affirmations.ts
Normal file
100
src/Affirmations.ts
Normal file
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
import { LitElement, html, css } from 'lit';
|
import { LitElement, html, css } from 'lit';
|
||||||
import { customElement } from 'lit/decorators.js';
|
import { customElement } from 'lit/decorators.js';
|
||||||
|
|
||||||
@customElement('lavendar-rainfall')
|
@customElement('lavender-rainfall')
|
||||||
export class Rainfall extends LitElement {
|
export class Rainfall extends LitElement {
|
||||||
value = 0.0;
|
value = 0.0;
|
||||||
|
|
||||||
@ -54,6 +54,6 @@ export class Rainfall extends LitElement {
|
|||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
'lavendar-rainfall': Rainfall;
|
'lavender-rainfall': Rainfall;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user