Lovely.IO

The Next Generation of Front-Side

Package Info

Links
Size
622 Bytes (gzipped)
Tags
Games
Author
Nikolay Nemshilov
License
MIT
Versions
CDN Links
Dependencies

Timer

Timer is a simple timer widget

Lovely(["timer"], function(Timer) {
  var timer = new Timer();
  timer.insertTo('#some .element');

  timer.start();
  timer.stop();
  timer.reset();
});

Options

There are several additional options you can use when creating a timer element

HTML Structure

Timer is basically a very simple DIV element with the timer css-class

<div class="timer">00:00</div>

But it also gets assigned the active css-class when it's working

Copyright And License

This project is released under the terms of the MIT license

Copyright (C) 2011 Nikolay Nemshilov