File size: 1,917 Bytes
5d586ab
 
 
 
 
 
171f0f9
cad87ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d1b9ce
 
 
 
 
 
 
 
 
 
cad87ca
5d586ab
 
 
3d1b9ce
 
 
5d586ab
 
 
 
 
 
 
 
cad87ca
 
 
 
171f0f9
5d586ab
dbd2afb
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Chef Bot</title>
    <link rel="stylesheet" href="/static/styles.css">
    <style>
        .popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            z-index: 1000;
            max-height: 80vh;
            overflow-y: auto;
        }
        .popup-content {
            max-width: 300px;
        }
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }
        .reset-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #f28c38;
        }
    </style>
</head>
<body>
    <div class="chat-container">
        <div class="chat-header">🍳 Chef Bot
            <button class="reset-btn" onclick="resetChat()"></button>
        </div>
        <div class="chat-messages" id="chatMessages">
            <div class="bot-message">Hi there! I'm Chef Bot! May I know your name?</div>
        </div>
        <div class="chat-input">
            <input type="text" id="userInput" placeholder="Type your response...">
            <button onclick="sendMessage()">Send</button>
        </div>
    </div>
    <div id="popup" class="popup">
        <span class="close-btn" onclick="closePopup()">×</span>
        <div class="popup-content" id="popupContent"></div>
    </div>
    <script src="/static/script.js"></script>
</body>
</html>