-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
207 lines (191 loc) · 7.25 KB
/
index.php
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE HTML>
<html>
<head>
<title>Dublin Traffic Cams</title>
<link rel="stylesheet" href="css/styles.css" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no"/>
<meta name="description" content="Mobile optimised Dublin Traffic Cams" />
<meta name="keywords" content="Dublin, traffic, camera, livedrive, AA roadwatch, traffic cams" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<script src="jquery-1.6.1.min.js"></script>
<script src="jquery.scrollTo-1.4.2-min.js"></script>
<!--Analytics-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23963982-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
$(document).ready(function() {
$.scrollTo({top:0, left:1600},{duration:2000});
var $scrollingDiv = $("#container");
$(window).scroll(function(){
$scrollingDiv
.stop()
.animate({"left": ($(window).scrollLeft()) + "px"}, "slow" );
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
var $scrollingDiv = $("#container");
$(window).scroll(function(){
$scrollingDiv
.stop()
.animate({"left": ($(window).scrollLeft()) + "px"}, "slow" );
});
});
</script>
<script>
$(window).load(function() {
$('img').each(function() {
if (!this.complete) {
// image was broken, replace with your new image
this.src = 'images/placeholder.png';
}
});
}); </script>
<!--Database scripting, based on html5rocks (http://www.html5rocks.com/en/tutorials/webdatabase/todo/)-->
<script src="database.js"></script>
</head>
<body onload="initIndex();">
<!--[if lt IE 7]>
<script type="text/javascript">
alert ("Still using an old version of Internet Explorer!\nTo see our site correctly, please update it\n or maybe you can install Google Chrome or Firefox.")
</script>
<![endif]-->
<?php
$webcam = $_GET['webcam'];
if ($webcam == "") {
$webcam = "Site0Camera6";
};
# List of cameras
$arr_cam = array("Site0Camera10" => "The Quays from Liberty Hall",
"Site0Camera100" => "N11-Fosters",
"Site0Camera101" => "N11-Mont Merrion",
"Site0Camera102" => "N11-Kilmacud Rd",
"Site0Camera103" => "N11-Trees Road",
"Site0Camera104" => "N11-Newtownpark Avenue",
"Site0Camera105" => "N11-Kill Lane",
"Site0Camera106" => "N11-Clonkeen",
"Site0Camera107" => "N11-Johnstown",
"Site0Camera108" => "N11-Wyattville",
"Site0Camera109" => "M1-Balbriggan",
"Site0Camera110" => "M1-Airport",
"Site0Camera111" => "M1-Drynam",
"Site0Camera112" => "M1-Malahide Estuary",
"Site0Camera113" => "M1-Lissenhall",
"Site0Camera122" => "North Wall Quay",
"Site0Camera127" => "Guild Street-Mayor Street",
"Site0Camera131" => "Constitution Hill",
"Site0Camera135" => "Dublin Port Tunnel Toll Plaza",
"Site0Camera136" => "Samuel Beckett Bridge",
"Site0Camera137" => "Sir John Rogersons Quay",
"Site0Camera139" => "Guild Street-Seville Place",
"Site0Camera15" => "John's Road-SCR",
"Site0Camera163" => "John's Road West",
"Site0Camera21" => "Dame Street from Civic Offices",
"Site0Camera22" => "North Quays from Civic Offices",
"Site0Camera23" => "Pearse Street",
"Site0Camera24" => "North Strand Road",
"Site0Camera27" => "Drumcondra Road",
"Site0Camera31" => "Harolds Cross Bridge",
"Site0Camera32" => "Cabra Road",
"Site0Camera6" => "O'Connell Bridge",
"Site0Camera66" => "Longmile Road",
"Site0Camera71" => "M50-Blanchardstown Roundabout",
"Site0Camera73" => "M50-Ballinteer",
"Site0Camera74" => "M50-Edmondstown",
"Site0Camera75" => "M50-Firhouse",
"Site0Camera77" => "M50-Tallaght",
"Site0Camera78" => "M50-Ballymount",
"Site0Camera79" => "M50-Red Cow",
"Site0Camera80" => "M50-Red Cow Slip",
"Site0Camera81" => "M50-Greenhills Park",
"Site0Camera82" => "M50-Lucan",
"Site0Camera85" => "Naas road-Newlands cross",
"Site0Camera87" => "M50-South of Finglas Roundabout",
"Site0Camera91" => "N32-Malahide Road",
"Site0Camera94" => "M1-M50",
"Site0Camera95" => "M1-Port Tunnel Works",
"Site0Camera96" => "M50-Ballymun",
"BelgardAirton" => "Belgard Airton",
"belgardcook" => "Belgard Cookstown",
"belgardmayberry" => "Belgard Mayberry",
"BelgardSqE" => "Belgard Square East",
"Castleroad" => "Castle Road/ORR",
"FonthillRon" => "Fonthill/Ronanstown",
"Greenhillsairton" => "Greenhills Airton",
"Greenhillsmayberry" => "Greenhills Mayberry",
"Greenhillstallaght" => "Greenhills Tallaght",
"Greenhillstymon" => "Greenhills Tymon",
"Jobstown" => "Jobstown",
"Lucanwood" => "Lucan Road at Woodvale",
"N7citywest" => "N7/City West Junction",
"N7Longmile" => "N7 Longmile",
"N4newcastle" => "N4 Newcastle",
"Rathcoole" => "N7/Rathcoole",
"N81belgard" => "N81/Belgard Road",
"N81Citywest" => "N81/City West",
"N81oldbawn" => "N81 Oldbawn",
"N81white" => "N81 Whitestown",
"Bawneouge" => "Nangor Road/Bawneouge Junction",
"Deansrath" => "Nangor Road/Deansrath Junction",
"killen" => "Nangor Road/Killeen",
"Parkwest" => "Nangor/Park West Junction",
"m50redcow" => "M50–Red Cow",
"ORRFetter" => "ORR Fettercairn",
"ORRFox" => "ORR at Foxhunter",
"ORRGrange" => "ORR Grange Castle",
"ORRnangor" => "ORR Nangor");
?>
<div class="textabout" id="allimages">
<img alt="!" id="past" class="past" src="images/past.png">
<a href="#right"><img alt="!" id="now" class="now" src="images/now.png"></a>
</div>
<!--<img alt="!" id="imgCamera4" class="webcam4" src="http://trafficcam-fetcher.savina.net/serve_single_pic/<?php echo $webcam;?>/4">
<img alt="!" id="imgCamera3" class="webcam3" src="http://trafficcam-fetcher.savina.net/serve_single_pic/<?php echo $webcam;?>/3">
<img alt="!" id="imgCamera2" class="webcam2" src="http://trafficcam-fetcher.savina.net/serve_single_pic/<?php echo $webcam;?>/2">
<img alt="!" id="imgCamera1" class="webcam1" src="http://trafficcam-fetcher.savina.net/serve_single_pic/<?php echo $webcam;?>/1">
<img alt="!" id="imgCamera0" class="webcam0" src="http://trafficcam-fetcher.savina.net/serve_single_pic/<?php echo $webcam;?>/0">-->
<a href="#right"><img alt="!" id="now" class="now" src="images/now.png"></a>
<div class="container" id="container">
<div class="about" id="about">
<a class="linktab" href="about.html">about</a>
</div>
<div class="changeCam" id="changeCam">
<a class="linktab" href="camera.html">cameras</a>
</div>
<div class="Cam_name" id="Cam_name">
View of:
</div>
<div class="feedback" id="feedback">
<a class="linktab" href="feedback.html">feedback</a>
</div>
<div class="ad_mobile" id="ad_mobile">
<!--
<script type="text/javascript"><!--
// XHTML should not attempt to parse these strings, declare them CDATA.
/* <![CDATA[ */
window.googleAfmcRequest = {
client: 'ca-mb-pub-0058068697090854',
format: '320x50_mb',
output: 'html',
slotname: '8950700253',
};
/* ]]> */
//-->
<!--
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_afmc_ads.js"></script>
-->
</div>
</div>
</body>
</html>