-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (138 loc) · 5.1 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<title>CARDIOsetu</title>
<style>
/* Chatbot container */
#chatbot {
position: fixed;
bottom: 10px;
right: 10px;
width: 350px; /* Chatbot window width */
height: 300px; /* Chatbot window height */
background-color: lightskyblue; /* Light grey background color */
border-radius: 15px; /* Rounded corners */
padding: 15px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
display: none; /* Initially hidden */
overflow-y: auto; /* Scrollable chat window */
}
/* Chatbot header */
#chatbotHeader {
font-weight: bold;
text-align: center;
margin-bottom: 10px;
color: darkblue;
}
/* Chatbot button */
#chatbotButton {
position: fixed;
bottom: 20px;
right: 20px;
background-color: white;
color: black;
padding: 15px;
border-radius: 50%;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
</style>
</head>
<body>
<header>
<div class="container">
<div class="logo">
<p class="main">Welcome</p>
<p class="sub">“We Belive in Inclusion”</p>
</div>
<div class="links">
<ul class="sec1">
<li><a href="homefiles\Info_Page\Info_Page.html">About us</a></li>
<li><a href="homefiles\Info_Page\Info_Page.html">Patient</a></li>
<li><a href="homefiles\Info_Page\Info_Page.html">Staff</a></li>
<li><a href="homefiles\Info_Page\Info_Page.html">Admin</a></li>
</ul>
</div>
</div>
</header>
<section class="section1">
<div class="subsec">
<div>
<p class="heading">CARDIOsetu</p>
</div>
<div>
<p class="subheading">“Aiming for healthy hearts”</p>
</div>
<div>
<button class="butt">
<a href="homefiles\Info_Page\Info_Page.html">Already a user</a>
</button>
</div>
<div>
<button class="butt">
<a href="homefiles\Info_Page\Info_Page.html">New user</a>
</button>
</div>
</div>
</section>
<!-- Chatbot button -->
<div id="chatbotButton" onclick="toggleChatbot()">
<i class="fa fa-comment"></i>
</div>
<!-- Chatbot container -->
<div id="chatbot">
<div id="chatbotHeader">Chatbot</div>
<div id="chatbotContent">
<div id="chatMessages">
<!-- Chat messages will be appended here -->
</div>
<div>
<input type="text" placeholder="Type your question..." id="chatInput" onkeypress="checkKeyPress(event)">
<button onclick="sendMessage()">Send</button>
<button onclick="makeCall()">Call Us</button>
<a href="homefiles/customer_support/video_guide.html" target="_blank">For Video Guide click</a>
</div>
</div>
</div>
<script>
function toggleChatbot() {
var chatbot = document.getElementById('chatbot');
chatbot.style.display = chatbot.style.display === 'none' ? 'block' : 'none';
}
function checkKeyPress(event) {
if (event.key === 'Enter') {
sendMessage();
}
}
function sendMessage() {
var chatInput = document.getElementById('chatInput');
var message = chatInput.value.trim();
if (message !== '') {
// Display the user's message in the chat window
var chatMessages = document.getElementById('chatMessages');
var messageElement = document.createElement('p');
messageElement.textContent = "You: " + message;
chatMessages.appendChild(messageElement);
// Clear the input field
chatInput.value = '';
// Here you can add code to process the message or send it to a server
// For demonstration, we are just displaying it in the chat window
}
}
function makeCall() {
var phoneNumber = "9968219765";
window.open('tel:' + phoneNumber);
}
</script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
</body>
</html>