-
Notifications
You must be signed in to change notification settings - Fork 13
/
options.html
45 lines (39 loc) · 1.42 KB
/
options.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
<!DOCTYPE html>
<html>
<head>
<title>Dify Chatbot Extension</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./tailwind.css" rel="stylesheet">
</head>
<body class="bg-gray-100 py-4 px-4 w-128">
<div class="max-w-md mx-auto bg-white shadow-md rounded-lg p-4">
<h2 class="text-2xl font-semibold mb-4">Dify Chatbot Extension</h2>
<form>
<div class="mb-4 flex items-center">
<div class="w-1/4">
<label for="chatbot-url" class="block font-semibold text-gray-700">ChatBot URL</label>
</div>
<div class="w-3/4">
<input type="text" id="chatbot-url" name="base-url" value=""
class="w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:border-blue-400"
placeholder="https://udify.app/chatbot/7CQBa5yyvYLSkZtx">
</div>
</div>
<div class="mb-4 flex items-center">
<div class="w-1/4"></div>
<div class="w-3/4">
<span id="error-tip" class="text-red-600"></span>
</div>
</div>
<div class="mb-4 flex items-center">
<div class="w-1/4"></div>
<div class="w-3/4">
<button id="save-button"
class="bg-blue-500 text-white py-2 px-4 rounded hover:bg-blue-600 focus:outline-none focus:bg-blue-600">Save</button>
</div>
</div>
</form>
</div>
<script src="options.js"></script>
</body>
</html>