-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession4.html
More file actions
36 lines (33 loc) · 903 Bytes
/
session4.html
File metadata and controls
36 lines (33 loc) · 903 Bytes
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
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Hello, world!</title>
<link rel="stylesheet" href="session.4.css">
</head>
<body>
<div id="app">
<h2>
Bitcoin Price
</h2>
<section v-if="hasError">
Error.
</section>
<section v-else>
<div v-if="loading">
loading...
</div>
<div v-else>
<ul v-cloak>
<li v-for="(rate, currency) in bpi">
{{ currency }} : {{ rate.rate_float | currencyDecimal }}
</li>
</ul>
</div>
</section>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios@0.20.0/dist/axios.min.js"></script>
<script type="text/javascript" src="session4.js"></script>
</body>
</html>