001. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
002. "https://www.w3.org/TR/html4/loose.dtd">
003. <html>
004. <head>
005. <title>Large Blue Live Clock</title>
006. <!-- Host is eSand.net on Godaddy -->
007. <meta name="description" content="Current time displayed - whatever zone - in large numbers on blue - Plus: View source scripts, system clock, convert GMT to US zone, lunar calendar by year" >
008. <meta http-equiv="Content-Style-Type" content="text/css">
009. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1;">
010. <link rel="stylesheet" type="text/css" href="https://esand.net/liveClock/commons/mainStylesheet.css" >
011. <link rel="shortcut icon" href="https://esand.net/liveClock/favicon.ico?v=2.0" >
012. <meta http-equiv="CACHE-CONTROL" content="no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0, Pragma: no-cache" >
013. <meta name="robots" content="index,all">
014.
015. <?php
016. $tZone = " " ; $tZ = " " ; $cont = " " ;
017. $blue = "/blueClock" ; $dsplPic = 0 ;
018. $currURL = $_SERVER[ 'PHP_SELF' ] ;
019. $host = $_SERVER[ 'HTTP_HOST' ] ;
020. $thisHere = 'https://'.$host.'/blueClock' ;
021. error_reporting (E_ERROR | E_WARNING | E_PARSE ) ;
022. $jw = '/home/esand/public_html' ;
023. $bw = $jw.'/liveClock' ;
024. $moonyr = $_REQUEST[ 'moonyr' ] ;
025. if ( ( $moonyr == NULL ) || ( $moonyr < '1753' ) || ( $moonyr > '2200' ) ) { $yrZulu = gmdate( 'Y' ) ; } else { $yrZulu = $moonyr ; }
026. $moZulu = gmdate( 'm' ) ;
027. $daZulu = gmdate( 'd' ) ;
028. $hrZulu = gmdate( 'H' ) ;
029. $mnZulu = gmdate( 'i' ) ;
030. if ( $jw_root == NULL ) { $jw_root = $bw ; }
031. include( $jw_root.'/commons/daylightSaving.php' ) ;
032. ?>
033.
034. <script language="JavaScript1.2" type="text/javascript" >
035.
036. if ( contactWindow != null ) { contactWindow.close() ; }
037. else { var contactWindow ; }
038. if ( phaseTable != null ) { phaseTable.close() ; }
039. else { var phaseTable ; }
040.
041. <?php
042. include ( $bw.'/timeChange.php' ) ;
043. include ( $bw.'/displayTime.htm' ) ;
044. include ( $bw.'/disclaim.php' ) ;
045. include( $bw.'/commons/timeFunctions.php' ) ;
046. ?>
047.
048. var b = 0 ;
049. var tmr = null ;
050. var newsStr = " " ;
051. var str200 = " " ;
052. var ix = 1 ;
053. while ( ix < 200 ) { str200 = str200 + " " ; ix ++ ; }
054. newsStr = str200 ;
055. function Ticker() {
056. b=( b==newsStr.length )? 0 : b + 1 ;
057. if( b <= 1 ) {
058. newsStr = str200 + disclaimer ;
059. b = 2 ;
060. }
061. document.forms[ "ticker" ].display.value = newsStr.substr( b ) ;
062. tmr = setTimeout( "Ticker()", 200 ) ;
063. }
064.
065. function setClockVariables() {
066. document.forms[ "clock1" ].display1.value = " " ;
067. if ( tZone == "GMT" ) { document.forms[ "clock2" ].display2.value = clock2 ; }
068. else { document.forms[ "clock2" ].display2.value = clock6 ; }
069. document.forms[ "clock7" ].display7.value = clock7 ;
070. if ( ( minutes % 20 == 2 ) && ( seconds == 30 ) ) { startTicker() ; }
071. }
072.
073. <?php
074. $qry = $_SERVER[ 'QUERY_STRING' ] ;
075. if ( $qry == NULL ) { $q = "" ; }
076. else { $q = "?".$qry ; }
077. print ( '
078. function Exit() { window.location = "/'.$q.'" ; }
079. ' ) ;
080. ?>
081.
082. </script>
083.
084. <?php
085. function viewSource( $fn ) {
086. $path = $fn ;
087. print( '
088. <div align="left" style="font: 11px Courier ; " >
089. <br><br>
090. ' ) ;
091. $LineNo = 0 ;
092. $LineOut = ' ' ;
093. if ( ( $sc = fopen( $fn, 'r' ) ) != false ) {
094. while ( ( $record = fgets( $sc ) ) != false ) {
095. $record = str_replace( '&', '&', $record ) ;
096. $record = str_replace( '<', '<', $record ) ;
097. $record = str_replace( '>', '>', $record ) ;
098. $LineNo ++ ;
099. $LineOut = str_pad( strval( $LineNo ), 3, '0', STR_PAD_LEFT ).'. '.$record.'<br>' ;
100. print( $LineOut ) ;
101. }
102. fclose( $sc ) ;
103. }
104. else { print( 'File not found in '.$path.'<br>' ) ; }
105. print( '</div><br><br>' ) ;
106. }
107. ?>
108.
109. </head>
110.
111. <body background="https://esand.net/liveClock/blueClock/img/blue-mist.jpg" onLoad=" tellTime() ; " >
112.
113. <style type="text/css">
114. select { font: 15px Verdana ; color: #2222AA ; padding: 2px ; background-color: #A0A0A8 ; }
115. input { font: 14px Verdana ; color: #2222AA ; background-color: transparent ; padding: 2px ; }
116. input:hover { font: 14px Verdana ; color: #4444FF ; background-color: #A0A0A8 ; padding: 2px ; }
117. div.s1 input { font: 24px Courier New ; color: #0000FF ; padding: 10px ; text-align: center ; width: 800px ; height: 30px ; border: 0 ; background-color: transparent ; padding-right; 0% ; }
118. div.s2 input { font: 100px Courier New ; color: #0000FF ; font-weight: bold ; padding: 10px ; text-align: center ; width: 800px ; height: 120px ; border: 0 ; background-color: transparent ; opacity: 0.5 ; padding-right: 0% ; }
119. div.s3 input { font: 24px Courier New ; color: #0000FF ; padding: 10px ; text-align: center ; width: 800px ; height: 30px ; border: 0 ; background-color: transparent ; padding-right: 0% ; }
120. div.s4 input { font: 16px Courier New ; color: #0000FF ; padding: 10px ; text-align: center ; width: 800px ; height: 20px ; border: 0 ; background-color: transparent ; padding-right: 0% ; }
121. div.s7 input { font: 24px Courier New ; color: #0000FF ; padding: 10px ; text-align: center ; width: 800px ; height: 30px ; border: 0 ; background-color: transparent ; padding-right: 0% ; font-weight: bold ; }
122. div.tick input { font: 12px Verdana ; color: #4444FF ; font-weight: 600 ; width: 600px ; height: 15px ; border: 0 ; background-color: transparent ; }
123. div.tick input:hover { font: 12px Verdana ; color: #4444FF ; font-weight: 600 ; width: 600px ; height: 15px ; border: 0 ; background-color: transparent ; }
124. a.t:link { font: 10px Verdana ; color: #0000FF ; text-decoration: none ; background-color: transparent ; padding: 2px ; border: 1px solid #A6B9FB ; font-weight: bold ; }
125. a.t:visited { font: 10px Verdana ; color: #0000FF ; text-decoration: none ; background-color: transparent ; padding: 2px ; border: 1px solid #A6B9FB ; font-weight: bold ; }
126. a.t:hover { font: 10px Verdana ; color: #FFFFFF ; text-decoration: none ; background-color: #A6B9FB ; padding: 2px ; border: 1px solid #FFFFFF ; font-weight: bold ; }
127. a.t:active { font: 10px Verdana ; color: #A6B9FB ; text-decoration: none ; background-color: #DDE4F1 ; padding: 2px ; border: 1px solid #DDE4F1 ; font-weight: bold ; }
128. </style>
129.
130. <script type="text/javascript">
131. var bx = 0 ; var bxb = 0 ;
132. function flyingCrane() {
133. bx ++ ;
134. document.getElementById( "flyingCrane" ).style.right = bx + "px" ;
135. if ( bx < 2000 ) { setTimeout( "flyingCrane() ; ", 10 ) ; } else { Hide( "flyingCrane" ) ; bx = 0 ; }
136. }
137. function flyingCraneBack() {
138. bxb ++ ;
139. document.getElementById( "flyingCraneBack" ).style.left = bxb + "px" ;
140. if ( bxb < 2000 ) { setTimeout( "flyingCraneBack() ; ", 10 ) ; } else { Hide( "flyingCraneBack" ) ; bxb = 0 ; }
141. }
142. function craneTimer() {
143. var sSec = seconds ; var sMin = minutes ;
144. if ( ( ( sMin % 3 ) == 0 ) & ( ( sSec == 9 ) | ( sSec == 45 ) ) & ( !isVisible( 'flyingCrane' ) ) ) { Reveal( 'flyingCrane' ) ; flyingCrane() ; }
145. if ( ( ( sMin % 4 ) == 0 ) & ( ( sSec == 51 ) | ( sSec == 16 ) ) & ( !isVisible( 'flyingCraneBack' ) ) ) { Reveal( 'flyingCraneBack' ) ; flyingCraneBack() ; }
146. setTimeout( 'craneTimer() ; ', 500 ) ;
147. }
148. var birdOn = false ;
149. function flyBird() {
150. setTimeout( "Reveal( 'flyingCrane' ) ; flyingCrane() ; ", 2000 ) ;
151. birdOn = true ;
152. craneTimer() ;
153. }
154. </script>
155.
156. <center>
157.
158. <br>
159. <div align="center" class="s1" style="height: 10% ; padding-left: 10% ; margin-top: 10% ; " >
160. <form id="clock1" >
161. <input type="text" name="display1" readonly >
162. </form>
163. </div>
164.
165. <div align="center" class="s2" style="width: 100% ; height: 10% ; " >
166. <form id="clock2" >
167. <input type="text" name="display2" readonly >
168. </form>
169. </div>
170.
171. <div id="flyingCrane" style="display: none ; position: fixed ; top: 200px ; right: 0 ; " >
172. <img src= "https://liveclock.net/blueClock/img/craneLeft.gif" alt="«·" >
173. </div>
174.
175. <div id="flyingCraneBack" style="display: none ; position: fixed ; top: 300px ; left: 0 ; " >
176. <img src="https://liveclock.net/blueClock/img/craneRight.gif" alt="·»" >
177. </div>
178.
179. <div id="sourceS" style="display: none ; " >
180. <div style="margin: 2% ; padding: 2% ; border: 1px solid #666688 ; " >
181. <img src="https://liveclock.net/img/transparentHorizontal.png" alt="100 wide" width="1000" height="1" >
182. <?php
183. viewSource( $bw.'/fullScreen.php' ) ;
184. ?>
185. </div>
186. </div>
187.
188. <div id="space150" style="display: block ; height: 50px ; ">
189. <p> </p>
190. </div>
191.
192. <div id="sourceC" style="display: none ; " >
193. <div style="margin: 2% ; padding: 2% ; border: 1px solid #666688 ; " >
194. <img src="https://liveclock.net/img/transparentHorizontal.png" alt="100 wide" width="1000" height="1" >
195. <?php
196. viewSource( $bw.'/displayTime.htm' ) ;
197. ?>
198. </div>
199. </div>
200.
201. <div id="sourceS" style="display: none ; " >
202. <div style="margin: 2% ; padding: 2% ; border: 1px solid #666688 ; " >
203. <img src="https://liveclock.net/img/transparentHorizontal.png" alt="100 wide" width="1000" height="1" >
204. <?php
205. viewSource( $bw.'/blueClock/fullScreen.php' ) ;
206. ?>
207. </div>
208. </div>
209.
210. <br>
211. <div id="mainIdea" align="center" class="s7" style="display: block ; width: 100% ; height: 20% ; " >
212. <form id="clock3" >
213. <input type="text" name="display3" readonly >
214. </form>
215. <form id="clock7" >
216. <input type="text" name="display7" readonly >
217. </form>
218. </div>
219.
220. <p> <br> </p>
221.
222. <div align="center" id="SysClock" class="s4" style="display: none ; " >
223. <form id="cpuT" >
224. <input type="text" name="clockString" readonly >
225. </form>
226. <div align="center" id="SysDate" class="s4" >
227. <form id="cpuD" >
228. <input type="text" name="dateString" readonly >
229. </form>
230. </div>
231. </div>
232.
233. <div id="GMTconvert" style="display: none ; " >
234. <?php
235. include( $bw.'/commons/GMTtoUSAform.php' ) ;
236. ?>
237. </div>
238. <br>
239.
240. <div align="center" id="changeZone" style="display: none ; " >
241. <?php
242. include( $bw.'/commons/changeZone.php' ) ;
243. ?>
244. </div>
245. <br>
246.
247. <div align="center" id="filler" style="display: block ; margin-top: 2% ; " >
248. <p> </p>
249. <div align="center" class="tick">
250. <form id="ticker" >
251. <input type="text" name="display">
252. </form>
253. <p> </p>
254. </div>
255. </div>
256.
257. <div id="footer" align="center" style="display: block ; width: 100% ; margin-top: 2% ; " >
258. <img src="/img/transparentHorizontal.png" alt="+" width="800" height="1" ><br>
259. <a href='javascript: goTo( "<?php print( $thisHere.'/index.php'. $q ) ; ?>" ) ; ' class="t" >home</a> · <a href='javascript: goTo( "<?php print( 'https://liveclock.net/fullScreen.php'. $q ) ; ?>" ) ; ' class="t" >alternate view</a> · <a href="javascript: if ( navigator.onLine ) {
260. window.location.assign( 'https://liveclock.org/blueClock/fullScreen.php<?php print( $q ) ; ?>' ) ; } else { alert( 'Sorry! Internet is down right now.' ) ; } " class="t" >alternate host</a> · <a href='javascript: goTo( "window.location.reload()" ) ; ' class="t" >reload screen</a> · <a href="javascript: if ( isVisible( 'changeZone' ) || !navigator.onLine ) { Hide( 'changeZone' ) ; Show( 'filler' ) ; } else { Show( 'changeZone' ) ; Hide( 'filler' ) ; } " class="t" >set time zone</a> · <a href="javascript:
261. if ( navigator.onLine ) { if ( ( phaseTable == null ) || ( phaseTable.closed ) ) { phaseTable=window.open( 'https://esand.net/theCopyExchange/lunarCalendar/moonPhase.php','_blank','location=0,left=1,top=1,height=600,width=1000' ) ; phaseTable.focus() ; } else { phaseTable.close() ; } } else { alert( 'Need online connectivity for this!' ) ; } " class="t" >display lunar calendar</a> · <a href="javascript: if ( navigator.onLine ) {
262. if ( ( contactWindow == null ) || ( contactWindow.closed ) ) { contactWindow=window.open( 'https://liveclock.net/commons/contact.htm','_blank','location=0,left=1,top=1,height=400,width=400' ) ; contactWindow.focus() ; } else { contactWindow.close() ; } } else { alert( 'Please retry when back online.' ) ; } " class="t" >contact</a>
263. </div>
264. <br>
265. <div id="moreFooter" align="center" style="display: block ; width: 100% ; " height="10%" >
266. <a href="javascript: if ( isVisible ( 'SysClock' ) ) { Hide( 'SysClock' ) ; Show( 'filler' ) ; Show( 'mainIdea' ) ; } else { Hide( 'sourceS' ) ; Hide( 'sourceC' ) ; Hide( 'filler' ) ; Show( 'space150' ) ; Show( 'SysClock' ) ; getSysClock() ; getSysDate() ; } " class="t" >display system clock</a> · <a href="javascript: if ( isVisible( 'sourceS' ) ) { Hide( 'sourceS' ) ; Show( 'filler' ) ; Show( 'space150' ) ; Show( 'mainIdea' ) ; } else { Hide( 'sourceC' ) ; Hide( 'mainIdea' ) ; Hide( 'GMTconvert' ) ; Hide( 'filler' ) ; Hide( 'space150' ) ; Show ( 'sourceS' ) ; } " class="t" >display source</a> · <a href="javascript: if ( isVisible( 'sourceC' ) ) { Hide( 'sourceC' ) ; Show( 'filler' ) ; Show( 'space150' ) ; Show( 'mainIdea' ) ; } else { Hide( 'sourceS' ) ; Hide( 'mainIdea' ) ; Hide( 'GMTconvert' ) ; Hide( 'filler' ) ; Hide( 'space150' ) ; Show ( 'sourceC' ) ; } " class="t" >display clockworks</a> · <a href="javascript: if ( isVisible( 'GMTconvert' ) ) { Hide( 'GMTconvert' ) ; Show( 'mainIdea' ) ; Show ( 'filler' ) ; } else { Hide( 'sourceS' ) ; Hide( 'sourceC' ) ; Hide( 'filler' ) ; Show( 'space150' ) ; Show( 'GMTconvert' ) ; } " class="t" >display GMT to US zone</a> · <a href="javascript: if ( birdOn ) { if ( navigator.onLine ) { window.location.reload() ; } } else { flyBird() ; } " class="t" >Bird</a> · <a href="javascript: if ( navigator.onLine ) { alert( 'You are connected to the Internet' ) ; } else { alert( 'No online connection detected' ) ; } " class="t" >Check Internet connectivity</a>
267. <br>
268. </div>
269.
270. <div id="footerSpace" align="center" style="display: block ; width: 100% ; " height="10%" >
271. <p> <br></p>
272. </div>
273.
274. <div id="altFooter" align="center" style="display: none ; width: 100% ; " >
275. <p style="font: 14px Verdana ; color: #808080 ; " >
276. The application could not connect to the Internet, but will continue processing.<br>The clock will reset after reconnection.</p>
277. <p> <br></p>
278. </div>
279.
280. </center>
281.
282. <p> <br></p>
283.
284. <script type="text/javascript">
285. var tickerOn = false ;
286. var newsStr = str200 ;
287. var b = 0 ;
288. document.forms[ "ticker" ].display.value = " " ;
289.
290. function startTicker() {
291. if ( tickerOn ) { return ; }
292. else {
293. if ( navigator.onLine ) {
294. tickerOn = true ;
295. Reveal( 'filler' ) ;
296. Ticker() ;
297. }
298. else{ return ; }
}
299. }
300. </script>
301.
302. </body>
303. </html>
304.