forked from pogosandbox/pogosandbox.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-version.html
49 lines (49 loc) · 1.66 KB
/
api-version.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html lang="en">
<head>
<title>latest version</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" crossorigin="anonymous">
<script src='https://code.jquery.com/jquery-3.2.1.min.js'></script>
<script>
$(function() {
$.getJSON('https://runkit.io/nicoschmitt/api-version/2.0.1/api?format=jsonp&callback=?')
.done(data => {
$('.loading').hide();
$('#android').text(data.android);
$('#ios').text(data.ios);
$('.result').show();
});
});
</script>
<style>
html, body {
background-color: #333;
color: #eee;
font-family: Roboto;
margin: 0;
}
.main {
margin-top: 7em;
text-align: center;
}
.loading {
font-size: 4em;
}
.result {
font-size: 2em;
}
</style>
</head>
<body>
<div class="container main">
<div class='loading'>loading...</div>
<div class='result' style='display:none'>
<p>Android <span id='android'></span></p>
<p>iOS <span id='ios'></span></p>
</div>
</div>
</body>
</html>