-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
62 lines (52 loc) · 2.13 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="TICKER displays cryptocurrency transactions data from multiple exchanges in real-time.">
<title>TICKER | Real-time Cryptocurrency Transactions Ticker</title>
<link rel="stylesheet" type="text/css" href="./static/css/style.css">
</head>
<body>
<div id="app">
<navbar :sort-by="sortBy"></navbar>
<coins-list :coins="getCoins()"></coins-list>
</div>
<template id="coins-list-template">
<div :if="coins">
<div class="container-fluid p-0">
<div class="row no-gutters">
<div class="col-4 col-md-3 col-lg-2" v-for="coin in coins">
<section class="coin" v-bind:class="{ tickGreen: coin.isUp, tickRed: coin.isDown }">
<span><b>{{ coin.name }}</b></span>
<span class="font-weight-lighter">${{ coin.price }}</span>
</section>
</div>
</div>
</div>
</div>
<div :else>
<span>Loading...</span>
</div>
</template>
<template id="navbar-template">
<nav id="navbar">
<div class="flex-center">
<a class="ml-3" href="https://adrianiskander.github.io/ticker"><strong>TICKER</strong></a>
<section class="flex-center ml-3">
<header>SORT BY:</header>
<select class="ml-1" v-model="sortBy" @change="setSortBy" aria-label="sort by">
<option value="volume">VOL24H</option>
<option value="name">A-Z</option>
</select>
</section>
</div>
<a class="github-logo mr-3" href="https://github.com/adrianiskander/ticker" title="See code on Github"><span class="d-none">GITHUB</span></a>
</nav>
</template>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.slim.js"></script>
<script type="text/javascript" src="./static/js/app.js"></script>
</body>
</html>