-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
71 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,25 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Go og Varm</title> | ||
<style>body { padding: 0; margin: 0; }</style> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;1,500&display=swap" rel="stylesheet"> | ||
</head> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<meta name="theme-color" content="#000000" /> | ||
<title>Go' og varm</title> | ||
<!-- <link rel="preconnect" href="https://fonts.googleapis.com" /> --> | ||
<!-- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> --> | ||
<link rel="icon" href="/assets/logo-ZFEO32Er.svg" sizes="any" type="image/svg+xml" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<script type="module" crossorigin src="/assets/index-Dg1g5NIh.js"></script> | ||
</head> | ||
|
||
<body> | ||
|
||
<pre id="elm"></pre> | ||
|
||
<script src="app.js"></script> | ||
<script> | ||
const storageKey = "store"; | ||
const flags = localStorage.getItem(storageKey); | ||
const app = Elm.Main.init({flags: flags}); | ||
|
||
app.ports.storeCache.subscribe(function(val) { | ||
if (val === null) { | ||
localStorage.removeItem(storageKey); | ||
} else { | ||
localStorage.setItem(storageKey, JSON.stringify(val)); | ||
} | ||
|
||
// Report that the new session was stored successfully. | ||
setTimeout(function() { app.ports.onStoreChange.send(val); }, 0); | ||
}); | ||
|
||
// Whenever localStorage changes in another tab, report it if necessary. | ||
window.addEventListener("storage", function(event) { | ||
if (event.storageArea === localStorage && event.key === storageKey) { | ||
app.ports.onStoreChange.send(event.newValue); | ||
} | ||
}, false); | ||
</script> | ||
|
||
</body> | ||
<body> | ||
<noscript> You need to enable JavaScript to run this app. </noscript> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
{ | ||
"type": "application", | ||
"source-directories": [ | ||
"src" | ||
], | ||
"elm-version": "0.19.1", | ||
"dependencies": { | ||
"direct": { | ||
"NoRedInk/elm-json-decode-pipeline": "1.0.1", | ||
"elm/browser": "1.0.0", | ||
"elm/core": "1.0.0", | ||
"elm/html": "1.0.0", | ||
"elm/json": "1.1.2", | ||
"elm/url": "1.0.0", | ||
"mdgriffith/elm-ui": "1.1.8" | ||
}, | ||
"indirect": { | ||
"elm/time": "1.0.0", | ||
"elm/virtual-dom": "1.0.2" | ||
} | ||
"type": "application", | ||
"source-directories": ["src"], | ||
"elm-version": "0.19.1", | ||
"dependencies": { | ||
"direct": { | ||
"NoRedInk/elm-json-decode-pipeline": "1.0.1", | ||
"elm/browser": "1.0.2", | ||
"elm/core": "1.0.5", | ||
"elm/html": "1.0.0", | ||
"elm/json": "1.1.3", | ||
"elm/url": "1.0.0", | ||
"hmsk/elm-vite-plugin-helper": "1.0.1", | ||
"mdgriffith/elm-ui": "1.1.8" | ||
}, | ||
"test-dependencies": { | ||
"direct": { | ||
"elm-explorations/test": "1.2.2" | ||
}, | ||
"indirect": { | ||
"elm/random": "1.0.0" | ||
} | ||
"indirect": { | ||
"elm/time": "1.0.0", | ||
"elm/virtual-dom": "1.0.3" | ||
} | ||
}, | ||
"test-dependencies": { | ||
"direct": { | ||
"elm-explorations/test": "1.2.2" | ||
}, | ||
"indirect": { | ||
"elm/random": "1.0.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
|
||
outputs = inputs @ { | ||
flake-parts, | ||
dream2nix, | ||
... | ||
}: | ||
flake-parts.lib.mkFlake {inherit inputs;} { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters