Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: refactored
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.452 kb
$(document).ready ->
check_result = (number) ->
$.get '/primes/check',
number: number,
(data) ->
if data == number + ': checking'
$.doTimeout(5000, check_result(number))
else
$('div#numbers > div#' + number).html(data)
$('input#check').click ->
number = $('input#number').val()
$('div#numbers').append('<div id="' + number + '">' + number + ': checking</div>')
check_result(number)
Jump to Line
Something went wrong with that request. Please try again.