-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (88 loc) · 3.15 KB
/
index.html
File metadata and controls
93 lines (88 loc) · 3.15 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wellbeing AI Chatbot</title>
<link rel="stylesheet" href="styles.css">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<style>
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background-color: #ff7f00;
}
.left-buttons {
display: flex;
gap: 10px;
}
.paypal-button-container {
margin-left: auto;
}
</style>
</head>
<body>
<header class="header-container">
<div class="left-buttons">
<button id="enter-name-btn">Enter your name</button>
<button id="help-btn">Help</button>
</div>
<select id="language-selection">
<option value="en-US">English (US)</option>
<option value="hi-IN">Hindi</option>
<option value="ko-KR">Korean</option>
<option value="cmn-CN">Chinese</option>
</select>
<div id="paypal-button-container" class="paypal-button-container"></div>
</header>
<div id="chat-container">
<div id="message-area"></div>
<div id="input-area">
<input type="text" id="text-input" placeholder="Type your message here..." autocomplete="off">
<button id="send-button">Send</button>
<button id="mic-button">TALK</button>
</div>
</div>
<footer>
<p>Developed by Sandeep Roy</p>
</footer>
<script src="app.js"></script>
<!-- PayPal SDK -->
<script src="https://www.paypal.com/sdk/js?client-id=AVwPaq_689uNFOmhKUBsrTYQHwYS2bIgIO8nE3ed2zDEHA3u1O9yOB8DvCj_iJ4C6ef9pDQnDZvA4XT3¤cy=USD"></script>
<script>
paypal.Buttons({
style: {
layout: 'horizontal',
size: 'small',
color: 'gold',
shape: 'pill',
label: 'paypal',
tagline: false
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '1.00' // The price of the item (in USD)
}
}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
alert('Transaction completed by ' + details.payer.name.given_name);
});
},
onCancel: function (data) {
alert('Transaction was cancelled.');
},
onError: function (err) {
console.error('PayPal checkout error:', err);
alert('An error occurred during the transaction.');
}
}).render('#paypal-button-container'); // Render the PayPal button
</script>
</body>
</html>