-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (36 loc) · 1.6 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<title>Menu Recommendation</title>
</head>
<body class="bg-dark">
<div class="container">
<h1 class="text-bg-light rounded-3 p-3 text-center">Menu Recommendation</h1>
<div class="chat-content" id="chat-messages">
<!-- <div class="line">
<span class="chat-box">Hello! What do you want to eat?</span>
</div>
<div class="line">
<span class="chat-box mine">I want to eat something spicy.</span>
</div> -->
</div>
<div class="input-group mb-3">
<input type="text" class="form-control" id="input" placeholder="메시지를 입력하세요." aria-label="Type your message" aria-describedby="button-addon2">
<button class="btn btn-outline-secondary" type="button" id="send">Send</button>
</div>
</div>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/chatbot.js"></script>
<script>
// document.querySelector('#send').addEventListener('click', function(){
// var template = '<div class="line"> <span class="chat-box mine">' + document.querySelector('#input').value + '</span> </div>';
// document.querySelector('.chat-content').insertAdjacentHTML('beforeend', template);
// document.querySelector('#input').value = '';
// })
</script>
</body>
</html>