FlipClock/examples/multiple-instances.html
Justin Kimbrell 9047ba57f8 Bug Fix
- (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
2014-08-08 13:08:12 -04:00

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>