This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php include '../_layouts/_head.php'; ?> | |
<body class="hold-transition sidebar-mini layout-fixed" ng-app="myApp"> | |
<div class="wrapper"> | |
<!-- Navbar --> | |
<?php include '../_layouts/_navbar.php'; ?> | |
<!-- /.navbar --> | |
<!-- Main Sidebar Container --> | |
<?php include '../_layouts/_sidebar.php'; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('myApp', []); | |
app.config(function($httpProvider) { | |
//Enable cross domain calls | |
$httpProvider.defaults.useXDomain = true; | |
//Remove the header containing XMLHttpRequest used to identify ajax call | |
//that would prevent CORS from working | |
delete $httpProvider.defaults.headers.common['X-Requested-With']; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php header("Location: indonesia"); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php include '../_layouts/_head.php'; ?> | |
<body class="hold-transition sidebar-mini layout-fixed"> | |
<div class="wrapper"> | |
<!-- Navbar --> | |
<?php include '../_layouts/_navbar.php'; ?> | |
<!-- /.navbar --> | |
<!-- Main Sidebar Container --> | |
<?php include '../_layouts/_sidebar.php'; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = "https://min-api.cryptocompare.com/data/pricemulti?fsyms=BTC,ETH&tsyms=USD,EUR"; | |
const url_summaries = "https://api.kawalcorona.com/indonesia/"; | |
const url_details = "https://api.kawalcorona.com/indonesia/provinsi/"; | |
const vm = new Vue({ | |
el: '#app', | |
data: { | |
results: [], | |
summaries: [], | |
details: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php include '../_layouts/_head.php'; ?> | |
<body class="hold-transition sidebar-mini layout-fixed"> | |
<div class="wrapper"> | |
<!-- Navbar --> | |
<?php include '../_layouts/_navbar.php'; ?> | |
<!-- /.navbar --> | |
<!-- Main Sidebar Container --> | |
<?php include '../_layouts/_sidebar.php'; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = "https://min-api.cryptocompare.com/data/pricemulti?fsyms=BTC,ETH&tsyms=USD,EUR"; | |
const url_sumConfirmed = "https://api.kawalcorona.com/positif/"; | |
const url_sumRecovered = "https://api.kawalcorona.com/sembuh/"; | |
const url_sumDeaths = "https://api.kawalcorona.com/meninggal/"; | |
const url_details = "https://api.kawalcorona.com/"; | |
const vm = new Vue({ | |
el: '#app', | |
data: { | |
results: [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
from prettytable import PrettyTable | |
import json | |
def total_indonesia(): | |
print('*** TOTAL COVID-19 INDONESIA') | |
print('----------------------------------------') | |
print(f'Positif : ') | |
print(f'Sembuh : ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def total_indonesia(): | |
url = "https://api.kawalcorona.com/indonesia/" | |
data = requests.get(url).text | |
obj = json.loads(data) | |
#print(data) | |
for summary in obj: | |
print('*** TOTAL COVID-19 INDONESIA') | |
print('----------------------------------------') | |
print(f'Positif : {summary["positif"]}') | |
print(f'Sembuh : {summary["sembuh"]}') |