-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault1.html
115 lines (102 loc) · 5.01 KB
/
Default1.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script>
var year='2015';
var airportCode='SFO';
</script>
</head>
<body>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
<div class="pure-menu pure-menu-horizontal" style="background-color:black;">
<a href="#" class="pure-menu-heading pure-menu-link">CS-424</a>
<ul class="pure-menu-list">
<li class="pure-menu-item"></li>
<li class="pure-menu-item"><a href="Default1.html" class="pure-menu-link">Home</a></li>
<li class="pure-menu-item"><a href="HTML/RadialTree.html" class="pure-menu-link">Compare Wait Times</a></li>
<li class="pure-menu-item"><a href="About.html" class="pure-menu-link">About</a></li>
<li class="pure-menu-item"><a href="Contact.html" class="pure-menu-link">Contact Us</a></li>
</ul>
</div>
<iframe src="HTML/USMap.html" width="750" height="400" id="iusmap"></iframe>
<iframe src="HTML/clock.html" width="500" height="400" id="iclock" name="iclock" onload="populateClock();"></iframe>
<iframe src="HTML/WorldMap2.html" width="750" height="350" id="iworldMap" onload="populateWorldMap();" name="iworldMap"></iframe>
<iframe src="HTML/LineChart.html" width="500" height="400" id="iLineChart" onload="populateLineChart();"></iframe>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://npmcdn.com/d3-horizon-chart/build/d3-horizon-chart.min.js"></script>
<script type="text/javascript">
/*function populateWorldMap() {
console.log('Inside World map')
document.getElementById('iworldMap').contentWindow.displayroutes(airportCode);
}*/
function populateClock()
{
document.getElementById('iclock').contentWindow.readFile(airportCode, year);
}
function populateLineChart()
{
//console.log(year);
//document.getElementById('iLineChart').contentWindow.loadAirportData(airportCode,year);
document.getElementById('iLineChart').contentWindow.populateAllLines(airportCode, year);
}
function populateWorldMap()
{
document.getElementById('iworldMap').contentWindow.displayroutes(airportCode);
}
function populateUSMap()
{
}
function populate2015()
{
year = '2015';
document.getElementById('iclock').contentWindow.readFile(airportCode, year);
//document.getElementById('iLineChart').contentWindow.loadAirportData(airportCode, year);
document.getElementById('iLineChart').contentWindow.populateAllLines(airportCode, year);
document.getElementById('iusmap').contentWindow.year_change_2015();
}
function populate2014()
{
year = '2014';
document.getElementById('iclock').contentWindow.readFile(airportCode, year);
//document.getElementById('iLineChart').contentWindow.loadAirportData(airportCode, year);
document.getElementById('iLineChart').contentWindow.populateAllLines(airportCode, year);
document.getElementById('iusmap').contentWindow.year_change_2014();
}
function populate2013()
{
year = '2013';
document.getElementById('iclock').contentWindow.readFile(airportCode, year);
//document.getElementById('iLineChart').contentWindow.loadAirportData(airportCode, year);
document.getElementById('iLineChart').contentWindow.populateAllLines(airportCode, year);
document.getElementById('iusmap').contentWindow.year_change_2013();
}
/*------------------------------------------Line Chart Functions---------------------------------------------------------*/
function RemoveLineSVG()
{
document.getElementById('iLineChart').contentWindow.removeSVG();
}
function getAirport()
{
document.getElementById('iLineChart').contentWindow.startTimer(airportCode);
document.getElementById('iclock').contentWindow.startTimer(airportCode);
}
function getAirportCode()
{
return airportCode;
}
/*****************************************************************US MAP**********************/
function UpdateAllViz(airportCode1)
{
airportCode = airportCode1;
//document.getElementById('iclock').contentWindow.d3.selectAll("#svggroup").remove();
document.getElementById('iclock').contentWindow.clearClock(airportCode, year);
document.getElementById('iLineChart').contentWindow.clearAllLines(airportCode, year);
document.getElementById('iworldMap').contentWindow.displayroutes(airportCode);
}
</script>
</body>
</html>