Clock as region fill
Clock as media type.
Perhaps we could support a [clock] tag in text/rss
or even a [date] tag to.
https:/
Digital and analog clock support should be added.
Also interesting: http://
And look into this one: http://
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:
-
1.6.0-rc2
- Started by
- Alex Harrington
- Completed by
- Alex Harrington
Related branches
Related bugs
Sprints
Whiteboard
Code to workout (maybe make fittext also working with this one :)):
<script type="text/
<script type="text/
$(document)
// 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"
// Create a newDate() object
var newDate = new Date();
// Extract the current date from Date object
newDate.
// Output the day, date, month and year
$('#Date'
setInterval( function() {
// Create a newDate() object and extract the seconds of the current time on the visitor's
var seconds = new Date().
// 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().
// 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-
src: url('BebasNeue-
font-weight: normal;
font-style: normal;
}
.clock {width:100%; margin:0 auto; color:#fff; }
#Date { font-family:
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:
#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:/
<script type="text/
$(".clock"
</script>
<div class="clock">
<ul>
<li id="hours"></li>
<li id="point">:</li>
<li id="min"></li>
</ul>
</div>