-
Notifications
You must be signed in to change notification settings - Fork 0
/
wbbw.html
110 lines (95 loc) · 4.95 KB
/
wbbw.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
<!--
Camera Display Page
Created by Brian Blaylock
University of Utah - Dept. of Atmospheric Sciences
Contact: [email protected]
-->
<!DOCTYPE html>
<html style="height:100%;">
<head>
<script src="./js/siteopen.js"></script>
</head>
<script>
//Assign new button colors when a button is clicked
function reset1(){
document.getElementById("videolink1").className="btn btn-primary active";
document.getElementById("videolink2").className="btn btn-primary";
document.getElementById("videolink3").className="btn btn-primary";
}
function reset2(){
document.getElementById("videolink1").className="btn btn-primary";
document.getElementById("videolink2").className="btn btn-primary active";
document.getElementById("videolink3").className="btn btn-primary";
}
function reset3(){
document.getElementById("videolink1").className="btn btn-primary";
document.getElementById("videolink2").className="btn btn-primary";
document.getElementById("videolink3").className="btn btn-primary active";
}
</script>
<body style="height:100%;">
<script src="./js/CurrentTemp.js"></script>
<h2 align="center"><i class="fas fa-video"></i> William Browning Building - West</h2>
<div class="row" style="padding-left:20px;">
<div class="col-md-2">
<div class="btn-group-vertical">
<button style="width:150px;" type="button" class="btn btn-primary" onclick="window.location.href='http://home.chpc.utah.edu/~u0553130/Camera_Display/';">Home</button>
<button type="button" class="btn btn-primary" onclick="window.location.href='http://home.chpc.utah.edu/~u0790486/wxinfo/cgi-bin/uunet_camera_explorer.cgi?cam=WBBW';">Live</button>
</div>
<br><br>
<div class="btn-group-vertical">
<button style="width:150px;" type="button" class="btn btn-default disabled" >Time Lapse</button>
<button type="button" class="btn btn-primary active" id="videolink1" onclick="reset1()">Recent</button>
<button type="button" class="btn btn-primary" id="videolink2" onclick="reset2()">Today</button>
<button type="button" class="btn btn-primary" id="videolink3" onclick="reset3()">Yesterday</button>
</div>
<br><br>
<div class="btn-group-vertical">
<button type="button" class="btn btn-default disabled" >Change Camera</button>
<button style="width:150px;" type="button" class="btn btn-primary active" onclick="window.location.href='http://home.chpc.utah.edu/~u0553130/Camera_Display/wbbw.html';">WBB-West</button>
<button type="button" class="btn btn-primary" onclick="window.location.href='http://home.chpc.utah.edu/~u0553130/Camera_Display/wbbs.html';">WBB-South</button>
<button type="button" class="btn btn-primary" onclick="window.location.href='http://home.chpc.utah.edu/~u0553130/Camera_Display/syr.html';">Syracuse</button>
<button type="button" class="btn btn-primary" onclick="window.location.href='http://home.chpc.utah.edu/~u0553130/Camera_Display/naa.html';">NAA</button>
<button type="button" class="btn btn-primary" onclick="window.location.href='http://home.chpc.utah.edu/~u0553130/Camera_Display/pelicam.html';">PELICam</button>
<button type="button" class="btn btn-primary" onclick="window.location.href='http://home.chpc.utah.edu/~u0553130/Camera_Display/bflat.html';">BFlat</button>
</div>
</div>
<div class="col-md-9">
<video id="videoclip" style="height:85vh;" autoplay controls loop title="Time Lapse">
<source id="mp4video" src="http://meso1.chpc.utah.edu/station_cameras/wbbw_cam/wbbw_cam_hour.mp4" type="video/mp4" />
</video>
</div>
</div>
<script type="text/javascript">
// Change the video when button is clicked
var videocontainer = document.getElementById('videoclip');
var videosource = document.getElementById('mp4video');
var recent_vid = 'http://meso1.chpc.utah.edu/station_cameras/wbbw_cam/wbbw_cam_hour.mp4';
var day_vid = 'http://meso1.chpc.utah.edu/station_cameras/wbbw_cam/wbbw_cam_day.mp4';
var yesterday_vid='http://meso1.chpc.utah.edu/station_cameras/wbbw_cam/wbbw_cam_yesterday.mp4';
var recent_button = document.getElementById("videolink1");
var day_button = document.getElementById("videolink2");
var yesterday_button = document.getElementById("videolink3");
recent_button.addEventListener("click", function(event) {
videocontainer.pause();
videosource.setAttribute('src', recent_vid);
videocontainer.load();
videocontainer.play();
}, false);
day_button.addEventListener("click", function(event) {
videocontainer.pause();
videosource.setAttribute('src', day_vid);
videocontainer.load();
videocontainer.play();
}, false);
yesterday_button.addEventListener("click", function(event) {
videocontainer.pause();
videosource.setAttribute('src', yesterday_vid);
videocontainer.load();
videocontainer.play();
}, false);
</script>
</div>
<script src="./js/siteclose.js"></script>
</body>
</html>