Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function stop_timer() {
- p_result = document.getElementById('score');
- result = parseInt(p_result.innerHTML);
- p_result.innerHTML = '0';
- var csrftoken = getCookie('csrftoken');
- console.log(csrftoken);
- $.ajax({
- url: "/ajax_result/",
- type: 'POST',
- dataType: 'json',
- data: {
- 'result': result,
- csrfmiddlewaretoken : csrftoken,
- },
- success: function(){
- alert('wow!');
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement