-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuploadFile.html
66 lines (59 loc) · 2.79 KB
/
uploadFile.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DRIVING TEST RANKING</title>
<!-- Bootstrap 4.4, fontawesome 5.5 -->
<link rel="stylesheet" href="./library/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="./library/fontawesome/css/all.min.css" >
<!-- Custom CSS for pages -->
<link rel="stylesheet" href="./css/utils.css">
<link rel="stylesheet" href="./css/colors.css">
<link rel="stylesheet" href="./css/auth.css">
<link rel="stylesheet" href="./css/userPage.css">
</head>
<body>
<div id="app" class="container">
<h2 class="text-center text-uppercase m-5 font-weight-bold">Trang nhập dữ liệu excel => fireStore</h2>
<div class="row p-5">
<label class="mb-3 col-4 ">FILE LOAD : </label>
<input type="file" id="file" class="mb-3 col-8 rounded border p-1">
<label class="mb-3 col-4">Link to Collection : </label>
<input type="text" id="collection" class="mb-3 col-8 rounded border p-1" placeholder=" Nhập đường link đến collection vào đây" >
<label class="mb-3 col-4 ">Mục đích:</label>
<select id="actionType" class="mb-3 col-8 rounded border p-1"">
<option value="update">Cập nhật Collection có sẵn</option>
<option value="create">Tạo 1 Collection mới</option>
</select>
<div>
<button class="mb-3 mx-3 btn btn-success upload">UPLOAD TO FIRE STORE</button>
</div>
</div>
<div class="progress mb-3">
<div class="progress-bar progress-bar-striped upload-progress bg-success" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="results w-100"></div>
</div>
<!-- FIREBASE CONFIG -->
<script src="https://www.gstatic.com/firebasejs/7.14.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.2/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.2/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.2/firebase-storage.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyD4lsMzI1dSI-hHZmNb9xwe2ukOZw0Nqx8",
authDomain: "driving-test-exam.firebaseapp.com",
databaseURL: "https://driving-test-exam.firebaseio.com",
projectId: "driving-test-exam",
storageBucket: "driving-test-exam.appspot.com",
messagingSenderId: "514702656135",
appId: "1:514702656135:web:523ea9c90e5447cc1d6e22"
};
firebase.initializeApp(firebaseConfig);
</script>
<!-- CONVERT EXCEL (USE LATER IN ADMIN PAGE) -->
<script src="./js/utils/uploadFile/xlsx.full.min.js"></script>
<script src="./js/utils/uploadFile/convertExcel.js"></script>
</body>
</html>