Permalink
Browse files

Remove timer.js

  • Loading branch information...
1 parent 575399d commit cd47891c0f42c78878c36bd13a5f175569f83b57 @kyungbae committed Nov 24, 2012
Showing with 0 additions and 56 deletions.
  1. +0 −56 timer.js
View
56 timer.js
@@ -1,56 +0,0 @@
-$(document).ready(function() {
- $('#timer-start').click(function() {
- var hours = $('#hour-input').val();
-
- var length = hours.length;
-
- if (/^\d\d$/.test(hours)) {
- $('#test-number').html("The test result is ture. ");
- } else {
- $('#test-number').html("Test failed.");
- }
-
- var timeset = "+" + hours + "s";
-
- $('#timer-result').html("The input hour is " + hours + "<br/>The length is " + length);
- $('#timer-tick').countdown({
- until: timeset,
- layout: '{hnn}{sep}{mnn}{sep}{snn}',
- onTick: updateSecondSlider
- });
- });
-
- $('#timer-reset').click(function() {
- $('#timer-result').html("The set value is " + $("#min-input").slider("value"));
- $('#timer-tick').countdown('destroy');
- $('#timer-tick').html("00:00:00");
- $('#min-input').slider("option", "value", 0);
- $('#min-input').data().slider.element.find(".ui-slider-handle").text(0);
- $('#hour-input').val('');
- });
-
- // var updateSliderValue = function(e, ui) {
- // var slider = $(this).data().slider;
- // slider.element.find(".ui-slider-handle").text(ui.value);
- // $('#minutes').val("The minutes is " + ui.value);
- // };
-
- $("#min-input").slider({
- min:0, max:59,
- slide: function( event, ui) {
- $(this).data().slider.element.find(".ui-slider-handle").text(ui.value);
- $('#hour-input').val(ui.value);
- },
- //create: updateSliderValue,
- value: 0
- });
-
- function updateSecondSlider(periods) {
- var sec = $.countdown.periodsToSeconds(periods);
- $('#min-input').slider("option", "value", sec);
- $('#min-input').data().slider.element.find(".ui-slider-handle").text(sec);
- }
-
- // For displaying initial value
- //$('#minutes').val("Later funcion Set " + $('#min-input').slider("value"));
-});

0 comments on commit cd47891

Please sign in to comment.