babe-project
Advanced tools
Comparing version 0.0.13 to 0.0.14
{ | ||
"name": "babe-project", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Basic Architecture for Browser-based experiments (https://github.com/babe-project/babe-project)", | ||
@@ -5,0 +5,0 @@ "main": "_babe.min.js", |
@@ -63,6 +63,2 @@ function babeSubmit(babe) { | ||
const flattenedData = flattenData(data); | ||
$("#warning-message").addClass("babe-nodisplay"); | ||
jQuery("<h3/>", { | ||
text: "Debug Mode" | ||
}).appendTo($("#babe-debug-table-container")); | ||
jQuery("<div/>", { | ||
@@ -69,0 +65,0 @@ class: "babe-debug-results", |
@@ -299,3 +299,3 @@ function setTitle(title, dflt) { | ||
picture: config.data[CT].picture, | ||
minimum_characters = config.data[CT].minChars, | ||
minimum_characters: config.data[CT].minChars, | ||
response: textInput.val().trim(), | ||
@@ -716,16 +716,21 @@ RT: RT | ||
`<div class='babe-view babe-thanks-view'> | ||
<h4 id='warning-message' class='babe-warning-message'>submitting the data | ||
<h2 id='warning-message' class='babe-warning'>Submitting the data | ||
<p class='babe-view-text'>please do not close the tab</p> | ||
<div class='babe-loader'></div> | ||
</h4> | ||
<h1 id='thanks-message' class='babe-nodisplay'>${this.title}</h1> | ||
</h2> | ||
<h1 id='thanks-message' class='babe-thanks babe-nodisplay'>${this.title}</h1> | ||
</div>` | ||
); | ||
} else if (babe.deploy.deployMethod === "Prolific") { | ||
$("main").html( | ||
$("#main").html( | ||
`<div class='babe-view babe-thanks-view'> | ||
<h4 class='babe-warning-message'>submitting the data | ||
<h2 id='warning-message' class='babe-warning'>Submitting the data | ||
<p class='babe-view-text'>please do not close the tab</p> | ||
<div class='babe-loader'></div> | ||
</h4> | ||
<h1 id='thanks-message' class='babe-nodisplay'>${this.title}</h1> | ||
<h2 id='extra-message' class='babe-nodisplay'>${extraMessage}</h2> | ||
</h2> | ||
<h1 id='thanks-message' class='babe-thanks babe-nodisplay'>${this.title}</h1> | ||
<p id='extra-message' class='babe-view-text babe-nodisplay'> | ||
Please press the button below to confirm that you completed the experiment with Prolific | ||
<a href="babe.deploy.prolificURL" class="babe-view-button prolific-url">Confirm</a> | ||
</p> | ||
</div>` | ||
@@ -735,3 +740,5 @@ ); | ||
$("main").html( | ||
`<div id='babe-debug-table-container' class='babe-view babe-thanks-view'></div>` | ||
`<div id='babe-debug-table-container' class='babe-view babe-thanks-view'> | ||
<h1 class='babe-view-title'>Debug Mode</h1> | ||
</div>` | ||
); | ||
@@ -738,0 +745,0 @@ } else { |
Sorry, the diff of this file is not supported yet
496917
1789