-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.php
executable file
·208 lines (186 loc) · 7.19 KB
/
display.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
208
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Foundation</title>
<link rel="stylesheet" type="text/css" href="css/style3.css" />
<link rel="stylesheet" type="text/css" href="Calendario/css/calendar.css" />
<link rel="stylesheet" type="text/css" href="Calendario/css/custom_1.css" />
<link rel="stylesheet" href="css/signs.css"/>
<script type="text/javascript">
var num;
var temp=0;
var speed=10000; /* this is set for 5 seconds, edit value to suit requirements */
var preloads=[];
/* add any number of images here */
preload(
'images/1.jpg',
'images/steam-1.jpg',
'images/2.jpg',
'images/steam-2.jpg',
'images/3.jpg',
'images/its-3.jpg',
'images/steam-3.jpg',
'images/4.jpg',
'images/its-4.jpg',
'images/steam-4.jpg',
'images/5.jpg',
'images/its-5.jpg',
'images/steam-5.jpg',
'images/6.jpg',
'images/its-6.jpg',
'images/steam-6.jpg',
'images/7.jpg',
'images/its-7.jpg',
'images/steam-7.jpg',
'images/8.jpg',
'images/its-8.jpg',
'images/steam-8.jpg',
'images/9.jpg',
'images/its-9.jpg',
'images/steam-9.jpg',
'images/10.jpg',
'images/its-10.jpg',
'images/steam-10.jpg',
'images/steam-11.jpg',
'images/steam-12.jpg'
);
function preload(){
for(var c=0;c<arguments.length;c++) {
preloads[preloads.length]=new Image();
preloads[preloads.length-1].src=arguments[c];
}
}
function rotateImages() {
num=Math.floor(Math.random()*preloads.length);
if(num==temp){
rotateImages();
}
else{
document.body.style.backgroundImage='url('+preloads[num].src+')';
temp=num;
setTimeout(function(){rotateImages()},speed);
}
}
if(window.addEventListener){
window.addEventListener('load',function(){setTimeout(function(){rotateImages()},speed)},false);
}
else {
if(window.attachEvent){
window.attachEvent('onload',function(){setTimeout(function(){rotateImages()},speed)});
}
}
</script>
<script src="bower_components/modernizr/modernizr.js"></script>
<script language="javascript" type="text/javascript">
// 86400000); // 1 day
// 3600000); // 1 hour
// 60000); // 1 minute
// 20000); // 20 seconds
// 5000); // 5 seconds
var timeout = setInterval(one, 86400000); // 1 day
function one() {
$('#one').load('calendar.php');
}
</script>
</head>
<body id="page">
<ul class="cb-slideshow">
<li><span>Image 01</span></li>
<li><span>Image 02</span></li>
<li><span>Image 03</span></li>
<li><span>Image 04</span></li>
<li><span>Image 05</span></li>
<li><span>Image 06</span></li>
</ul>
<div class="container">
<div class="row">
<div class="columns small-2">
<div id="calendar-box">
<div id="one" class="container">
<div class="custom-calendar-wrap custom-calendar-full">
<div id="calendar" class="fc-calendar-container"></div>
</div>
</div>
</div>
</div>
<div class="columns small-10">
<div class="row">
<div class="columns small-7"></div>
<div class="columns small-5">
<div class="row sign-box two">
<div class="columns">
<img class="uthsc-its-logo" src="images/uthsc-campus-logo-stacked-black-text.png" />
<div class="news" id="two-l">
<?php readfile("http://news.uthsc.edu/news-html/redesign-news-three-stories.php"); ?>
<p>From news.uthsc.edu <img class="qr-code" src="images/news.png" /> </p>
</div>
</div>
<div class="columns">
<div class="weather" id="two-l-weather">
<iframe class="weather-iframe" id="forecast_embed" type="text/html" frameborder="0" height="245" width="100%" src="http://forecast.io/embed/#lat=35.0406&lon=-85.3096&name=Chattonoogan Hotel"></iframe>
</div>
</div>
</div>
</div>
</div>
<div>
</div>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/foundation/js/foundation.min.js"></script>
<script src="js/app.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="Calendario/js/jquery.calendario.js"></script>
<script type="text/javascript" src="Calendario/js/data.js"></script>
<script>
function update() {
$('#clock').html(moment().format('dddd, MMMM DD, YYYY h:mm a'));
moment.locale('en', {
});
}
setInterval(update, 1000);
</script>
<script type="text/javascript">
$(function() {
var cal = $( '#calendar' ).calendario( {
onDayClick : function( $el, $contentEl, dateProperties ) {
for( var key in dateProperties ) {
console.log( key + ' = ' + dateProperties[ key ] );
}
},
caldata : codropsEvents
} ),
$month = $( '#custom-month' ).html( cal.getMonthName() ),
$year = $( '#custom-year' ).html( cal.getYear() );
$( '#custom-next' ).on( 'click', function() {
cal.gotoNextMonth( updateMonthYear );
} );
$( '#custom-prev' ).on( 'click', function() {
cal.gotoPreviousMonth( updateMonthYear );
} );
$( '#custom-current' ).on( 'click', function() {
cal.gotoNow( updateMonthYear );
} );
function updateMonthYear() {
$month.html( cal.getMonthName() );
$year.html( cal.getYear() );
}
// you can also add more data later on. As an example:
/*
someElement.on( 'click', function() {
cal.setData( {
'03-01-2013' : '<a href="#">testing</a>',
'03-10-2013' : '<a href="#">testing</a>',
'03-12-2013' : '<a href="#">testing</a>'
} );
// goes to a specific month/year
cal.goto( 3, 2013, updateMonthYear );
} );
*/
});
</script>
</body>
</html>