-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
146 lines (106 loc) · 4.39 KB
/
index.html
File metadata and controls
146 lines (106 loc) · 4.39 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<script type="text/javascript"></script>
<link rel="stylesheet" href="style.css">
<title>MyHelper for Firebase</title>
<p></p>
<p><a href="http://console.firebase.google.com/project/third-ac40d/database/third-ac40d/data/Learning">Google
firebase</a></p>
<!-- =========== Скрипт для работы с Firebase ================/-->
<script src="https://www.gstatic.com/firebasejs/7.0.0/firebase-app.js"></script>
</head>
<body>
<div id="content">
<div class="content1">
<!-- ===================== Form 1 ==============================/-->
<div id="frm1">
<h3 id="writeHeader">Write data to database</h3>
<p>'Set button' set data to 'Learning/fruit'</p>
<p>'Push button' add data to 'Learning'</p>
</div>
<!-- ===================== Form 2 ==============================/-->
<div id="frm2">
<div>
<h3 id="readHeader">Read and view data from database</h3>
<p>Select key</p>
<select id="keysfrm2">
</select>
<p></p>
<input type="text" id="txt1frm2" placeholder="name">
<p></p>
<input type="text" id="txt2frm2" placeholder="color">
<p></p>
<input type="text" id="txt3frm2" placeholder="quantity">
</div>
<p></p>
<div id="frm2_2">
<p></p>
<button class="btnfrm" id="btn1frm2">Get keys</button>
<button class="btnfrm" id="btn2frm2">Show item</button>
<button class="btnfrm" id="btn3frm2">Clear</button>
</div>
<p></p>
<div id="frm2_3">
<button class="btnfrm" id="btn4frm2">Prev</button>
<button class="btnfrm" id="btn5frm2">Next</button>
</div>
</div>
<!-- ===================== Form 3 ==============================/-->
<div id="frm3">
<div>
<h3 id="viewHeader">Add and remove data</h3>
<p>Select key</p>
<select id="keysfrm3">
</select>
<p></p>
<input type="text" id="txt1frm3" placeholder="name">
<p></p>
<input type="text" id="txt2frm3" placeholder="color">
<p></p>
<input type="text" id="txt3frm3" placeholder="quantity">
</div>
<p></p>
<div id="frm3_2">
<p></p>
<button class="btnfrm" id="btn1frm3">Get keys</button>
<button class="btnfrm" id="btn2frm3">Show item</button>
<button class="btnfrm" id="btn3frm3">Clear</button>
</div>
<p></p>
<div id="frm3_3">
<button id="btn4frm3">ADD item</button>
<button id="btn5frm3">REMOVE item</button>
</div>
</div>
</div>
<div class="content2">
<div id='tbl1'>
<div id=btntbl>
</div>
<p></p>
<div id='table1'>
</div>
</div>
<div id='tbl2'>
<div id='table2'>
</div>
</div>
<div id='tbl3'>
<div id='table3'>
</div>
</div>
</div>
</div>
<!-- =========== Скрипты для работы с Firebase ================/-->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="https://www.gstatic.com/firebasejs/7.0.0//firebase.js"></script>
<script src="script.js"></script>
</body>
</html>