JSFiddle - React, Tailwind, and code Playground

by alexbfree

JavaScript

var p = $.ajax({
    url: 'http://experiments.zooniverse.org/experiment/SerengetasdiAwarenessExperiment1?userid=sdfsdfdsf&subjectid=123123',
    dataType: 'json',
    error: function (jqXHR, textStatus, errorThrown) {
        console.log('error');
    }
}).promise().done(function (data, textStatus, jqXHR) {
    console.log(data.cohort);
}).fail(function (jqXHR, textStatus, errorThrown) {
    console.log('fail');
})

p.always( function() {
    console.log("do the rest");
});