-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (98 loc) · 4.69 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>Barclay's 10 closest ATMs</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link href="https://fonts.googleapis.com/css?family=Titillium+Web:300,400,600" rel="stylesheet">
<!-- CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/custom.css">
<!-- Scripts
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> -->
<script src="https://vuejs.org/js/vue.js"></script>
<script src="https://unpkg.com/vuex"></script>
<script src="https://unpkg.com/[email protected]/dist/vue-resource.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ramda.min.js"></script>
</head>
<body>
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<div id="app">
<div class="container u-full-width u-max-full-width container-main">
<div class="row row-top row-content">
<div class="three columns text-center"> </div>
<div class="six columns text-center">
<p class="heading-1">Barclays UK _ ATMs</p>
</div>
<div class="three columns text-center"> </div>
</div>
<div class="row">
<div class="three columns text-center"> </div>
<div class="six columns text-center">
<p class="heading-2">
<span class="heading-snap">Ten closest ATMs to you.</span>
</p>
</div>
<div class="three columns text-center"> </div>
</div>
</div>
<div class="section hero">
<div class="container">
<div class="row">
<div class="two columns text-center"> </div>
<div class="eight columns list-wrapper">
<ul v-if="noPosition" class="list-elements">
<li class="list-element">
<p class="heading-2">
<span class="heading-snap">No position.</span>
<p>Refresh this page to try again.</p>
</p>
</li>
</ul>
<div v-else>
<ul class="list-elements" v-if="isLoading">
<li class="list-element text-center">
<div class="w3-light-grey w3-round">
<div class="w3-container w3-rebank-pink w3-round" :style="`width:${percents}%`">{{ percents }}%</div>
</div>
<p class="heading-2">{{ loadingText }}</p>
<p class="heading-3" v-for="(r, i) in resources" :key="i">{{ r }}</p>
</li>
</ul>
<ul v-else class="list-elements">
<li v-for="atm in closest" :key="atm.atm.Identification" class="list-element atm" :id="atm.atm.Identification">
<p class="heading-3">{{ makeAddress(atm.atm.Location.PostalAddress) }}
<span class="show-map" @click="onClickItem">Show map</span>
</p>
</li>
</ul>
</div>
</div>
<div class="two columns text-center"> </div>
</div>
</div>
</div>
</div>
<!-- Scripts
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<script>
Vue.config.devtools = true;
</script>
<script src="./js/store.js"></script>
<script src="./js/script.js"></script>
<!-- End Document
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
</body>
</html>