-
Notifications
You must be signed in to change notification settings - Fork 0
/
steemitapi01.html
29 lines (28 loc) · 1.11 KB
/
steemitapi01.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
<!doctype html>
<html lang="en">
<head>
<title>Steemit 登録者数</title>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://github.com/steemit/steem-js/releases/download/v0.7.7/steem.min.js"></script>
<script>
function getAccountCount(){
steem.api.getAccountCount(function(err, result) {
const count = result.toLocaleString();
var text = "Steemit 登録者数は " + count + " アカウントです。";
$("#steemitUserCount").text(text);
});
}
window.onload = function() {
steem.api.setOptions({url: 'https://api.steemit.com'});
getAccountCount();
};
</script>
</head>
<body>
<div>
こんにちは、
</div>
<h1 id="steemitUserCount"></h1>
</body>
</html>