UNPKG

timers3000

Version:

Provides a graphical interface in your browser to create and manage incremental timers for your daily tasks.

20 lines (19 loc) 1.29 kB
if(timer.group === group._id) .timerrow(timer=timer._id, id=timer._id+"_row", draggable="true", ondragstart="handleDragStart(event)", ondragend="handleDragEnd(event)") .col-3 .onoffswitch if(timer.active) input.onoffswitch-checkbox(type="checkbox", name="onoffswitch"+timer._id,checked="checked", id=timer._id, onClick='toggleSwitch(\"#{timer._id}\")') else input.onoffswitch-checkbox(type="checkbox", name="onoffswitch"+timer._id, id=timer._id, onClick='toggleSwitch(\"#{timer._id}\")') label.onoffswitch-label(for=timer._id, id=timer._id+"_label") .onoffswitch-inner .onoffswitch-switch input.ui-input-text.timertext.col-3(id=timer._id+"_name" value=timer.name, onBlur="renameTimer('#{timer._id}',this)", onKeyPress="if(event.keyCode==13)this.blur();") .timertext.col-3322(id=timer._id+"_timer") script. document.write(convertSeconds(#{timer.time})); .pull-right a.btn.timer-ui-btn.red(onClick="deleteTimer('#{timer._id}',this)") i.fa.fa-trash-o.fa-xs a.timer-ui-btn.btn.blue(href="/statistics/timer/" + timer._id) i.fa.fa-bar-chart-o.fa-xs