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

Commit fdf42d7

Browse files
committed
Ensure parsons are full width
1 parent 81b8a9a commit fdf42d7

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

runestone/parsons/js/parsons.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export default class Parsons extends RunestoneBase {
160160
// Based on what is specified in the original HTML, create the HTML view
161161
initializeView() {
162162
this.containerDiv = document.createElement("div");
163+
$(this.containerDiv).css("max-width", "none");
163164
$(this.containerDiv).addClass("parsons alert alert-warning");
164165
this.containerDiv.id = this.counterId;
165166
this.parsTextDiv = document.createElement("div");
@@ -296,13 +297,13 @@ export default class Parsons extends RunestoneBase {
296297
// Remove the options from the code
297298
// only options are #paired or #distractor
298299
var options = {};
299-
textBlock = textBlock.replace(/#(paired|distractor)/, function (
300-
mystring,
301-
arg1
302-
) {
303-
options[arg1] = true;
304-
return "";
305-
});
300+
textBlock = textBlock.replace(
301+
/#(paired|distractor)/,
302+
function (mystring, arg1) {
303+
options[arg1] = true;
304+
return "";
305+
}
306+
);
306307
// Create lines
307308
var lines = [];
308309
var split = textBlock.split("\n");

0 commit comments

Comments
 (0)