-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathff.html
More file actions
336 lines (277 loc) · 14.2 KB
/
Copy pathff.html
File metadata and controls
336 lines (277 loc) · 14.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>대중 참여형 정책 수립을 위한 크라우드소싱 정책 플랫폼 고안</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel='stylesheet' type='text/css'>
<style>
body {
font-family: "open sans";
}
#main {
margin-left: 30px;
width: 600px;
}
#main div {
margin: 15px;
}
.instruction {
font-weight: bold;
}
h3 {
color: teal;
}
a, a:active, a:visited {
color: #222;
font-weight: bold;
font-size: 18px;
}
a:hover {
color: teal;
}
</style>
</head>
<body>
<div class="container">
<div id="tabs" class="clearfix">
<h1>대중 참여형 정책 수립을 위한 크라우드소싱 정책 플랫폼 고안</h1>
</div>
<div id="main">
<div id="leftpane">
<h2>참가자 ID: <span class="participant-id"></span></h2>
<div>
"대중 참여형 정책 수립을 위한 크라우드소싱 정책 플랫폼 고안" 연구 관련 실험에 참여해 주셔서 감사합니다. 다음은 실험 순서 및 방법에 대한 안내사항입니다. 실험 도중에 문의사항이 있으실 경우 실험 진행자에게 알려주시기 바랍니다.
</div>
<div id="tasks">
<h3>1.실험 전 설문 (5분)</h3>
<div>
<h4><span class='progress'> </span>
<a target="_blank" href="" id="preQ">[실험 전 설문]</a></h4>
</div>
<h3>2. 인터페이스 Tutorial (5분)</h3>
<div>
실험 참여자 분들은 주어진 인터페이스를 통해 총 3개의 기사를 읽고 활동하시게 됩니다. <br/>
<h4><span class='progress'> </span>
<a target="_blank" href="" id="tutorialQ">[인터페이스 사용 방법]</a></h4>
</div>
<h3>3. 본 실험 (총 30분)</h3>
<div>
본 실험에서 귀하는 총 3개의 기사를 읽고 활동하시게 됩니다. <span class="instruction"></span> 기사를 읽기 전에 매번 기사 읽기 전 설문조사를 하시고 기사 관련 활동을 하신 뒤 기사 읽은 후 설문조사를 해주시면 됩니다.
<br/><br/>
<strong>Note: 기사 관련 활동에 적극적으로 참여해주신 두 분을 선정하여 추가 실험비를 지급할 계획입니다.</strong>
<br/><br/>
각 기사마다 7분의 활동시간이 주어지며 실험 진행자가 3분 전, 1분 전에 알려드립니다. 7분 이내에 활동이 끝난 경우에는 다음 단계로 넘어가지 마시고 안내가 있을 때까지 대기해 주시기 바랍니다.<br/>
<h3>기사 1: <span id="issue1"></span></h3>
<h4><span class='progress'> </span>
<a target="_blank" href="" class="preArticleQ">[기사 읽기 전 설문]</a></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h4><span class='progress'> </span>
<a target="_blank" href="" id="explore1">[기사 읽기]</a> <small>(7분) 로그인 ID: <span class="participant-id"></span>, 패스워드: test</small></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h4><span class='progress'> </span>
<a target="_blank" href="" class="postArticleQ">[기사 읽은 후 설문]</a></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h3>기사 2: <span id="issue2"></span></h3>
<h4><span class='progress'> </span>
<a target="_blank" href="" class="preArticleQ">[기사 읽기 전 설문]</a></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h4><span class='progress'> </span>
<a target="_blank" href="" id="explore2">[기사 읽기]</a> <small>(7분) 로그인 ID: <span class="participant-id"></span>, 패스워드: test</small></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h4><span class='progress'> </span>
<a target="_blank" href="" class="postArticleQ">[기사 읽은 후 설문]</a></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h3>기사 3: <span id="issue3"></span></h3>
<h4><span class='progress'> </span>
<a target="_blank" href="" class="preArticleQ">[기사 읽기 전 설문]</a></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h4><span class='progress'> </span>
<a target="_blank" href="" id="explore3">[기사 읽기]</a> <small>(7분) 로그인 ID: <span class="participant-id"></span>, 패스워드: test</small></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
<h4><span class='progress'> </span>
<a target="_blank" href="" class="postArticleQ">[기사 읽은 후 설문]</a></h4>
<div>다음 안내 시까지 대기해 주세요.</div>
</div>
<h3>4. 실험 후 설문(10분)</h3>
<div>
<h4><span class='progress'> </span>
<a target="_blank" href="" id="postQ">[실험 후 설문]</a></h4>
</div>
<h3>5. 국가 재정 지출 인식 조사(10~15분)</h3>
<div>
서울시가 아닌 국가 전체의 재정 지출에 대한 설문조사입니다. 아래 링크를 클릭해 몇가지 문항에 답변해 주시면 됩니다.
<h4><span class='progress'> </span>
<a target="_blank" href="" id="finalQ">[국가 재정 지출 인식 조사]</a></h4>
</div>
</div>
</div>
<hr>
<div class="clearfix">
<div>실험에 참여해 주셔서 감사합니다. </div>
<br/><br/>
</div>
</div>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
function gup(name) {
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
var pid = gup("pid");
var preQ = "https://docs.google.com/forms/d/1ByZyvjt1U3HVAD6qYZypLCuW14JpxfqEoi-6bgrXuA8/viewform";
var tutorialQA = "https://docs.google.com/document/d/1SLaBETiFwPj6Mw38AAL39kNIHDZ0FLN-nRGyyu_59Dg/edit";
var tutorialQB = "https://docs.google.com/document/d/13qNzxLkeXvL-Z4hNVRdVYwd3pONrsIWdYE_lqUIU2sM/edit";
var tutorialQC = "https://docs.google.com/document/d/1Y5llB-dByUQ9dSzoTbi2ZIZqEdGfQhCm21m0ksxjvvA/edit";
var preArticleQ = "https://docs.google.com/forms/d/1jfZR_IXc-Truz6xR4BNAhqW_uOA8NJRKrrkVQT1wIDE/viewform";
var postArticleQ = "https://docs.google.com/forms/d/1g2s06Wa6KeoT-GUQtZMcX1OifMcqoWQjuhKQmwnH8E4/viewform";
var postQA = "https://docs.google.com/forms/d/16mou_Z-QrRP27O-mDeOXs-BwJuGeeAOk9Fe2XupJDUM/viewform";
var postQB = "https://docs.google.com/forms/d/1cliMFqESt2jpyyqY1pO4BB5PC5M2Hp-QXzrIvXgAP_8/viewform";
var postQC = "https://docs.google.com/forms/d/13ZLbTT3NlAI90N5jcp5C19nQs5Nzbr_FOxaNBZIV5zA/viewform";
var finalQ = "https://qtrial2014.az1.qualtrics.com/SE/?SID=SV_0fiv1UVZufldyE5";
var instructions = ["기사를 읽고 인터페이스를 활용해 적극적으로 토론에 참여해 보세요.", "기사를 읽고 인터페이스를 활용해 적극적으로 토론과 사실확인에 참여해 보세요.", "기사를 읽고 주어진 정보와 인터페이스를 활용해 적극적으로 토론과 사실확인에 참여해 보세요."]
var numParticipants = 36;
var numTasks = 3;
var issues = ["아리수", "서해뱃길 유람선", "친환경급식"];
var mappings = [
["A", "B", "C"], ["A", "C", "B"], ["B", "C", "A"], ["B", "A", "C"], ["C", "A", "B"], ["C", "B", "A"]
];
/*
아리수 기사 : http://jonghyuk.info:3000/factful/article/item/54067643eded86d04b02bfe6
유람선 기사 : http://jonghyuk.info:3000/factful/article/item/5406768beded86d04b02bffc
급식 기사 : http://jonghyuk.info:3000/factful/article/item/540676c5eded86d04b02c006
아리수 기사 : http://jonghyuk.info:4000/factful/article/item/540677d4633608034c68992a
유람선 기사 : http://jonghyuk.info:4000/factful/article/item/54067822633608034c689956
급식 기사 : http://jonghyuk.info:4000/factful/article/item/5406785f633608034c689962
아리수 기사 : http://jonghyuk.info:5000/factful/article/item/54067a46d1ac23474cc62d90
유람선 기사 : http://jonghyuk.info:5000/factful/article/item/54067a93d1ac23474cc62dbc
급식 기사 : http://jonghyuk.info:5000/factful/article/item/54067b00d1ac23474cc62dca
*/
var conditions = {};
function createUrl(interface, issue) {
var index;
var result;
if (interface == "A") {
if (issue == "A")
result = "http://jonghyuk.info:3000/factful/article/item/54067643eded86d04b02bfe6";
else if (issue == "B")
result = "http://jonghyuk.info:3000/factful/article/item/5406768beded86d04b02bffc";
else if (issue == "C")
result = "http://jonghyuk.info:3000/factful/article/item/540676c5eded86d04b02c006";
} else if (interface == "B") {
if (issue == "A")
result = "http://jonghyuk.info:4000/factful/article/item/540677d4633608034c68992a";
else if (issue == "B")
result = "http://jonghyuk.info:4000/factful/article/item/54067822633608034c689956";
else if (issue == "C")
result = "http://jonghyuk.info:4000/factful/article/item/5406785f633608034c689962";
} else if (interface == "C") {
if (issue == "A")
result = "http://jonghyuk.info:5000/factful/article/item/54067a46d1ac23474cc62d90";
else if (issue == "B")
result = "http://jonghyuk.info:5000/factful/article/item/54067a93d1ac23474cc62dbc";
else if (issue == "C")
result = "http://jonghyuk.info:5000/factful/article/item/54067b00d1ac23474cc62dca";
}
console.log(result);
return result;
}
function getIssue(issue){
if (issue == "A")
return issues[0];
else if (issue == "B")
return issues[1];
else if (issue == "C")
return issues[2];
}
function getInstruction(interface) {
if (interface == "A")
return instructions[0];
else if (interface == "B")
return instructions[1];
else if (interface == "C")
return instructions[2];
}
function createTasks() {
var i, j, itype, taskOrder;
var taskCount = 0;
for (i = 1; i <= numParticipants; i++) {
console.log("Participant", i);
taskOrder = mappings[(i-1) % 6];
if (i >= 1 && i <= 12)
itype = "A";
else if (i >= 13 && i <= 24)
itype = "B";
else if (i >= 25 && i <= 36)
itype = "C";
for (j = 0; j < numTasks; j++) {
taskCount += 1;
// taskOrder = taskCount % tseq.length;
console.log(itype, taskOrder[j]);
conditions[taskCount] = {
"pid": itype + ((i-1) % 12 + 1),
"tid": taskCount,
"torder": j + 1,
"itype": itype,
"issue": taskOrder[j],
"url": createUrl(itype, taskOrder[j])
}
}
}
console.log(taskCount, "tasks created");
// console.log(conditions);
for (var cond in conditions) {
console.log("pid:", conditions[cond].pid, "tid:", conditions[cond].tid, "torder:", conditions[cond].torder, "itype:", conditions[cond].itype, "issue:", getIssue(conditions[cond].issue), "url:", conditions[cond].url);
}
}
$(document).ready(function(){
$(".participant-id").text(pid);
$("#preQ").attr("href", preQ);
$(".preArticleQ").attr("href", preArticleQ);
$(".postArticleQ").attr("href", postArticleQ);
$("#finalQ").attr("href", finalQ);
$("a").click(function(){
$(this).closest("h4").find(".progress").html("V ");
// Log.add("study.html", "click", {"pid": pid, "url": $(this).attr("href")});
});
var numTasks = 3;
var pnum = parseInt(pid.substr(1));
var itype = pid[0];
var starting = 0;
if (pnum < 1 || pnum > 12){
alert("잘못된 사용자 ID 입니다.");
$("#main").hide();
}
if (itype != "A" && itype != "B" && itype != "C"){
alert("잘못된 사용자 ID 입니다.");
$("#main").hide();
}
console.log("pnum", pnum, "itype", itype);
$(".instruction").text(getInstruction(itype));
if (itype == "A") {
$("#tutorialQ").attr("href", tutorialQA);
$("#postQ").attr("href", postQA);
} else if (itype == "B") {
$("#tutorialQ").attr("href", tutorialQB);
$("#postQ").attr("href", postQB);
}
else if (itype == "C") {
$("#tutorialQ").attr("href", tutorialQC);
$("#postQ").attr("href", postQC);
}
createTasks(itype);
for (i = 1; i <= numTasks; i++) {
if (itype == "A")
starting = 0;
else if (itype == "B")
starting = 36;
else if (itype == "C")
starting = 72;
console.log("TASK #", starting + (pnum - 1) * numTasks + i);
task = conditions[starting + (pnum - 1) * numTasks + i];
$("#issue" + i).text(getIssue(task.issue));
$("#explore" + i).attr("href", task.url);
}
});
</script>
</body>
</html>