mirror of
https://github.com/objectivehtml/FlipClock.git
synced 2024-09-21 18:37:25 +00:00
9047ba57f8
- (Bug Fix) Fixed an issue with multiple instances breaking due to a property instance not getting properly set. - (Bug Fix) Removed legacy flipclock.js file - (Example) Added new example to illustrate multiple instances
34 lines
677 B
HTML
34 lines
677 B
HTML
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="../compiled/flipclock.css">
|
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
|
|
|
<script src="../compiled/flipclock.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="clock-1" style="margin:2em;"></div>
|
|
|
|
<div class="clock-2" style="margin:2em;"></div>
|
|
|
|
<div class="message"></div>
|
|
|
|
<script type="text/javascript">
|
|
var clocks = [];
|
|
|
|
$(document).ready(function() {
|
|
|
|
clocks.push($('.clock-1').FlipClock({
|
|
clockFace: 'MinuteCounter'
|
|
}));
|
|
|
|
clocks.push($('.clock-2').FlipClock({
|
|
clockFace: 'HourlyCounter'
|
|
}));
|
|
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html> |