//////////////EDIT OBSERVED CONDITIONS HERE/////////////////// // Type between the singe quotes, use the lines provided. Use
for to force linefeed. conditions1 = 'Testing weathercam number two which will view the sky'; conditions2 = 'East of OLds,from about the 50 Ft.level.'; conditions3 = 'Weathercam No.1 will be about the 60 ft.level viewing West'; // Enter the time of observation in month dd, yyyy hh:mm format (Time = 24 Hr) datetime = 'Febuary 6, 2005 14:54'; // Enter your name between the quotes below. yourname = 'S V Munro, VE6KN'; // Observation expiry time (in hours) expiry ='9'; // The intro and signoff probably don't need to be changed but can if you want. intro = 'Observed Conditions as of '; signoff = 'Submitted by '; // 'no' means to hide the displayed conditions display = 'yes'; /////////////////////////////////////////////////////////////// // Do NOT edit the following lines today = new Date(datetime); current = new Date(); todayms = today.getTime(); currentms = current.getTime(); timediff = currentms - todayms; maxtd = expiry * 60 * 60 * 1000; if (display == 'yes' && timediff < maxtd ) { //Write intro document.write(intro); // Format Time min = today.getMinutes(); if (min < 10) { min = min + ''; min = '0' + min; } hours = today.getHours(); if (hours < 12){ ap = 'AM'} else{ ap = 'PM'} if (hours == 0){ hours = 12}; if (hours > 12){ hours = hours -12} document.write( hours + ':' + min + ' ' + ap); // Format Date month = today.getMonth(); month++; document.write( ' ' + month); document.write( '\/'); document.write( today.getDate() ); document.write( '\/'); document.write( today.getFullYear() ); document.write('
'); document.write(conditions1 + conditions2 + conditions3 + '
'); document.write(signoff + yourname); }