-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexplanation.html
95 lines (85 loc) · 1.69 KB
/
explanation.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
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<title>Explanation</title>
<link rel="icon" href="explain48.png" type="image/x-icon">
<style>
.toolbar {
display: none;
}
.popup {
width: 470px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
font-family: Arial, sans-serif;
}
.popup-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
background-color: #f1f1f1;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.popup-content {
padding: 16px;
}
.explanation {
font-size: 14px;
line-height: 1.5;
}
.popup-footer {
padding: 16px;
text-align: right;
}
.close-btn {
background-color: transparent;
border: none;
cursor: pointer;
font-size: 16px;
}
#follow-up-input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-bottom: 10px;
}
#follow-up-input:focus {
outline: none;
border-color: #4CAF50;
}
#ask-btn {
padding: 10px 20px;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
#ask-btn:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="popup">
<div class="popup-header">
<h2 id="header">Explanation</h2>
</div>
<div class="popup-content">
<p class="explanation" id="selected-text">Loading...</p>
<input type="text" id="follow-up-input" placeholder="Ask a follow-up question...">
<button id="ask-btn">Ask</button>
</div>
<div class="popup-footer">
</div>
</div>
<script src="popup.js"></script>
</body>
</html>