Skip to content

Commit

Permalink
Fixed #1270 - Flashcards and 360 pages do not work in offline export
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Jan 14, 2024
1 parent cbc71f6 commit f8abb39
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Expand Up @@ -138,11 +138,6 @@ $(document).keydown(function(e) {
});

$(document).ready(function() {
// Load the loadjs dependency loader
if (!xot_offline) {
// TODO - we should move this to play/preview and let it kickstart the loading of all files
$.getScript(x_templateLocation + "common_html5/js/loadjs.min.js");
}

$x_mainHolder = $("#x_mainHolder");

Expand Down
Expand Up @@ -91,14 +91,13 @@
var filePath = x_templateLocation + 'common_html5/js/pannellum/';

x_insertCSS(filePath + 'pannellum.css');

$.getScript(filePath + 'pannellum.js')
.done(function(script, textStatus) {
loadjs.path(filePath);
loadjs(['pannellum.js'], {
success: function() {
media360.begin();
})
.fail(function( jqxhr, settings, exception ) {
console.log("Failed to load pannellum files: " + exception);
});
}
});

}

this.begin = function() {
Expand Down
1 change: 1 addition & 0 deletions modules/xerte/player_html5/rloObject.htm
Expand Up @@ -121,6 +121,7 @@ <h2 aria-live="assertive"> </h2>

<script type="text/javascript" src="%TEMPLATEPATH%common_html5/js/xenith.js%VERSION_PARAM%"></script>
<script type="text/javascript" src="%TEMPLATEPATH%common_html5/js/chart.js%VERSION_PARAM%"></script>
<script type="text/javascript" src="%TEMPLATEPATH%common_html5/js/loadjs.min.js%VERSION_PARAM%"></script>

%TRACKING_SUPPORT%
<script type="text/javascript" async src="%MATHJAXPATH%MathJax.js?config=TeX-MML-AM_HTMLorMML-full"></script>
Expand Down

0 comments on commit f8abb39

Please sign in to comment.