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-21 21:00:34 +00:00
|
|
|
<script type="text/javascript" src="js/countdown.min.js"></script>
|
|
|
|
<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-21 21:00:34 +00:00
|
|
|
<p class="round">{{ round }}/{{ timer.cycles }}</p>
|
|
|
|
<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">
|
|
|
|
<a href="#" ng-click="settingsOpen = true" id="timer-menu-btn" class="menu-button"><i class="fa fa-hourglass-o"></i></a>
|
|
|
|
<a id="timer-reset-btn" ng-click="resetTimer()" href="#" class="menu-button"><i class="fa fa-refresh"></i></a>
|
|
|
|
</div>
|
|
|
|
<div ng-show="settingsOpen" class="settings-menu">
|
|
|
|
<form id="timer-setup" name="timer-setup">
|
|
|
|
<label>Timer Name:</label>
|
|
|
|
<input type="text" ng-model="timer.name">
|
|
|
|
<label>Warm Up:</label>
|
|
|
|
<input type="number" ng-model="warmUpTime">
|
|
|
|
<label>Low Intensity:</label>
|
|
|
|
<input type="number" ng-model="lowIntensityTime">
|
|
|
|
<label>High Intensity:</label>
|
|
|
|
<input type="number" ng-model="highIntensityTime">
|
|
|
|
<label>Cool Down:</label>
|
|
|
|
<input type="number" ng-model="coolDownTime">
|
|
|
|
<label>Rounds:</label>
|
|
|
|
<input type="number" ng-model="timer.cycles">
|
|
|
|
<a class="form-button" id="save" ng-click="settingsOpen = false; time = warmUpTime; resetTimer()" href="#"> Save Changes</a>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-11-19 15:15:33 +00:00
|
|
|
</body>
|
|
|
|
</html>
|