{"id":560,"date":"2020-04-30T09:03:04","date_gmt":"2020-04-30T09:03:04","guid":{"rendered":"https:\/\/themes.jibdara.com\/doctrine\/?page_id=560"},"modified":"2020-04-30T09:03:04","modified_gmt":"2020-04-30T09:03:04","slug":"coronavirus-outbreak","status":"publish","type":"page","link":"https:\/\/themes.envytheme.com\/covid19\/coronavirus-outbreak\/","title":{"rendered":"Coronavirus Outbreak"},"content":{"rendered":"\r\n<div class=\"ncov2019\"><p>Sort by confirmed numbers.<\/p><div id=\"cov_table_container\"><table id=\"cov_all_table\"><tbody><tr><th>Country or Region<\/th><th>Cases<\/th><th>Deaths<\/th><th>Recovered<\/th><\/tr><\/tbody><\/table><i class=\"cov-loading3\"><\/i><\/div><\/div>\r\n<div class=\"pt-100 bg-gray\">\r\n<div class=\"ncov2019\"><div class=\"cov_chart_wrapper\"><i class=\"cov-loading2\"><\/i><canvas id=\"cov_hs_all\" class=\"cov\"><\/canvas><\/div><script>var getJSON=function(url,type){type=type||'get';return new Promise(function(resolve,reject){var xhr=new XMLHttpRequest();xhr.open(type,url,true);xhr.responseType='json';xhr.onload=function(){var status=xhr.status;if(status==200){resolve(xhr.response)}else{reject(status)}};xhr.send()})};getJSON('https:\/\/disease.sh\/v3\/covid-19\/historical\/all?lastdays=all').then(function(data){var config={type:'line',data:{labels:Object.keys(data.cases),datasets:[{label:cov__cases,backgroundColor:window.chartColors.red,borderColor:window.chartColors.red,data:Object.values(data.cases),fill:false,},{label:cov__deaths,fill:false,backgroundColor:window.chartColors.gray,borderColor:window.chartColors.gray,data:Object.values(data.deaths),}]},options:{responsive:true,devicePixelRatio:4,elements:{line:{borderWidth:4},point:{radius:4,hoverRadius:8}},title:{display:true,text:cov__history_global,fontSize:30,},legend:{display:true,labels:{fontSize:12,padding:20,}},tooltips:{mode:'index',intersect:false,titleFontSize:20,},tooltipFontSize:20,hover:{mode:'nearest',intersect:true},scales:{x:{display:true,ticks:{fontSize:14}},y:{display:true,ticks:{fontSize:14}}},maintainAspectRatio:false}};var ctx=document.getElementById('cov_hs_all').getContext('2d');window.myLine=new Chart(ctx,config)},function(status){console.log(status)});<\/script><\/div>\r\n<\/div>\r\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":223,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"acf":[],"_links":{"self":[{"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/pages\/560"}],"collection":[{"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":0,"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/pages\/560\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/media\/223"}],"wp:attachment":[{"href":"https:\/\/themes.envytheme.com\/covid19\/wp-json\/wp\/v2\/media?parent=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}