runner UI does not run
runner UI does not run
Hi guys
I am trying to use the runner UI http://plugins.jquery.com/runner/
I have all these file included (last 2 are for the runner class)
- <script type="text/javascript" src="js/jquery-ui.min.js"></script>
- <script src="js/jquery.ui.core.js" type="text/javascript"></script>
- <script src="js/jquery.ui.widget.js" type="text/javascript"></script>
- <script src="js/jquery.ui.slider.js" type="text/javascript"></script>
- <script src="js/jquery.ui.datepicker.js" type="text/javascript"></script>
- <script src="js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
- <script src="js/jquery.runner.js" type="text/javascript"></script>
- <script src="js/jquery.runner-min.js" type="text/javascript"></script>
Then I have this code to inisilize runner
- <script>
- $(function(){
- $('#triggerOn').datetimepicker({
- timeFormat: "hh:mm tt"
- });
-
-
- $('#timer').runner(
- { autostart: true }
- );
-
- $('#timerStart').click(function() {
- $('#timer').runner('start');
- });
- $('#timerReset').click(function() {
- $('#timer').runner('reset');
- });
- $('#timerStop').click(function() {
- $('#timer').runner('stop');
- });
-
- });
- </script>
this is my html code to display and click the button to start/stop/reset
- <div style="margin: 20px auto; width: 190px; padding: 20px; background-color: #fff; display: block; height: 80px; border: 1px solid #ccc;">
- <input type="text" id="timer" name="timer" value="" readyonly="true" style="width: 150px; height: 35px; font-size: 20px; font-weight: bold; text-align: center; background-color: #2D2D2D; color: #fff;"><br />
- <div style="margin:0 auto; width: 150px;">
- <div class="button" id="timerStart" style="display: inline;" >Start</div>
- <div class="button" id="timerStop" style="display: inline;" >Stop</div>
- <div class="button" id="timerReset" style="display: inline;" >Reset</div>
- </div>
- </div>
Can somebody plkease tell me why it is not running? if i click on start it does not start and it does not autorun. it does not work at all and I get no errors in my console!.
Thanks