-
Notifications
You must be signed in to change notification settings - Fork 3
/
register_board.html
74 lines (68 loc) · 3.12 KB
/
register_board.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
</head>
<body>
<label for="title">제목 : </label>
<input id="title" value="" />
<br />
<label for="recruitment_number">모집인원 : </label>
<input id="recruitment_number" />
<br />
<label for="author">작성자 : </label>
<input id="author" />
<br />
<!-- <label for="date">등록일 : </label> -->
<!-- <input id="date" /> -->
<!-- <br /> -->
<label for="term">과외 기간 : </label>
<input id="term" /><br />
<br />
<label id="textarea">내용 작성 : </label>
<br />
<textarea id="text" name="text" rows="20" cols="100"></textarea>
<br />
<button id="save">저장하기</button>
<button id="cancel">취소하기</button>
<script>
// import { initializeApp } from "https://www.gstatic.com/firebasejs/9.4.0/firebase-app.js";
// import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.4.0/firebase-analytics.js";
// import firebase from "https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js";
// import "https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js";
// const firebase = require("firebase");
// Required for side-effects
// require("firebase/firestore");
// firebase.initializeApp({
// apiKey: "AIzaSyDiOMeXpGNgYBSphTJZN4cZLeJRCtV9Ae4",
// authDomain: "wnc-deachung.firebaseapp.com",
// projectId: "wnc-deachung",
// });
const firebaseConfig = {
apiKey: "AIzaSyDiOMeXpGNgYBSphTJZN4cZLeJRCtV9Ae4",
authDomain: "wnc-deachung.firebaseapp.com",
projectId: "wnc-deachung",
storageBucket: "wnc-deachung.appspot.com",
messagingSenderId: "769266517788",
appId: "1:769266517788:web:7f37d9571d2850627ddcd9",
measurementId: "G-Y3NNN50WLQ",
};
firebase.initializeApp(firebaseConfig);
var db = firebase.firestore();
// Import the functions you need from the SDKs you need
// import { initializeApp } from "firebase/app";
// import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
// Initialize Firebase
</script>
<script src="./register_board.js"></script>
</body>
</html>