| 62 | Timer.prototype.start = function(options) { |
| 63 | |
| 64 | var createSubDivs = function(timerBoxElement){ |
| 65 | var seconds = document.createElement('div'); |
| 66 | seconds.className = 'seconds'; |
| 67 | |
| 68 | var minutes = document.createElement('div'); |
| 69 | minutes.className = 'minutes'; |
| 70 | |
| 71 | var hours = document.createElement('div'); |
| 72 | hours.className = 'hours'; |
| 73 | |
| 74 | var clearDiv = document.createElement('div'); |
| 75 | clearDiv.className = 'clearDiv'; |
| 76 | |
| 77 | return timerBoxElement. |
| 78 | append(hours). |
| 79 | append(minutes). |
| 80 | append(seconds). |
| 81 | append(clearDiv); |
| 82 | }; |
| 83 | |
| 84 | this.targetElement.each(function(_index, timerBox) { |
| 85 | var that = this; |