Skip to content

Commit 3633fe9

Browse files
small fixes (#190)
* small fixes * fix image widths * fix randomization
1 parent 02e9f11 commit 3633fe9

30 files changed

+942
-905
lines changed
-515 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@watts-lab/surveys",
3-
"version": "1.17.0",
3+
"version": "1.17.1",
44
"description": "",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

src/customQuestionTypes/labeledRange.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,17 @@ export function labeledRange(SurveyJS) {
6464
el.classList.add("sliderContainer");
6565
const dl = document.createElement("datalist");
6666
dl.id = `${question.name}_slider_vals`;
67-
dl.style.justifyContent = 'normal';
67+
dl.style.justifyContent = "normal";
6868
question.valueLabels.forEach((label) => {
6969
var option = document.createElement("div");
7070
option.classList.add("sliderLabel");
71-
var leftPosition = ((label.value - slider.min) / (slider.max - slider.min) * 100);
71+
var leftPosition =
72+
((label.value - slider.min) / (slider.max - slider.min)) * 100;
7273
option.style.left = `${leftPosition}%`;
73-
console.log("value", label.value);
74-
console.log("left", leftPosition);
75-
console.log("min", slider.min);
76-
console.log("max", slider.max);
74+
// console.log("value", label.value);
75+
// console.log("left", leftPosition);
76+
// console.log("min", slider.min);
77+
// console.log("max", slider.max);
7778
option.innerHTML = `
7879
<div class="each_label">
7980
<div class="tick"></div>
@@ -88,8 +89,6 @@ export function labeledRange(SurveyJS) {
8889
dl.classList.add("sliderLabels");
8990
el.appendChild(dl);
9091

91-
92-
9392
slider.setAttribute("list", dl.id);
9493
slider.classList.add("slider");
9594

surveys/discussionGeneral/discussionGeneral.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
{
9292
"type": "radiogroup",
9393
"name": "discussionDisagreement",
94+
"isRequired": true,
9495
"title": "How much did participants disagree on the discussion topic?",
9596
"choices": [
9697
{
@@ -230,6 +231,7 @@
230231
{
231232
"type": "radiogroup",
232233
"name": "selfInsight",
234+
"isRequired": true,
233235
"title": "How much did this discussion help you understand your own thoughts more deeply?",
234236
"choices": [
235237
{
325 KB
Loading

surveys/discussionGeneral/sha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"survey":"927ac49633859d09c7e0c8c2d0431f461c9c9151","score":"6d791d5cbc184e2ce33ae6a0eb7ca9ed8656f6d6"}
1+
{"survey":"e0f81e6ef1b81009be12d6f8ae29db71dd2d630e","score":"6d791d5cbc184e2ce33ae6a0eb7ca9ed8656f6d6"}

surveys/partisanFeelingThermometerUS/partisanFeelingThermometerUS.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
{
1919
"type": "text",
2020
"inputType": "range",
21+
"isRequired": true,
2122
"name": "republicanTemp",
2223
"title": "How do you feel toward Republicans?",
2324
"min": 0,
@@ -34,6 +35,7 @@
3435
{
3536
"type": "text",
3637
"inputType": "range",
38+
"isRequired": true,
3739
"name": "democratTemp",
3840
"title": "How do you feel towards Democrats?",
3941
"min": 0,
20.5 KB
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"survey":"2851ef988613a0b74ecdbbd34f23d69d3a1f67ac","score":"150210b7aba45083a2483b58e028c525b2e1fde7"}
1+
{"survey":"b6636c45ded4a21854a90fa3c22ccfd4e26a5af9","score":"150210b7aba45083a2483b58e028c525b2e1fde7"}

surveys/politicalPartyUS/page1.png

13.5 KB
Loading

0 commit comments

Comments
 (0)