Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkStatus() {
- $.post("status.php", { phone_number : $("#phone_number").val() },
- function(data) { updateStatus(data.status); }, "json");
- }
- function updateStatus(current) {
- if (current === "unverified") {
- $("#status").append(".");
- setTimeout(checkStatus, 3000);
- }
- else {
- success();
- }
- }
- function success() {
- $("#status").text("Verified!");
- }
Add Comment
Please, Sign In to add comment