Skip to content

Commit a5edcb2

Browse files
committed
changed font, margin b/w options
1 parent 2104a14 commit a5edcb2

2 files changed

Lines changed: 37 additions & 19 deletions

File tree

experiment/demo/src/App.vue

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@
6767
</Screen>
6868

6969
<InstructionScreen :title="'Instructions'" :button-text="'Continue'">
70-
<p></p>
71-
<p>In this study, you will read short texts and answer questions about them. However, unlike in normal reading, the texts will be blurred. In order to bring the text into focus move your mouse over it. Take as much time to read the text as you need in order to understand it. When you are done reading, answer the question at the bottom and click “next” to move on.</p>
72-
<p>Let’s get started!</p>
70+
<div style="width: 80%; margin: auto;">
71+
<p></p>
72+
<p>In this study, you will read short texts and answer questions about them. However, unlike in normal reading, the texts will be blurred. In order to bring the text into focus move your mouse over it. Take as much time to read the text as you need in order to understand it. When you are done reading, answer the question at the bottom and click “next” to move on.</p>
73+
<p>Let’s get started!</p>
74+
</div>
7375
</InstructionScreen>
7476

7577
<template v-for="(trial, i) of trials">
@@ -95,7 +97,7 @@
9597
</div>
9698
</template>
9799

98-
<button v-if="showFirstDiv" style= "bottom:65%; transform: translate(-50%, -50%)" @click="toggleDivs" :disabled="!isCursorMoving">
100+
<button v-if="showFirstDiv" style= "bottom:60%; transform: translate(-50%, -50%)" @click="toggleDivs" :disabled="!isCursorMoving">
99101
Done
100102
</button>
101103

@@ -105,7 +107,7 @@
105107
<!-- comprehension questions and the response options -->
106108
<div>{{ trial.question.replace(/ ?["]+/g, '') }}</div>
107109
<template v-for='(word, index) of trial.response_options'>
108-
<label style="cursor:pointer; user-select:none; border:1px solid #ccc; border-radius:8px; padding:14px 22px; display:inline-flex; align-items:center;">
110+
<label style="cursor:pointer; user-select:none; border:1px solid #ccc; border-radius:8px; padding:14px 22px; display:inline-flex; align-items:center;margin-right:12px;">
109111
<input type="radio" :value="word" name="opt" v-model="$magpie.measurements.response" style="display:none;">
110112
<span style="display:block;">{{ word }}</span>
111113
</label>
@@ -140,9 +142,17 @@
140142
<button style= "bottom: 5%; transform: translate(-50%, -50%)" @click="$magpie.saveAndNextScreen();">Next</button>
141143
</Screen>
142144

143-
<TextareaScreen
144-
question="What unusual happened during the experiment?"
145-
/>
145+
<Screen>
146+
147+
<Slide>
148+
<p>"What unusual happened during the experiment?"</p>
149+
<TextareaInput
150+
:response.sync= "$magpie.measurements.issue"
151+
/>
152+
<button @click="$magpie.saveAndNextScreen();">Submit</button>
153+
</Slide>
154+
155+
</Screen>
146156

147157
<SubmitResultsScreen />
148158
</Experiment>
@@ -186,7 +196,7 @@ function interleaveWithFillers(items, fillers) {
186196
export default {
187197
name: 'App',
188198
data() {
189-
const trials = _.concat(practice, test);
199+
const trials = _.concat(practice[1], test);
190200
const order = ["Yes", "No"];
191201
192202
const updatedTrials = trials.map(trial => ({
@@ -362,8 +372,8 @@ export default {
362372
cursor: pointer;
363373
padding-top: 2%;
364374
padding-bottom: 2%;
365-
padding-left: 2%;
366-
padding-right: 2%;
375+
padding-left: 0;
376+
padding-right: 0;
367377
}
368378
button {
369379
position: absolute;
@@ -418,8 +428,8 @@ export default {
418428
font-weight: 450;
419429
padding-top: 2%;
420430
padding-bottom: 2%;
421-
padding-left: 2%;
422-
padding-right: 2%;
431+
padding-left: 0;
432+
padding-right: 0;
423433
}
424434
* {
425435
user-select: none; /* Standard syntax */

experiment/en/src/App.vue

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
</div>
9898
</template>
9999

100-
<button v-if="showFirstDiv" style= "bottom:65%; transform: translate(-50%, -50%)" @click="toggleDivs" :disabled="!isCursorMoving">
100+
<button v-if="showFirstDiv" style= "bottom:60%; transform: translate(-50%, -50%)" @click="toggleDivs" :disabled="!isCursorMoving">
101101
Done
102102
</button>
103103

@@ -107,7 +107,7 @@
107107
<!-- comprehension questions and the response options -->
108108
<div>{{ trial.question.replace(/ ?["]+/g, '') }}</div>
109109
<template v-for='(word, index) of trial.response_options'>
110-
<label style="cursor:pointer; user-select:none; border:1px solid #ccc; border-radius:8px; padding:14px 22px; display:inline-flex; align-items:center;">
110+
<label style="cursor:pointer; user-select:none; border:1px solid #ccc; border-radius:8px; padding:14px 22px; display:inline-flex; align-items:center;margin-right:12px;">
111111
<input type="radio" :value="word" name="opt" v-model="$magpie.measurements.response" style="display:none;">
112112
<span style="display:block;">{{ word }}</span>
113113
</label>
@@ -142,9 +142,17 @@
142142
<button style= "bottom: 5%; transform: translate(-50%, -50%)" @click="$magpie.saveAndNextScreen();">Next</button>
143143
</Screen>
144144

145-
<TextareaScreen
146-
question="What unusual happened during the experiment?"
147-
/>
145+
<Screen>
146+
147+
<Slide>
148+
<p>"What unusual happened during the experiment?"</p>
149+
<TextareaInput
150+
:response.sync= "$magpie.measurements.issue"
151+
/>
152+
<button @click="$magpie.saveAndNextScreen();">Submit</button>
153+
</Slide>
154+
155+
</Screen>
148156

149157
<SubmitResultsScreen />
150158
</Experiment>
@@ -437,7 +445,7 @@ export default {
437445
-webkit-user-select: none; /* Safari */
438446
-moz-user-select: none; /* Firefox */
439447
-ms-user-select: none; /* Internet Explorer/Edge */
440-
font-family: "Courier", monospace;
448+
font-family: "Courier New", monospace;
441449
}
442450
label {
443451
border: 1px solid #ccc;

0 commit comments

Comments
 (0)