Last active
September 12, 2022 18:19
-
-
Save hieptl/1e38b8d3c26652f4a3b74d5dd4e01547 to your computer and use it in GitHub Desktop.
Chat App with Firebase - index.html - 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Firebase RealTime Chat</title> | |
<link rel="stylesheet" href="./index.css"> | |
</head> | |
<body> | |
<header> | |
<h2>Firebase RealTime Chat</h2> | |
</header> | |
<div id="chat"> | |
<!-- messages will display here --> | |
<ul id="messages"></ul> | |
<!-- form to send message --> | |
<form id="message-form"> | |
<input id="message-input" type="text" /> | |
<button id="message-btn" type="submit">Send</button> | |
</form> | |
</div> | |
<!-- scripts --> | |
<script src="https://www.gstatic.com/firebasejs/8.2.1/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.2.1/firebase-database.js"></script> | |
<script src="index.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment