-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupload.html
80 lines (77 loc) · 2.47 KB
/
upload.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
<!DOCTYPE html>
<html lang="zh-Hant-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+TC:400,700" rel="stylesheet">
<link rel="stylesheet" href="./stylesheets/upload.css">
<script src="https://www.gstatic.com/firebasejs/5.7.3/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBq-sReHlA33BI9Q2zwVGmQblMvicq15Vw",
authDomain: "webp-final.firebaseapp.com",
databaseURL: "https://webp-final.firebaseio.com",
projectId: "webp-final",
storageBucket: "",
messagingSenderId: "157244466517"
};
firebase.initializeApp(config);
var db = firebase.database()
</script>
<script src="./javascripts/nav.js" defer></script>
<script src="./javascripts/upload.js" defer></script>
<title>台灣景點介紹</title>
</head>
<body>
<div class="modal-back" hidden>
<div class="modal">
<div class="topbar">
<div id="close">X</div>
</div>
<div class="article">
<img src="" alt="這裡應該要是圖片">
<div class="text"></div>
</div>
<div class="article">
<div class="text"></div>
<img src="" alt="這裡應該要是圖片">
</div>
</div>
</div>
<nav>
<div id="logo">認識台灣</div>
<div id="buttons">
<a href="./index.html">首頁</a>
<a href="./about.html">關於我們</a>
<a href="./fruit.html">小農水果</a>
<a href="./comment.html">留言板</a>
</div>
<img src="./images/menu.png" id="mobile-menu"></img>
</nav>
<div id="menu" hidden>
<a href="./index.html">首頁</a>
<a href="./about.html">關於我們</a>
<a href="./fruit.html">小農水果</a>
<a href="./comment.html">留言板</a>
</div>
<article>
<h1>上傳您的商品</h1>
<div id="form">
<img id="image" src="https://fakeimg.pl/400x300/?retina=1&text=%E9%BB%9E%E6%AD%A4%E4%B8%8A%E5%82%B3&font=noto" onclick="document.querySelector('input#image').click()" alt="">
<input type="file" name="image" id="image" hidden>
<h3>商品名稱</h3>
<input type="text" name="title" id="title">
<h3>商品產地</h3>
<input type="text" name="origin" id="origin">
<h3>商品價格</h3>
<input type="number" name="price" id="price">
<h3>聯絡資訊</h3>
<input type="text" name="contact" id="contact">
<h3></h3>
<button id="submit">送出</button>
</div>
</article>
</body>
</html>