Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
New: Update skulpt to support PreTeXt datafiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmnetp committed Feb 2, 2023
1 parent 8b70937 commit bf10306
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runestone/activecode/js/skulpt-stdlib.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion runestone/activecode/js/skulpt.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified runestone/activecode/js/skulpt.min.js.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions runestone/datafile/js/datafile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class DataFile extends RunestoneBase {
this.divid = orig.id;
this.dataEdit = false;
this.isImage = $(orig).data("isimage");
this.fileName = $(orig).data("filename");
if ($(this.origElem).data("edit") === true) {
this.dataEdit = true;
}
Expand All @@ -39,6 +40,9 @@ class DataFile extends RunestoneBase {
} else {
this.createPre();
}
if (this.fileName) {
this.containerDiv.dataset.filename = this.fileName
}
}
this.indicate_component_ready();
}
Expand Down

0 comments on commit bf10306

Please sign in to comment.