Skip to content

Commit

Permalink
Make chatbox blink
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewStefan authored May 17, 2023
1 parent 819c5b7 commit 95cc453
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions frontend/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ textarea-webkit-scrollbar {
width: 100%;
padding: 5px;
border-radius: 0px 0px 10px 10px;
animation: border-flicker-green 0.5s linear;
}

#sendButton {
Expand Down Expand Up @@ -312,6 +313,24 @@ textarea-webkit-scrollbar {
}
}

@keyframes border-flicker-green {
0% {
box-shadow: 5px 5px 20px #09ff00;
}
25% {
box-shadow: 5px 5px 20px #09ff00;
}
50% {
box-shadow: 5px 5px 50px #09ff00;
}
75% {
box-shadow: 5px 5px 20px #09ff00;
}
100% {
box-shadow: 5px 5px 20px #09ff00;
}
}


/*========== css related to chats elements============= */

Expand Down
10 changes: 10 additions & 0 deletions frontend/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,16 @@ function doScaledTimeout(i, response, summed_timeout) {
}, summed_timeout);
}

function blink() {
var f = document.getElementById('keypad');
setTimeout(function() {
f.style.boxShadow = '5px 5px 50px #09ff00';
setTimeout(function() {
f.style.boxShadow = 'none';
}, 1000);
}, 1000);
}


//====================================== Toggle chatbot =======================================
$("#profile_div").click(function () {
Expand Down

0 comments on commit 95cc453

Please sign in to comment.