Update for more widgets

This commit is contained in:
William Moore 2023-06-05 09:58:34 -05:00
parent c113b2f1fa
commit 34d6294bd0
4 changed files with 112 additions and 3 deletions

9
public/affirmations.html Normal file
View 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>

View File

@ -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

File diff suppressed because one or more lines are too long

View File

@ -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;
}
}