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>
|
||||
</head>
|
||||
<body>
|
||||
<lavendar-rainfall></lavendar-rainfall>
|
||||
<lavender-rainfall></lavender-rainfall>
|
||||
</body>
|
||||
</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 { customElement } from 'lit/decorators.js';
|
||||
|
||||
@customElement('lavendar-rainfall')
|
||||
@customElement('lavender-rainfall')
|
||||
export class Rainfall extends LitElement {
|
||||
value = 0.0;
|
||||
|
||||
@ -54,6 +54,6 @@ export class Rainfall extends LitElement {
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'lavendar-rainfall': Rainfall;
|
||||
'lavender-rainfall': Rainfall;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user