/
index.html
84 lines (73 loc) · 2.34 KB
/
index.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
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="背不起來的就寫下來吧。">
<meta property="og:type" content="website">
<meta property="og:title" content="Gua's Note">
<meta property="og:url" content="https://guahsu.io/">
<meta property="og:site_name" content="Gua's Note">
<title>用 Vue.js + Firebase 製作即時聊天功能 | Gua's Note </title>
<script src="https://www.gstatic.com/firebasejs/4.3.1/firebase.js"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-84594235-4', 'auto');
ga('send', 'pageview');
let config = {
apiKey: "AIzaSyB_27TotbJL9wsGD8oyWp5LtAmQPhWeSQU",
authDomain: "vue-chat-8083f.firebaseapp.com",
databaseURL: "https://vue-chat-8083f.firebaseio.com",
projectId: "vue-chat-8083f",
storageBucket: "vue-chat-8083f.appspot.com",
messagingSenderId: "165649429377"
};
firebase.initializeApp(config);
</script>
</head>
<body>
<style>
body {
margin-top: 48px;
}
.GuaHsu-header {
position: absolute;
left: 0;
top: 0;
width: 100%;
background-color: #333;
text-align: center;
padding: 10px 0px;
color: #7ff3cb;
font-size: 15px;
font-weight: 100;
z-index: 999;
}
.GuaHsu-header span {
margin: 0 5px;
}
.GuaHsu-header a {
text-decoration: none;
color: unset;
}
</style>
<div class="GuaHsu-header">
<span><a href="https://guahsu.io/2017/09/vue-firebase-realtime-line-chat/" target="_blank">練習心得</a></span>
<span>|</span>
<span><a href="https://github.com/guahsu/vue-firebase-line-chat/" target="_blank">GitHub</a></span>
</div>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>