Clock as region fill

Registered by Paul van Dun

Clock as media type.

Perhaps we could support a [clock] tag in text/rss
or even a [date] tag to.

https://github.com/Lwangaman/jQuery-Clock-Plugin

Digital and analog clock support should be added.

Also interesting: http://www.joelpeterson.com/clock/
And look into this one: http://www.jqueryrain.com/2011/11/14-best-jquery-clock-tutorials-both-analog-and-digital-clocks/

Edit:

Got a working digital clock (maybe make it to work with the fittext plugin?!!!!!!) > whiteboard

Blueprint information

Status:
Complete
Approver:
Dan Garner
Priority:
Undefined
Drafter:
Dan Garner
Direction:
Approved
Assignee:
Xibo Developers
Definition:
Approved
Series goal:
Accepted for 1.6
Implementation:
Implemented
Milestone target:
milestone icon 1.6.0-rc2
Started by
Alex Harrington
Completed by
Alex Harrington

Related branches

Sprints

Whiteboard

Code to workout (maybe make fittext also working with this one :)):

<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
// Create two variable with the names of the months and days in an array
var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
var dayNames= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]

// Create a newDate() object
var newDate = new Date();
// Extract the current date from Date object
newDate.setDate(newDate.getDate());
// Output the day, date, month and year
$('#Date').html(dayNames[newDate.getDay()] + " " + newDate.getDate() + ' ' + monthNames[newDate.getMonth()] + ' ' + newDate.getFullYear());

setInterval( function() {
 // Create a newDate() object and extract the seconds of the current time on the visitor's
 var seconds = new Date().getSeconds();
 // Add a leading zero to seconds value
 $("#sec").html(( seconds < 10 ? "0" : "" ) + seconds);
 },1000);

setInterval( function() {
 // Create a newDate() object and extract the minutes of the current time on the visitor's
 var minutes = new Date().getMinutes();
 // Add a leading zero to the minutes value
 $("#min").html(( minutes < 10 ? "0" : "" ) + minutes);
    },1000);

setInterval( function() {
 // Create a newDate() object and extract the hours of the current time on the visitor's
 var hours = new Date().getHours();
 // Add a leading zero to the hours value
 $("#hours").html(( hours < 10 ? "0" : "" ) + hours);
    }, 1000);
});
</script>

<style type="text/css">
/* If you want you can use font-face */
@font-face {
    font-family: 'BebasNeueRegular';
    src: url('BebasNeue-webfont.eot');
    src: url('BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
         url('BebasNeue-webfont.woff') format('woff'),
         url('BebasNeue-webfont.ttf') format('truetype'),
         url('BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.clock {width:100%; margin:0 auto; color:#fff; }

#Date { font-family:'BebasNeueRegular', Arial, Helvetica, sans-serif; font-size:2em; text-align:center; text-shadow:0 0 5px #666; }

ul { width:100%; margin:0 auto; padding:0px; list-style:none; text-align:center; }
ul li { display:inline; font-size:3em; text-align:center; font-family:'BebasNeueRegular', Arial, Helvetica, sans-serif; text-shadow:0 0 5px #666; color: #4b4b4c; }

#point { padding-left:10px; padding-right:10px; }

/* Simple Animation */
@-webkit-keyframes mymove
{
0% {opacity:1.0; text-shadow:0 0 20px #666;}
50% {opacity:0; text-shadow:none; }
100% {opacity:1.0; text-shadow:0 0 20px #666; }
}

@-moz-keyframes mymove
{
0% {opacity:1.0; text-shadow:0 0 20px #666;}
50% {opacity:0; text-shadow:none; }
100% {opacity:1.0; text-shadow:0 0 20px #666; }
}
</style>

<script src="https://raw.github.com/davatron5000/FitText.js/master/jquery.fittext.js"></script>

 <script type="text/javascript">
  $(".clock").fitText(2.75);
 </script>

<div class="clock">
      <ul>
          <li id="hours"></li>
          <li id="point">:</li>
          <li id="min"></li>
      </ul>
</div>

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.