+
+ {{ 'addon.mod_scorm.dataattemptshown' | translate:{number: attemptToContinue} }}
+
+
+ {{ 'addon.mod_scorm.mod_scorm.browsemode' }}
+
+
+ {{ 'addon.mod_scorm.mod_scorm.reviewmode' }}
+
+
+
+
+
+
+ {{ sco.title }}
+
+
+
diff --git a/src/addon/mod/scorm/components/toc-popover/toc-popover.scss b/src/addon/mod/scorm/components/toc-popover/toc-popover.scss
new file mode 100644
index 000000000..ed116481c
--- /dev/null
+++ b/src/addon/mod/scorm/components/toc-popover/toc-popover.scss
@@ -0,0 +1,3 @@
+addon-mod-scorm-toc-popover {
+
+}
diff --git a/src/addon/mod/scorm/components/toc-popover/toc-popover.ts b/src/addon/mod/scorm/components/toc-popover/toc-popover.ts
new file mode 100644
index 000000000..aaa3aea88
--- /dev/null
+++ b/src/addon/mod/scorm/components/toc-popover/toc-popover.ts
@@ -0,0 +1,54 @@
+// (C) Copyright 2015 Martin Dougiamas
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import { Component } from '@angular/core';
+import { NavParams, ViewController } from 'ionic-angular';
+import { AddonModScormProvider } from '../../providers/scorm';
+
+/**
+ * Component to display the TOC of a SCORM.
+ */
+@Component({
+ selector: 'addon-mod-scorm-toc-popover',
+ templateUrl: 'toc-popover.html'
+})
+export class AddonModScormTocPopoverComponent {
+ toc: any[];
+ isBrowse: boolean;
+ isReview: boolean;
+ attemptToContinue: number;
+
+ constructor(navParams: NavParams, private viewCtrl: ViewController) {
+ this.toc = navParams.get('toc') || [];
+ this.attemptToContinue = navParams.get('attemptToContinue');
+
+ const mode = navParams.get('mode');
+
+ this.isBrowse = mode === AddonModScormProvider.MODEBROWSE;
+ this.isReview = mode === AddonModScormProvider.MODEREVIEW;
+ }
+
+ /**
+ * Function called when a SCO is clicked.
+ *
+ * @param {any} sco Clicked SCO.
+ */
+ loadSco(sco: any): void {
+ if (!sco.prereq || !sco.isvisible || !sco.launch) {
+ return;
+ }
+
+ this.viewCtrl.dismiss(sco);
+ }
+}
diff --git a/src/addon/mod/scorm/pages/player/player.html b/src/addon/mod/scorm/pages/player/player.html
new file mode 100644
index 000000000..8ffa420a7
--- /dev/null
+++ b/src/addon/mod/scorm/pages/player/player.html
@@ -0,0 +1,19 @@
+