-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (34 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en">
<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">
<link href="styles.css" type="text/css" rel="stylesheet">
<link rel="icon" href="diaryicon.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<title>Diary</title>
</head>
<body>
<button class="add_button" onclick="add_new()"><b>+ Add to diary</b></button>
<div id="add_form">
<label>Add the date here : </label><br>
<input type="date" id="date_box" style="width:150px"/></br>
<textarea type="text" id="text_box" placeholder="write your message here.✍ "></textarea></br>
<label>You can add images here :</label><br>
<input type="file" id="text_image" placeholder="upload your image.."></br></br>
<button class="add_data btn btn-primary">Add </button>
</div>
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase.js"></script>
<script src="firebase.js"></script>
<div class="diary">
Start adding to your diary...... 😊
<script>display_diary()</script>
</div>
</body>
<script>
function add_new(){
document.getElementById("add_form").style.display="block";
}
</script>
</html>