2015-11-19 15:15:33 +00:00
|
|
|
<!DOCTYPE html>
|
2015-11-21 21:00:34 +00:00
|
|
|
<html ng-app="interval-timer">
|
2015-11-19 15:15:33 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2015-11-21 21:00:34 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2015-11-19 15:15:33 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/styles.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
|
|
|
|
<script type="text/javascript" src="js/angular.min.js"></script>
|
2015-11-22 02:22:35 +00:00
|
|
|
<script type="text/javascript" src="js/angular-cookies.min.js"></script>
|
2015-11-21 21:00:34 +00:00
|
|
|
<script type="text/javascript" src="js/app.js"></script>
|
2015-11-19 15:15:33 +00:00
|
|
|
</head>
|
2015-11-21 21:00:34 +00:00
|
|
|
<body ng-controller="timerCtrl as timer" ng-class="{'green': lowIntensity, 'red': highIntensity, 'blue': coolDown, 'yellow': warmUp }">
|
|
|
|
<div class="menu-top">
|
|
|
|
<a href="#" id="timer-name" class="menu-button">{{ timer.name }}<!-- <i class="fa fa-angle-down"></i> --></a>
|
|
|
|
</div>
|
2015-11-19 15:15:33 +00:00
|
|
|
<div class="timer-box">
|
|
|
|
<div class="timer-info">
|
2015-11-22 18:40:13 +00:00
|
|
|
<p class="time-info">Round: {{ round }}/{{ timer.rounds }} - Cycle: {{ cycle }}/{{ timer.cycles }}</p>
|
2015-11-21 21:00:34 +00:00
|
|
|
<p class="time">{{ time * 1000 | date : "mm:ss" }}</p>
|
2015-11-19 15:15:33 +00:00
|
|
|
</div>
|
|
|
|
<div class="timer-controls">
|
2015-11-21 21:00:34 +00:00
|
|
|
<a id="back" ng-click="stepBack()" class="control-button" href="#"><i class="fa fa-step-backward"></i></a>
|
|
|
|
<a id="play" ng-hide="timerActive" ng-click="startTimer()" class="control-button" href="#"><i class="fa fa-play"></i></a>
|
|
|
|
<a id="pause" ng-show="timerActive" ng-click="pauseTimer()" class="control-button" href="#"><i class="fa fa-pause"></i></a>
|
|
|
|
<a id="next" ng-click="stepForward()" class="control-button" href="#"><i class="fa fa-step-forward"></i></a>
|
2015-11-19 15:15:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-11-21 21:00:34 +00:00
|
|
|
<div class="menu-bottom">
|
2015-11-22 01:20:19 +00:00
|
|
|
<a href="#" ng-click="settingsOpen = true; closeSettings = false;" id="timer-menu-btn" class="menu-button"><i class="fa fa-hourglass-o"></i></a>
|
2015-11-21 21:00:34 +00:00
|
|
|
<a id="timer-reset-btn" ng-click="resetTimer()" href="#" class="menu-button"><i class="fa fa-refresh"></i></a>
|
|
|
|
</div>
|
2015-11-22 01:20:19 +00:00
|
|
|
<div ng-class="{ 'slideIn': settingsOpen, 'slideOut': closeSettings }" class="settings-menu">
|
2015-11-21 21:00:34 +00:00
|
|
|
<form id="timer-setup" name="timer-setup">
|
|
|
|
<label>Timer Name:</label>
|
|
|
|
<input type="text" ng-model="timer.name">
|
|
|
|
<label>Warm Up:</label>
|
2015-11-22 05:32:08 +00:00
|
|
|
<input type="number" ng-model="timer.warmUpTime">
|
2015-11-21 21:00:34 +00:00
|
|
|
<label>Low Intensity:</label>
|
2015-11-22 05:32:08 +00:00
|
|
|
<input type="number" ng-model="timer.lowIntensityTime">
|
2015-11-21 21:00:34 +00:00
|
|
|
<label>High Intensity:</label>
|
2015-11-22 05:32:08 +00:00
|
|
|
<input type="number" ng-model="timer.highIntensityTime">
|
2015-11-21 21:00:34 +00:00
|
|
|
<label>Cool Down:</label>
|
2015-11-22 05:32:08 +00:00
|
|
|
<input type="number" ng-model="timer.coolDownTime">
|
2015-11-21 21:00:34 +00:00
|
|
|
<label>Rounds:</label>
|
2015-11-22 15:51:11 +00:00
|
|
|
<input type="number" ng-model="timer.rounds">
|
|
|
|
<label>Cycles:</label>
|
2015-11-21 21:00:34 +00:00
|
|
|
<input type="number" ng-model="timer.cycles">
|
2015-11-22 05:32:08 +00:00
|
|
|
<a class="form-button" id="save" ng-click="settingsOpen = false; closeSettings = true; time = warmUpTime; resetTimer(); saveTimer()" href="#"> Save Changes</a>
|
2015-11-21 21:00:34 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2015-11-19 15:15:33 +00:00
|
|
|
</body>
|
|
|
|
</html>
|