Skip to content

Commit 80c3340

Browse files
committed
added codeDivWidth option
1 parent ddde400 commit 80c3340

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎v3/js/iframe-embed.js‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ $(document).ready(function() {
5252
var showOnlyOutputsBool = (queryStrOptions.showOnlyOutputs == 'true');
5353
var cumModeBool = (queryStrOptions.cumulativeState == 'true');
5454

55+
var codeDivWidth = undefined;
56+
var cdv = $.bbq.getState('codeDivWidth');
57+
if (cdv) {
58+
codeDivWidth = Number(cdv);
59+
}
60+
5561
var startingInstruction = queryStrOptions.preseededCurInstr;
5662
if (!startingInstruction) {
5763
startingInstruction = 0;
@@ -111,7 +117,8 @@ $(document).ready(function() {
111117

112118
// undocumented experimental modes:
113119
pyCrazyMode: (pyState == '2crazy'),
114-
highlightLines: typeof $.bbq.getState("highlightLines") !== "undefined"
120+
highlightLines: typeof $.bbq.getState("highlightLines") !== "undefined",
121+
codeDivWidth: codeDivWidth,
115122
}
116123

117124
function executeCode(forceStartingInstr) {

0 commit comments

Comments
 (0)