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

Commit bf10306

Browse files
committed
New: Update skulpt to support PreTeXt datafiles
1 parent 8b70937 commit bf10306

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

runestone/activecode/js/skulpt-stdlib.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/activecode/js/skulpt.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-4 Bytes
Binary file not shown.

runestone/datafile/js/datafile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DataFile extends RunestoneBase {
2323
this.divid = orig.id;
2424
this.dataEdit = false;
2525
this.isImage = $(orig).data("isimage");
26+
this.fileName = $(orig).data("filename");
2627
if ($(this.origElem).data("edit") === true) {
2728
this.dataEdit = true;
2829
}
@@ -39,6 +40,9 @@ class DataFile extends RunestoneBase {
3940
} else {
4041
this.createPre();
4142
}
43+
if (this.fileName) {
44+
this.containerDiv.dataset.filename = this.fileName
45+
}
4246
}
4347
this.indicate_component_ready();
4448
}

0 commit comments

Comments
 (0)