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 Live Clock</title>
006. <!-- Host is theCopyExchange on A2 -->
007. <meta name="description" content="Current time displayed, local or other zone, in large numbers - Always ad-free, cookie-free, open-source." >
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://liveclock.org/commons/mainStylesheet.css" >
011. <link rel="shortcut icon" href="favicon.ico" >
012. <script type="text/javascript">
013.
014. if ( contactWindow != null ) { contactWindow.close() ; }
015. else { var contactWindow ; }
016. if ( phaseTable != null ) { phaseTable.close() ; }
017. else { var phaseTable ; }
018.
019. function formReset() {
020. const form = document.getElementById( 'gmtForm' ) ;
021. if ( form ) { form.reset() ; }
022. }
023.
024. <?php
025. $yrZulu = gmdate( 'Y' ) ;
026. $moZulu = gmdate( 'm' ) ;
027. $daZulu = gmdate( 'd' ) ;
028. $hrZulu = gmdate( 'H' ) ;
029. $mnZulu = gmdate( 'i' ) ;
030. $dsplPic = 0 ;
031. $qry = $_SERVER[ 'QUERY_STRING' ] ;
032. if ( $qry == NULL ) { $q = "" ; }
033. else { $q = "?".$qry ; }
034. print ( '
035. function Exit() { window.location = "/'.$q.'" ; }
036. ' ) ;
037. error_reporting (E_ERROR | E_WARNING | E_PARSE ) ;
038. $jw = '/home/copyexch/public_html' ;
039. $bw = $jw.'/liveClock' ;
040. include ( 'timeFunctions.php' ) ;
041. include ( $bw.'/timeChange.php' ) ;
042. include ( $bw.'/displayTime.htm' ) ;
043. include ( $bw.'/disclaim.php' ) ;
044. $tZone = " " ; $tZ = " " ; $cont = " " ;
045. $blue = "" ;
046. $thisHere = 'https://'.strtolower( $_SERVER[ 'HTTP_HOST' ] ) ;
047. $GMTmo = gmdate( 'm' ) ;
048. $GMTda = gmdate( 'd' ) ;
049. $GMThr = gmdate( 'H' ) ;
050. function viewSource( $fn ) {
051. $path = $fn ;
052. print( '
053. <div align="left" style="font: 11px Courier ; " >
054. <br><br>
055. ' ) ;
056. $LineNo = 0 ;
057. $LineOut = ' ' ;
058. if ( ( $sc = fopen( $fn, 'r' ) ) != false ) {
059. while ( ( $record = fgets( $sc ) ) != false ) {
060. $record = str_replace( '&', '&', $record ) ;
061. $record = str_replace( '<', '<', $record ) ;
062. $record = str_replace( '>', '>', $record ) ;
063. $LineNo ++ ;
064. $LineOut = str_pad( strval( $LineNo ), 3, '0', STR_PAD_LEFT ).'. '.$record.'<br>' ;
065. print( $LineOut ) ;
066. }
067. fclose( $sc ) ;
068. }
069. else { print( 'File not found in '.$path.'<br>' ) ; }
070. print( '</div><br><br>' ) ;
071. }
072. ?>
073. var b = 0 ;
074. var tmr = null ;
075. var newsStr = " " ;
076. var str200 = " " ;
077. var ix = 1 ;
078. while ( ix < 200 ) { str200 = str200 + " " ; ix ++ ; }
079. newsStr = str200 ;
080. function Ticker() {
081. b=( b==newsStr.length )? 0 : b + 1 ;
082. if( b <= 1 ) {
083. newsStr = str200 + disclaimer ;
084. b = 2 ;
085. }
086. document.forms[ "ticker" ].display.value = newsStr.substr( b ) ;
087. tmr = setTimeout( "Ticker()", 200 ) ;
088. }
089. function setClockVariables() {
090. document.forms[ "clock1" ].display1.value = " " ;
091. if ( tZone == "GMT" ) { document.forms[ "clock2" ].display2.value = clock2 ; }
092. else { document.forms[ "clock2" ].display2.value = clock6 ; }
093. document.forms[ "clock7" ].display7.value = clock7 ;
094. if ( ( minutes % 20 == 2 ) && ( seconds == 30 ) ) { startTicker() ; }
095. }
096. function clearTicker() {
097. clearTimeout( tmr ) ;
098. var tmr = null ;
099. var tickerOn = false ;
100. var newsStr = str200 ;
101. var b = 0 ;
102. document.forms[ "ticker" ].display.value = " " ;
103. }
104. </script>
105. </head>
106. <body background-color="#000000" onLoad=" tellTime() ; formReset() ; " >
107.
108. <style type="text/css">
109. div.s1 input { font: 24px Courier New ; color: #FFFFFF ; padding: 10px ; text-align: center ; width: 800px ; height: 30px ; border: 0 ; background-color: transparent ; padding-right: 200px ; }
110. div.s2 input { font: 100px Courier New ; color: #FFFFFF ; font-weight: bold ; padding: 10px ; text-align: center ; width: 800px ; height: 120px ; border: 0 ; background-color: transparent ; opacity: 0.5 ; padding-right: 200px ; }
111. div.s3 input { font: 24px Courier New ; color: #FFFFFF ; padding: 10px ; text-align: center ; width: 800px ; height: 30px ; border: 0 ; background-color: transparent ; padding-right: 200px ; }
112. div.s4 input { font: 16px Courier New ; color: #FFFFFF ; padding: 10px ; text-align: center ; width: 800px ; height: 16px ; border: 0 ; background-color: transparent ; padding-right: 200px ; }
113. div.tick input { font: 12px Verdana ; color: #3030BB ; font-weight: 600 ; width: 1000px ; height: 15px ; border: 0 ; background-color: transparent ; margin-right: 100px ; }
114. div.tick input:hover { font: 12px Verdana ; color: #3030BB ; font-weight: 600 ; width: 1000px ; height: 15px ; border: 0 ; background-color: transparent ; margin-right: 100px ; }
115. </style>
116.
117. <center>
118.
119. <div id="dark" style="display: block ; background-color: transparent ; " >
120. <img src="https://liveclock.org/img/transparentVertical.png" width="1" height="150" alt="dark screen top" >
121. </div>
122.
123. <div id="moon" style="display: none ; " >
124. <a href="javascript: if ( ( ( phaseTable == null ) || ( phaseTable.closed ) ) && navigator.onLine ) {
125. phaseTable=window.open( 'https://liveclock.org/commons/moonPhase.php','_blank','location=0,left=1,top=1,height=550,width=900' ) ; phaseTable.focus() ; } else { phaseTable.close() ; } " style="border: none ; " >
126. <?php
127. include( 'moon.php' ) ;
128. ?>
129. </a>
130. </div>
131.
132. <table>
133. <tr>
134. <td width="15%" >
135. <div id="zoneMenu" style="display: none ; background-color: transparent ; " >
136. <img src="https://liveclock.org/img/transparentHorizontal.png" width="75" height="1" alt="side bar open" >
137. <div style="border: 1px solid #442222 ; font: 12px Verdana ; margin-left: 30px ; text-align: left ; padding-left: 30px ;" >
138. <br><br>
139. <a href="https://liveclock.org/index.php" class="t" >Other</a>
140. </div>
141. </div>
142. </td>
143. <td width="85%" >
144.
145. <div align="center" class="s1" >
146. <form id="clock1" >
147. <input type="text" name="display1" readonly >
148. </form>
149. </div>
150. <div align="center" class="s2" >
151. <form id="clock2" >
152. <input type="text" name="display2" readonly >
153. </form>
154. </div>
155.
156. <script type="text/javascript">
157. var bx = 0 ; var bxb = 0 ;
158. function flyingDino() {
159. bx ++ ;
160. document.getElementById( "flyingDino" ).style.right = bx + "px" ;
161. if ( bx < 2000 ) { setTimeout( "flyingDino() ; ", 10 ) ; } else { Hide( "flyingDino" ) ; bx = 0 ; }
162. }
163. function flyingDinoBack() {
164. bxb ++ ;
165. document.getElementById( "flyingDinoBack" ).style.left = bxb + "px" ;
166. if ( bxb < 2000 ) { setTimeout( "flyingDinoBack() ; ", 10 ) ; } else { Hide( "flyingDinoBack" ) ; bxb = 0 ; }
167. }
168. function DinoTimer() {
169. var sSec = seconds ; var sMin = minutes ;
170. if ( ( ( sMin % 3 ) == 0 ) & ( ( sSec == 9 ) | ( sSec == 45 ) ) & ( !isVisible( 'flyingDino' ) ) ) { Reveal( 'flyingDino' ) ; flyingDino() ; }
171. if ( ( ( sMin % 4 ) == 0 ) & ( ( sSec == 51 ) | ( sSec == 16 ) ) & ( !isVisible( 'flyingDinoBack' ) ) ) { Reveal( 'flyingDinoBack' ) ; flyingDinoBack() ; }
172. setTimeout( 'DinoTimer() ; ', 500 ) ;
173. }
174. function flyBird() {
175. setTimeout( "Reveal( 'flyingDino' ) ; flyingDino() ; ", 2000 ) ;
176. DinoTimer() ;
177. }
178. </script>
179.
180. <div id="flyingDino" style="display: none ; position: fixed ; top: 160px ; right: 0 ; " >
181. <img src= "https://liveclock.org/img/pterodactylLeft.gif" alt="«·" >
182. </div>
183.
184. <div id="flyingDinoBack" style="display: none ; position: fixed ; top: 400px ; left: 0 ; " >
185. <img src="https://liveclock.org/img/pterodactylRight.gif" alt="·»" >
186. </div>
187.
188. <div id="space150" style="display: block ; height: 100px ; ">
189. <img src="https://liveclock.org/img/transparentVertical.png" alt="150 high" height="100 " width="1" >
190. </div>
191.
192. <div id="sourceS" style="display: none ; " >
193. <div style="margin: 2% ; padding: 2% ; border: 1px solid #666688 ; " "">
194. <img src="https://liveclock.org/img/transparentHorizontal.png" alt="100 wide" width="1000" height="1" >
195. <?php
196. viewSource( $bw.'/fullScreen.php' ) ;
197. ?>
198. </div>
199. </div>
200.
201. <div id="sourceC" style="display: none ; " >
202. <div style="margin: 2% ; padding: 2% ; border: 1px solid #666688 ; " >
203. <img src="https://liveclock.org/img/transparentHorizontal.png" alt="100 wide" width="1000" height="1" >
204. <?php
205. viewSource( $bw.'/displayTime.htm' ) ;
206. ?>
207. </div>
208. </div>
209.
210. <div id="mainIdea" align="center" class="s3" style="display: block ; height: 100px ; " >
211. <form id="clock3" >
212. <input type="text" name="display3" readonly >
213. </form>
214. <form id="clock7" >
215. <input type="text" name="display7" readonly >
216. </form>
217. </div>
218.
219. <div align="center" id="SysClock" class="s4" style="display: none ; padding-left: 0% ; height: 15% ; " >
220. <form id="cpuT" >
221. <input type="text" name="clockString" readonly >
222. </form>
223. <div align="center" id="SysDate" class="s4" >
224. <form id="cpuD" >
225. <input type="text" name="dateString" readonly >
226. </form>
227. </div>
228. <p> <br> </p>
229. </div>
230.
231. <div id="GMTconvert" style="display: none ; width: 85% ; height: 100px ; " >
232. <?php
233. include( $bw.'/commons/GMTtoUSAform.php' ) ;
234. ?>
235. <br>
236. </div>
237.
238. <div align="center" id="changeZone" style="display: none ; width: 85% ; height: 100px ; " >
239. <?php
240. include( $bw.'/commons/changeZone.php' ) ;
241. ?>
242. <br>
243. </div>
244.
245. <div align="center" id="filler" style="display: block ; padding-left: 0% ; height: 15% ; " >
246. <p> <br> <br> </p>
247. <div align="center" class="tick">
248. <form id="ticker" >
249. <input type="text" name="display" >
250. </form>
251. </div>
252. <p> <br> <br> </p>
253. </div>
254.
255. <div id="footer" align="center" style="display: block ; width: 85% ; " >
256. <a href='javascript: goTo( "<?php print( $thisHere.'/index.php'. $q ) ; ?>" ) ; ' class="t" >home</a> · <a href='javascript: goTo( "<?php print( $thisHere.'/blueClock/fullScreen.php'. $q ) ; ?>" ) ; ' class="t" >alternate view</a> · <a href="javascript: if ( navigator.onLine ) {
257. window.location.assign( 'https://liveclock.net/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: if ( navigator.onLine ) {
258. if ( ( contactWindow == null ) || ( contactWindow.closed ) ) { contactWindow=window.open( 'https://liveclock.org/contact.htm','_blank','location=0,left=1,top=1,height=400,width=500' ) ; contactWindow.focus() ; } else { contactWindow.close() ; } } else { alert( 'Please retry when back online.' ) ; } " class="t" >contact</a> · <a href="javascript: if ( isVisible( 'moon' ) ) { window.location.reload() ; } else { if ( tickerOn ) { clearTicker() ; } ; Hide( 'dark' ) ; Show( 'moon' ) ; } " class="t" >see moon</a> · <a href="javascript: ToggleDisplay( 'moreFooter' ) ; ToggleDisplay( 'footerSpace' ) ; if( isVisible( 'moon' ) ) { Hide( 'moon' ) ; Show( 'dark' ) ; } " class="t" title="System Clock · View Source · Lunar Calendar by Year · Show Night Bird" >+/-</a>
259. </div>
260. <br>
261. <div id="moreFooter" align="center" style="display: none ; width: 85% ; " height="10%" >
262. <a href="javascript: if ( isVisible ( 'SysClock' ) ) { Hide( 'SysClock' ) ; Show( 'filler' ) ; } else { Hide( 'filler' ) ; Show( 'SysClock' ) ; getSysClock() ; getSysDate() ; } " class="t" >display system clock</a> · <a href="javascript: if ( isVisible( 'sourceS' ) ) { Hide( 'sourceS' ) ; Show( 'mainIdea' ) ; } else { Hide( 'sourceC' ) ; Hide( 'mainIdea' ) ; Show ( 'sourceS' ) ; } " class="t" >display source</a> · <a href="javascript: if ( isVisible( 'sourceC' ) ) { Hide( 'sourceC' ) ; Show( 'mainIdea' ) ; } else { Hide( 'sourceS' ) ; Hide( 'mainIdea' ) ; Show ( 'sourceC' ) ; } " class="t" >display clockworks</a> · <a href="javascript: if ( isVisible( 'moon' ) ) { window.location.reload() ; } else { if ( tickerOn ) { clearTicker() ; } ; ToggleDisplay( 'dark' ) ; ToggleDisplay( 'moon' ) ; flyBird() ; } " class="t" >fly bird</a> · <a href="javascript: if ( isVisible( 'GMTconvert' ) ) { Hide( 'GMTconvert' ) ; Show ( 'filler' ) ; } else { Hide( 'filler' ) ; Show( 'GMTconvert' ) ; } " class="t" >display GMT to US zone</a> · <a href="javascript:
263. if ( navigator.onLine ) { if ( ( phaseTable == null ) || ( phaseTable.closed ) ) { phaseTable=window.open( 'https://liveclock.org/commons/moonPhase.php','_blank','location=0,left=1,top=1,height=550,width=900' ) ; phaseTable.focus() ; } else { phaseTable.close() ; } } else { alert( 'Need online connectivity for this!' ) ; } " class="t" >display lunar calendar</a>
264. <br>
265. </div>
266.
267. <div id="footerSpace" align="center" style="display: block ; width: 50% ; " height="10%" >
268. <p> <br></p>
269. </div>
270.
271. <div id="altFooter" align="center" style="display: none ; width: 85% ; " >
272. <p style="font: 14px Verdana ; color: #808080 ; " >
273. The application could not connect to the Internet, but will continue processing.<br>The clock will reset after reconnection.</p>
274. <p> <br></p>
275. </div>
276.
277. <p> <br></p>
278.
279. </td></tr></table>
280.
281. </center>
282.
283. <script type="text/javascript" >
284.
285. var GMTmo = "<?php print( $GMTmo ) ; ?>" ;
286. var GMTda = "<?php print( $GMTda ) ; ?>" ;
287. var GMThr = "<?php print( $GMThr ) ; ?>" ;
288. if ( ( GMTmo == "11" ) && ( GMTda == "01" ) && ( GMThr < "06" ) ) { Hide( 'dark' ) ; Show( 'moon' ) ; flyBird() ; }
289.
290. var tickerOn = false ;
291. var newsStr = str200 ;
292. var b = 0 ;
293. document.forms[ "ticker" ].display.value = " " ;
294.
295. function startTicker() {
296. if ( ( tickerOn ) || ( isVisible( 'moon' ) ) ) { return ; }
297. else {
298. tickerOn = true ;
299. Reveal( 'filler' ) ;
300. Ticker() ;
301. }
302. }
303. </script>
304.
305. </body>
306. </html>
307.