Commit a198cb74 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

fix for H5P assets restructuring

parent fd735f61
......@@ -23,6 +23,7 @@ node_modules/
tmp/
temp/
hooks/
package-lock.json
platforms/
plugins/
plugins/android.json
......
{
"name": "mc_frontend",
"version": "0.7.5",
"version": "0.7.7",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
......@@ -80,4 +80,4 @@
"cordova-plugin-splashscreen": {}
}
}
}
\ No newline at end of file
}
......@@ -16,6 +16,7 @@
<ion-content padding>
<ion-grid>
<!--<ion-row>-->
<!--<ion-col>{{ 'TEST_MODULE_GO_TO_EXERCISE' | translate}}-->
<!--&lt;!&ndash;suppress HtmlUnknownAttribute &ndash;&gt;-->
......@@ -39,6 +40,7 @@
<!--</ion-button>-->
<!--</ion-col>-->
<!--</ion-row>-->
<ion-row>
<ion-col>
<h1>{{ 'HELP' | translate }}</h1>
......
......@@ -43,7 +43,7 @@ export class FeedbackPage {
$('.h5p-container').empty().h5p({
frameJs: 'assets/dist/js/h5p-standalone-frame.min.js',
frameCss: 'assets/dist/styles/h5p.css',
h5pContent: 'assets/test_module/' + exerciseType
h5pContent: 'assets/h5p/' + exerciseType
});
});
})(H5P.jQuery);
......@@ -62,7 +62,7 @@ export class FeedbackPage {
let fileName: string = this.currentExercise.split("_").slice(-1) + "_" + this.translate.currentLang + ".json";
const exerciseType = this.currentExercise.split("_").slice(0, 2).join("_");
const baseUrl: string = location.protocol.concat('//').concat(window.location.host);
window.localStorage.setItem(HelperService.config['localStorageKeyH5P'], baseUrl + "/assets/test_module/" + exerciseType + "/content/" + fileName);
window.localStorage.setItem(HelperService.config['localStorageKeyH5P'], baseUrl + "/assets/h5p/" + exerciseType + "/content/" + fileName);
this.initH5P(exerciseType);
}
......
......@@ -67,7 +67,7 @@ export class PreviewPage {
$('.h5p-container').empty().h5p({
frameJs: 'assets/dist/js/h5p-standalone-frame.min.js',
frameCss: 'assets/dist/styles/h5p.css',
h5pContent: 'assets/workspace'
h5pContent: 'assets/h5p/drag_text'
});
});
})(H5P.jQuery);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment