diff --git a/client/static/index.html b/client/static/index.html
index 9ee1b49..5a2a0df 100644
--- a/client/static/index.html
+++ b/client/static/index.html
@@ -71,7 +71,9 @@ margin-bottom: 1px; }
font-size: 14px;
opacity: 0.84; }
-
+.status-container {
+height: 50px;
+}
@@ -119,10 +121,10 @@ margin-bottom: 1px; }
Chapter
-
+
skip_previous
-
+
skip_next
@@ -140,13 +142,13 @@ margin-bottom: 1px; }
volume_off
-
+
@@ -191,10 +193,25 @@ var volume = function(delta) {
showStatus("Volume " + direction + ": Error");
});
};
-
+
+var chapter = function(isNext) {
+ var direction = isNext ? "Next" : "Previous";
+ var delta = isNext ? 1 : -1;
+ $http({
+ method: 'GET',
+ url: '/seekChapter/' + delta
+ }).then(function successCallback(response) {
+ showStatus(direction + " chapter: Success");
+ }, function errorCallback(response) {
+ showStatus(direction + " chapter: Error");
+ });
+};
+// ---------------------------------------------------------
$scope.status = '';
$scope.alert = '';
+$scope.previousChapter = function() { chapter(false) };
+$scope.nextChapter = function() { chapter(true) };
$scope.back = function() { seek(-10) };
$scope.togglePlay = function() {
$http({