Spaces:
Runtime error
Runtime error
Update templates/chatwidget.html
Browse files- templates/chatwidget.html +25 -1
templates/chatwidget.html
CHANGED
@@ -565,8 +565,19 @@
|
|
565 |
font-size: medium;
|
566 |
border-radius: 25px;
|
567 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
</style>
|
569 |
-
|
|
|
|
|
|
|
|
|
570 |
<div class="marwadi">
|
571 |
Welcome To AI Bestie
|
572 |
<div class="bestie">
|
@@ -864,6 +875,19 @@
|
|
864 |
}
|
865 |
},
|
866 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
867 |
});
|
868 |
</script>
|
869 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
|
565 |
font-size: medium;
|
566 |
border-radius: 25px;
|
567 |
}
|
568 |
+
#clear-button{
|
569 |
+
background:red;
|
570 |
+
}
|
571 |
+
.header{
|
572 |
+
display:flex;
|
573 |
+
justify-content:flex-end;
|
574 |
+
}
|
575 |
</style>
|
576 |
+
<header class='header'>
|
577 |
+
<button class="input-submit-button" id="clear-button">
|
578 |
+
Clear history
|
579 |
+
</button>
|
580 |
+
</header>
|
581 |
<div class="marwadi">
|
582 |
Welcome To AI Bestie
|
583 |
<div class="bestie">
|
|
|
875 |
}
|
876 |
},
|
877 |
});
|
878 |
+
});
|
879 |
+
|
880 |
+
$("#clear-button").click(function () {
|
881 |
+
$.ajax({
|
882 |
+
url: "/delete-history",
|
883 |
+
type: "GET",
|
884 |
+
headers: {
|
885 |
+
"Content-Type": "application/json",
|
886 |
+
},
|
887 |
+
success: function (data) {
|
888 |
+
console.log(data)
|
889 |
+
},
|
890 |
+
});
|
891 |
});
|
892 |
</script>
|
893 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|