Skip to content

Commit f9a5ca1

Browse files
committed
Minor source code improvements and bug fixes
1 parent fda0553 commit f9a5ca1

5 files changed

Lines changed: 60 additions & 13 deletions

File tree

assets/css/chatbot.css

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
position: fixed;
2727
bottom: 100px;
2828
right: 40px;
29-
width: 400px;
30-
max-height: 600px;
29+
width: 640px;
30+
max-height: 480px;
3131
background: var(--text-color);
3232
border: 1px solid var(--border-color);
3333
border-radius: 8px;
@@ -86,6 +86,55 @@
8686
margin-left: auto;
8787
}
8888

89+
.bot-typing {
90+
display: flex;
91+
align-items: center;
92+
gap: 4px;
93+
font-style: italic;
94+
color: #555;
95+
padding: 8px 12px;
96+
background: #f3f3f3;
97+
border-radius: 12px;
98+
width: fit-content;
99+
margin: 8px 0;
100+
}
101+
102+
.bot-typing::after {
103+
content: "";
104+
display: inline-block;
105+
width: 8px;
106+
height: 8px;
107+
border-radius: 50%;
108+
background-color: #555;
109+
box-shadow:
110+
8px 0 0 #555,
111+
16px 0 0 #555;
112+
animation: typingDots 1s steps(3, end) infinite;
113+
}
114+
115+
@keyframes typingDots {
116+
0% {
117+
box-shadow:
118+
8px 0 0 #555,
119+
16px 0 0 #555;
120+
}
121+
33% {
122+
box-shadow:
123+
0 0 0 #555,
124+
16px 0 0 #555;
125+
}
126+
66% {
127+
box-shadow:
128+
0 0 0 #555,
129+
8px 0 0 #555;
130+
}
131+
100% {
132+
box-shadow:
133+
8px 0 0 #555,
134+
16px 0 0 #555;
135+
}
136+
}
137+
89138
.bot-message {
90139
background-color: #e9e9eb;
91140
color: #333;
@@ -122,7 +171,7 @@
122171
background-color: red;
123172
}
124173

125-
@media screen and (min-width: 320px) and (max-width: 550px) {
174+
@media screen and (min-width: 320px) and (max-width: 725px) {
126175
.chat-toggle {
127176
bottom: 70px;
128177
right: 15px;
@@ -133,7 +182,6 @@
133182
}
134183
.chatbot-widget {
135184
width: 96%;
136-
max-height: 750px;
137185
bottom: 60px;
138186
right: 8px;
139187
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

assets/img/artificial_chatbot.webp

12.6 KB
Loading

assets/js/config.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/function.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,12 @@ <h1>
379379
<div class="desc" title="Project Description">
380380
<h2>
381381
A playground for experimenting with analytics implementation on a web
382-
app tracked on Google Analytics 4 (GA4) through GTM, Adobe Analytics
383-
(AA) via Tealium iQ, Amplitude Analytics, Mixpanel Product Analytics,
384-
New Relic LogRocket and TrackingPlan.
382+
app.
385383
</h2>
386384
<h3>
387-
Adobe Data Collection (Launch), Heap Analytics, and LaunchDarkly are
388-
installed as experiment tool not fully implemented.
385+
Tools: GTM, GA4, Tealium iQ, Adobe Analytics, Amplitude Analytics,
386+
Mixpanel Product Analytics, New Relic LogRocket, TrackingPlan, Adobe
387+
Data Collection (Launch), Heap Analytics, and LaunchDarkly.
389388
</h3>
390389
<span class="github-banner" title="Github Repository">
391390
<a
@@ -1301,7 +1300,7 @@ <h2>We value your privacy</h2>
13011300
title="Chat with Us!"
13021301
>
13031302
<img
1304-
src="https://cdn3.iconfinder.com/data/icons/chatbot-robot/100/chatbot_01_16_bot_chat_robot_app_artificial_chatbot_dialog-1024.png"
1303+
src="assets/img/artificial_chatbot.webp"
13051304
width="100px"
13061305
height="100px"
13071306
alt="Chatbot Icon"
@@ -1328,7 +1327,7 @@ <h2>We value your privacy</h2>
13281327
placeholder="Type your message..."
13291328
autocomplete="off"
13301329
/>
1331-
<button id="send-btn">Send</button>
1330+
<button id="send-btn" name="action">Send</button>
13321331
</div>
13331332
</div>
13341333

0 commit comments

Comments
 (0)