-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (122 loc) · 7.79 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
<title>Exchange API</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col s8">
<div id="main" class="card">
<div class="card-content">
<span class="card-title">Exchange API - Currency App</span>
<div class="row">
<form id="currency-form"></form>
<div class="input-field col s8">
<input type="number" name = "amount" id = "amount" placeholder="Miktar">
</div>
<div class="input-field col s8">
<select id = "firstCurrency">
<option selected>USD</option>
<option>EUR</option>
<option>JPY</option>
<option>BGN</option>
<option>CZK</option>
<option>DKK</option>
<option>GBP</option>
<option>HUF</option>
<option>PLN</option>
<option>RON</option>
<option>SEK</option>
<option>CHF</option>
<option>ISK</option>
<option>NOK</option>
<option>HRK</option>
<option>RUB</option>
<option>TRY</option>
<option>AUD</option>
<option>BRL</option>
<option>CAD</option>
<option>CNY</option>
<option>HKD</option>
<option>IDR</option>
<option>ILS</option>
<option>INR</option>
<option>KRW</option>
<option>MXN</option>
<option>MYR</option>
<option>NZD</option>
<option>PHP</option>
<option>SGD</option>
<option>THB</option>
<option>ZAR</option>
</select>
<select id = "secondCurrency">
<option>USD</option>
<option>EUR</option>
<option>JPY</option>
<option>BGN</option>
<option>CZK</option>
<option>DKK</option>
<option>GBP</option>
<option>HUF</option>
<option>PLN</option>
<option>RON</option>
<option>SEK</option>
<option>CHF</option>
<option>ISK</option>
<option>NOK</option>
<option>HRK</option>
<option>RUB</option>
<option selected>TRY</option>
<option>AUD</option>
<option>BRL</option>
<option>CAD</option>
<option>CNY</option>
<option>HKD</option>
<option>IDR</option>
<option>ILS</option>
<option>INR</option>
<option>KRW</option>
<option>MXN</option>
<option>MYR</option>
<option>NZD</option>
<option>PHP</option>
<option>SGD</option>
<option>THB</option>
<option>ZAR</option>
</select>
</div>
</form>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title" id = "outputFirst">USD</span>
<span>-</span>
<span class="card-title" id = "outputSecond">TRY</span>
</div>
<div class="card-content">
<input type="text" name = "outputResult" id = "outputResult" placeholder = "Sonuç" readonly >
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/js/materialize.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('select');
var instances = M.FormSelect.init(elems);
});
</script>
<script src="ui.js"></script>
<script src="currency.js"></script>
<script src="app.js"></script>
</body>
</html>