-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (105 loc) · 2.74 KB
/
index.html
File metadata and controls
113 lines (105 loc) · 2.74 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!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" />
<title>Progress AI & Todo List</title>
<link rel="stylesheet" href="index.css" />
<style>
body {
font-family: Arial, sans-serif;
padding: 10px;
min-width: 250px;
}
#chatbox {
width: 100%;
height: 300px;
border: 1px solid #ddd;
padding: 10px;
overflow-y: scroll;
margin-bottom: 20px;
}
#userInput {
width: 80%;
padding: 10px;
}
#sendBtn {
width: 15%;
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
h1, h2 {
margin-top: 20px;
}
</style>
<script defer src="index.js"></script>
</head>
<body>
<!-- AI Chatbot Section -->
<h1>AI Chatbot</h1>
<div id="chatbox"></div>
<input type="text" id="userInput" placeholder="Type a message..." />
<button id="sendBtn">Send</button>
<!-- Todo List Section -->
<h1>Today Todo List</h1>
<form>
<section>
<h2>Add new item</h2>
<label>
<span>Title</span>
<input type="text" name="title" value="Example URL" />
</label>
<label>
<span>URL</span>
<input type="text" name="url" value="https://example.com/*" />
</label>
<label>
<span>Has been read</span>
<select name="read" value="no">
<option value="no">Today</option>
<option value="yes">Yesterday</option>
</select>
</label>
<button type="button" id="add-item">Add item</button>
<p id="error"></p>
</section>
<section>
<h2>Items</h2>
<table id="items">
<tr>
<th>Title</th>
<th>Read</th>
<th>Created At</th>
<th>Actions</th>
</tr>
</table>
</section>
<section>
<h2>Yesterday Typed URLs:</h2>
<div id="typedUrl_div"></div>
</section>
</form>
<template id="table-item">
<tr>
<td><a>Title</a></td>
<td>
<select name="read" value="no">
<option value="no">Today</option>
<option value="yes">Yesterday</option>
</select>
</td>
<td>1/1/1970, 00:00:00</td>
<td>
<button class="update-button">Update</button>
<button class="delete-button">Delete</button>
</td>
</tr>
</template>
<script src="popup.js"></script>
<script src="request.js"></script>
</body>
</html>