-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
44 lines (34 loc) · 1.09 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<title>V Coin Trader</title>
</head>
<body>
<div id="app">
<nav>
<div class="metalNews" v-if="metalType === 'gold'">
<div class="gold-indicator"></div>
GOLD: ${{ goldSpot.toFixed(2) }} Change: {{percentageChange }}%
</div>
<div class="metalNews" v-if="metalType === 'silver'">
<div class="silver-indicator"></div>
SILVER: ${{ silverSpot.toFixed(2) }} Change: {{percentageChange }}%
</div>
<div><p>Cart({{ cart }})</p></div>
</nav>
<section>
<div class="toggle">
<div class="gold-button button" v-on:click='toggleMetalType'>Buy Gold</div>
<div class="silver-button button" v-on:click='toggleMetalType'>Buy Silver</div>
</div>
<div class="item-container">
<coin-card v-for="product in products" v-bind:coin="product" :key="product.productId"></coin-card>
</div>
</section>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script src="main2.js"></script>
</body>
</html>