"+"Please make sure you are using the latest version of your browser. We recommend "+"Mozilla Firefox, Google Chrome, or Microsoft Edge.");});var json_url=window.location.href.replaceAll(/([?&])format=(html|browser)/g,"$1format=json.split");$("a#json").attr("href",json_url);$("a#csv").attr("href",window.location.href.replaceAll(/([?&])format=(html|browser)/g,"$1format=csv"));$("a#tsv").attr("href",window.location.href.replaceAll(/([?&])format=(html|browser)/g,"$1format=tsv"));$("#statusbar").on("click",function(){this.classList.toggle("expanded");});var COLNAMESEP=(window.location.href.search(/\/data\//)>=0)?"/":".";var format_header_minimal=true;if((json_url.search(/[?&]format\.header\.minimal/)<0)||(json_url.search(/[?&]format\.header\.minimal=0(&|$)/)>=0)){json_url+="&format.header.multi=1";format_header_minimal=false;}$.ajax({url:json_url,type:"GET",data:{}}).done(function(json){requestAnimationFrame(function(){$("#grid").html("Data received in full, visualizing table...
"+"If the table is large, this may be slow. It is recommended to work with large tables only programmatically.");requestAnimationFrame(function(){if(json.data.length===0){show_error("The table contains no data; please check the validity of the request");return;}$("body").css("padding",0).css("margin",0).css("overflow","hidden");$("#header").html("");if(DEBUG){json.columns.unshift("#");for(var j=0;j=0)&&(window.location.href.search(/[?&]schema=0(&|$)/)<0));roll_the_grid(json,(!is_schema),COLNAMESEP);});});}).fail(function(jqXHR){var message=(jqXHR.responseText===undefined)?"Error communicating with the API":jqXHR.responseText;if(jqXHR.status===504)message="Request/response too large";$("#grid").html(message);});});