forked from googlearchive/firebase-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (51 loc) · 1.41 KB
/
index.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Firestore demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<style type="text/css">
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
margin: 0;
padding: 4px 2px;
border-bottom: 1px solid silver;
overflow: auto;
}
#messages_wrapper {
width: 500px;
margin-bottom: 15px;
overflow-y: auto;
}
#messages a {
float: right;
margin-left: 10px;
}
#new_message {
width: 350px;
}
</style>
</head>
<body>
<div class="container">
<h1>Firestore demo</h1>
<div id="messages_wrapper">
<ul id="messages"></ul>
</div>
<form id="new_message_form">
<input type="text" placeholder="Your Message" id="new_message" disabled>
<input type="submit" value="Send" id="submit" disabled>
<button id="disable">disable network</button>
<button id="enable" hidden>enable network</button>
</form>
</div>
<script src="https://www.gstatic.com/firebasejs/6.6.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.6.1/firebase-firestore.js"></script>
<script defer src="index.dart.js" type="application/javascript"></script>
</body>
</html>