I am currently getting timestamps using javascript as soon as the user 
types words in the tab. This timestamp is stored in an array.

I want to get that timestamp into my Django template and display it on the 
screen.

This is my Javascript code 
<script>
const durations = [];
$('#in').keydown(function (e) {
durations.push($.now());
}).keyup(function (e) {
console.log(
['time elapsed:', durations].join(' ')
)
});
</script>

Can someone please help me out. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/919d23d2-f153-4ee3-bc01-f987e80e7aa5n%40googlegroups.com.

Reply via email to