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
<html>
<head>
<script src="configureMe.js" type="text/javascript"></script>
	<title>color flow</title>
	<style type="text/css">

		* {
			padding: 0;
			margin: 0;
		}

		@font-face {
		    font-family: 'GeoSansLight';
		    src: url('geosanslight-webfont.eot');
		    src: url('geosanslight-webfont.woff') format('woff');
		    font-weight: normal;
		    font-style: normal;
		}

		<<!--body {
			background: url('bg.png') center center no-repeat;
			background-size: 100%;
		}-->

		h1, h2, p {
			font-family: 'GeoSansLight', sans-serif;
			font-weight: 300;
			color: white;
		}

		p.time, p.date {
			color: rgba(255, 255, 255, 0.35);
			-webkit-filter: blur(1px);
			text-transform: uppercase;
		}

		p.time {
			font-size: 45px;
		}

		p.date {
			font-size: 20px;
			text-align: right;
			margin: 2px 0 2px 0;
		}

		.selected {
			color: rgba(255, 255, 255, 1) ! important;
			-webkit-filter: none ! important;
			text-shadow: 0px 0px 1px rgba(0,0,0,0.5);
		}

		#time-container {
			margin: auto;
			width: 135px;
			padding: 80px 0 0 0;
		}

		#date-container {
			position: relative;
			width: 150px;
			margin: auto;
			bottom: -140px;
		}

		.left, .right {
			display: inline-block;
		}

		.right {
			border-left: 1px solid #fff;
			margin: 0 0 0 10px;
			padding: 0 0 0 10px;
		}


	</style>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0">
	
	<script type="text/javascript">
	
		function ChangeWallpaper(){

		var randomnumber=Math.floor(Math.random()*(totalpics+1));

		document.getElementById('wallpaper').setAttribute('src', "Images/Backgrounds/" + randomnumber + ".png");
}
	
	</script>
	
	
</head>
<body style="margin-left: 0">

	<img src="" id="wallpaper" height="480" width="320" style="position: absolute; top: 0px; left: 0px; z-index:-10;">

	<script language="JavaScript">ChangeWallpaper()</script>

	<div id="time-container">
		<div class="left">
			<p id="time1-1" class="time"></p>
			<p id="time1-2" class="time selected"></p>
			<p id="time1-3" class="time"></p>
		</div>

		<div class="right">
			<p id="time2-1" class="time"></p>
			<p id="time2-2" class="time selected"></p>
			<p id="time2-3" class="time"></p>
		</div>
	</div>

	<div id="date-container">
		<div class="left">
			<p id="date1-1" class="date"></p>
			<p id="date1-2" class="date selected"></p>
			<p id="date1-3" class="date"></p>
		</div>

		<div class="right">
			<p id="date2-1" class="date"></p>
			<p id="date2-2" class="date selected"></p>
			<p id="date2-3" class="date"></p>
		</div>
	</div>

	<script type="text/javascript">

		function calculateTime() {
			var Make_It_12_Hour = false;

			var currentTime = new Date();
			var hour1 = currentTime.getHours() - 1;
			var hour2 = currentTime.getHours();
			var hour3 = currentTime.getHours() + 1;

			var minutes = currentTime.getMinutes();
			var minute1 = currentTime.getMinutes() - 1;
			var minute2 = currentTime.getMinutes();
			var minute3 = currentTime.getMinutes() + 1;

			if (Make_It_12_Hour) {
				hour1 = hour1 % 12;
				hour1 = (hour1) ? hour1 : 12;
				hour2 = hour2 % 12;
				hour2 = (hour2) ? hour2 : 12;
				hour3 = hour3 % 12;
				hour3 = (hour3) ? hour3 : 12;

				if (hour1 < 10) { hour1 = "0" + hour1; }
				if (hour2 < 10) { hour2 = "0" + hour2; }
				if (hour3 < 10) { hour3 = "0" + hour3; }

				if (minute1 < 0) { minute1 = "59"; }
				if (minute3 > 59) { minute3 = "01"; }

				if (minute1 < 10) { minute1 = "0" + minute1; }
				if (minute2 < 10) { minute2 = "0" + minute2; }
				if (minute3 < 10) { minute3 = "0" + minute3; }
			} else {
				if (minute1 < 0) { minute1 = "59"; }
				if (minute3 > 59) { minute3 = "01"; }

				if (minute1 < 10) { minute1 = "0" + minute1; }
				if (minute2 < 10) { minute2 = "0" + minute2; }
				if (minute3 < 10) { minute3 = "0" + minute3; }

				if (hour2 < 10) { hour2 = "0" + hour2; }
			}

			document.getElementById("time1-1").innerText = hour1;
			document.getElementById("time1-2").innerText = hour2;
			document.getElementById("time1-3").innerText = hour3;

			document.getElementById("time2-1").innerText = minute1;
			document.getElementById("time2-2").innerText = minute2;
			document.getElementById("time2-3").innerText = minute3;
		}

		function calculateDate() {
			var months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
			var currentTime = new Date();
			var day1 = (currentTime.getDate() - 1).toString();
			var day2 = currentTime.getDate().toString();
			var day3 = (currentTime.getDate() + 1).toString();
			var month = currentTime.getMonth();

			if (day1.length == 1) { day1 = "0" + day1; } 
			if (day2.length == 1) { day2 = "0" + day2; } 
			if (day3.length == 1) { day3 = "0" + day3; } 

			document.getElementById("date1-1").innerText = months[month - 1];
			document.getElementById("date1-2").innerText = months[month];
			document.getElementById("date1-3").innerText = months[month + 1];

			document.getElementById("date2-1").innerText = day1;
			document.getElementById("date2-2").innerText = day2;
			document.getElementById("date2-3").innerText = day3;
		}

		calculateTime();
		calculateDate();
		setInterval(calculateTime, 2000);
		setInterval(calculateDate, 60000);
	</script>

</body>
</html>