Add timer functionality to the aider chat session.

This commit is contained in:
Paul Gauthier 2023-08-10 22:36:10 -03:00
parent 4861a1de2e
commit 37d1504b5e

View file

@ -52,12 +52,14 @@ the aider chat session.
</style> </style>
<script> <script>
window.onload = function() {
var counter = 0; var counter = 0;
var timer = document.getElementById('timer'); var timer = document.getElementById('timer');
setInterval(function() { setInterval(function() {
counter = (counter + 0.1) % 10; counter = (counter + 0.1) % 10;
timer.textContent = counter.toFixed(1); timer.textContent = counter.toFixed(1);
}, 100); }, 100);
}
</script> </script>
<div style="display: inline-block; position: relative; width: 200px; background-color: #f0f0f0; border-radius: 10px; padding: 10px; color: #333; font-family: 'Comic Sans MS', 'Comic Sans', 'Marker Felt', sans-serif;"> <div style="display: inline-block; position: relative; width: 200px; background-color: #f0f0f0; border-radius: 10px; padding: 10px; color: #333; font-family: 'Comic Sans MS', 'Comic Sans', 'Marker Felt', sans-serif;">