-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat_room.html
33 lines (33 loc) · 1.41 KB
/
chat_room.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<script type="importmap">
{
"imports": {
"lit": "https://ga.jspm.io/npm:[email protected]/index.js",
"phx-live-state": "https://ga.jspm.io/npm:[email protected]/build/src/index.js"
},
"scopes": {
"https://ga.jspm.io/": {
"@lit/reactive-element": "https://ga.jspm.io/npm:@lit/[email protected]/reactive-element.js",
"json-joy/esm/json-patch": "https://ga.jspm.io/npm:[email protected]/esm/json-patch/index.js",
"lit-element/lit-element.js": "https://ga.jspm.io/npm:[email protected]/lit-element.js",
"lit-html": "https://ga.jspm.io/npm:[email protected]/lit-html.js",
"lit-html/is-server.js": "https://ga.jspm.io/npm:[email protected]/is-server.js",
"phoenix": "https://ga.jspm.io/npm:[email protected]/priv/static/phoenix.mjs",
"process": "https://ga.jspm.io/npm:@jspm/[email protected]/nodelibs/browser/process.js",
"reflect-metadata": "https://ga.jspm.io/npm:[email protected]/Reflect.js",
"subscript": "https://ga.jspm.io/npm:[email protected]/subscript.js",
"wc-context": "https://ga.jspm.io/npm:[email protected]/core.js"
}
}
}
</script>
<script type="module">
import './chat-room.js'
</script>
</head>
<body>
<h1>Wut up Denver Elixir!</h1>
<chat-room url="ws://localhost:4000/live_state" room="denver_elixir"></chat-room>
</body>
</html>