-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbudjit.html
More file actions
66 lines (52 loc) · 1.69 KB
/
budjit.html
File metadata and controls
66 lines (52 loc) · 1.69 KB
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
<!---->
<!--HOTELS-->
<!---->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Budjit</title>
<link rel="stylesheet" type="text/css" href="betterCSSbudjit.css"/>
</head>
<body>
<header class="site-header">
I am a fancy header
</header>
<div class="page-wrap">
<!-- Content!-->
<input type="text" id="budgetInput" value="1000" placeholder="BUDGET">
<button type="button" onclick="budgetMax()">Set Budget</button>
<div id="slidecontainer">
<input type="range" min="0" max="1000" value="50%" class="slider" id="myRange" oninput="budgetValue(this.value);" step="10">
</div>
<br>
<input class="budgets" id="budgetLeft" value="">
<input class="budgets" id="budgetRight" value="">
<br><br><br>
<input id="fromBox" placeholder="FROM">
<input id="toBox" placeholder="TO">
<br><br>
<div class = "stitched">
<button type="button" onclick="window.location.href='/results.php'">Budjit!</button>
</div>
<br><br>
<input id="parsed" value="">
<script type="text/javascript">
function budgetValue(val) {
document.getElementById("budgetLeft").value=val;
document.getElementById("budgetRight").value=document.getElementById("myRange").max-val;
}
function budgetMax() {
var maxi = document.getElementById("budgetInput").value;
var x = document.getElementById("myRange").max = maxi;
}
var blah = src="http://transportapi.com/v3/uk/places.json?query=cardiff&type=train_station&app_id=d897d02c&app_key=946581d28e34448757fed33aa161590f";
var blahParsed = JSON.parse(blah);
document.write(blahParsed)
</script>
</div>
<footer class="site-footer">
I'm the Sticky Footer.
</footer>
</body>
</html>