-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex copy.html
237 lines (237 loc) · 10 KB
/
index copy.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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>だらだら在庫管理</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<script src='./viewController.js'></script>
<script src="./event.js"></script>
<script src="./main.js"></script>
</head>
<body>
<div id="firstV" class="view">
<h1>だらだら在庫管理(仮)</h1>
</div>
<div id="mainV" class="view">
<nav>
<a data-link="recordV">
記録
</a>
<a data-link="buyV">
買うもの
</a>
<a data-link="addV">
登録
</a>
<a data-link="setV">
設定
</a>
</nav>
</div>
<div id="setV" class="view" data-family="f">
<header>
<span onclick='viewController.change("mainV");'>← もどる</span>
</header>
<a class="setNavF" onclick="setTimeout(function(){viewController.change('qrV');document.getElementById('setV').setAttribute('data-family','t')},400)">
ファミリーを作る
</a>
<a class="setNavF" onclick="setTimeout(function(){alert('ここにカメラ処理入る予定');document.getElementById('setV').setAttribute('data-family','t')},400)">
ファミリーに入る
</a>
<a class="setNavT" onclick="setTimeout(function(){document.getElementById('setV').setAttribute('data-family','f')},400)">
ファミリーを抜ける
</a>
<a class="setNavT" onclick="setTimeout(function(){viewController.change('qrV');},400)">
ファミリーQRを表示
</a>
</div>
<div id="qrV" class="view">
<header>
<span onclick='viewController.change("setV");'>← もどる</span>
</header>
<img src="./qr.png">
<p>
このQRコードをスマートフォンで読み取ってください。
</p>
</div>
<div id="addV" class="view">
<header>
<span onclick='viewController.change("mainV");'>← もどる</span>
</header>
<input placeholder="品名を入力してください" type="text">
<input id="addInput_stock" placeholder="置いている場所" type="text">
<input placeholder="今の在庫数" type="number">
<input id="addInput_stock" placeholder="最低ストック数" type="number">
<a onclick="setTimeout(function(){alert('登録処理');viewController.change('mainV');},400)">登録</a>
</div>
<div id="buyV" class="view">
<header>
<span onclick='viewController.change("mainV");'>← もどる</span>
</header>
<div class="scroll">
<div class="item" data-imp="0">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>0</span>個</div>
</div>
<div class="item" data-imp="0">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>0</span>個</div>
</div>
<div class="item" data-imp="1">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>10</span>個</div>
</div>
<div class="item" data-imp="1">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>1</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<br>
<br>
</div>
</div>
<div id="recordV" class="view">
<header>
<span onclick='viewController.change("mainV");'>← もどる</span>
</header>
<div class="scroll">
<div class="item" data-imp="0">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>0</span>個</div>
</div>
<div class="item" data-imp="0">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>0</span>個</div>
</div>
<div class="item" data-imp="1">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>10</span>個</div>
</div>
<div class="item" data-imp="1">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>1</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<div class="item" data-imp="2">
<div class="item_name" onclick="viewController.change('itemfuncV')">アイテム名</div>
<div class="item_rot">残り<span>30</span>個</div>
</div>
<br>
<br>
</div>
</div>
<div id="itemfuncV" class="view">
<header>
<span onclick='viewController.change("mainV");'>← もどる</span>
</header>
<a class="setNavF"onclick="alert()">
一つ使った
</a>
<a class="setNavF"onclick="">
まあまあ使った
</a>
<a class="setNavT" onclick="">
めっちゃ使った
</a>
<a class="setNavT"onclick="">
在庫がなくなった
</a>
<a class="setNavT"onclick="viewController.change('itemBuyV')">
買ってきた
</a>
</div>
<div id="itemBuyV" class="view">
<header>
<span onclick='viewController.change("mainV");'>← もどる</span>
</header>
<a class="setNavF"onclick="alert()">
一つ使った
</a>
<a class="setNavF"onclick="">
まあまあ使った
</a>
<a class="setNavT" onclick="">
めっちゃ使った
</a>
<a class="setNavT"onclick="">
在庫がなくなった
</a>
<a class="setNavT"onclick="">
買ってきた
</a>
</div>
</body>
</html>
<!--
何が
どこに
どれだけ
-->