The task is to make a progressbar. There is a get-request, it is necessary DURING its execution to display progress (picture), and to hide after it.
This is a query:$.get( "http://api-campus-kpi-ua.azurewebsites.net/Rnp/Filters", function( rnpFilters ) { populateRnpFilters(rnpFilters); });
The conclusion should be approximately as follows:$('.spinner').style.display = 'block';$('.spinner').style.display = 'none';
|