-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
210 lines (196 loc) · 12.9 KB
/
routes.js
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
/*
* Gets data from address bar using Iron-Router
* Sets the session according this data.
*/
/** Cluster **/
Router.route('/cb', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","cluster");
Session.set("viz","blur");
$(".tut-img-left").attr("src","viz/b1.png");
$(".tut-img-right").attr("src","viz/b5.png");
$(".aex").text("the degree of blur");
$(".ashow").text("different degrees of blur");
$(".vizq").text("the degree of blur");
$(".gurl").attr("href","http://goo.gl/forms/5HqsIQJIFT");
$(".desc-small").html("The <b>lower</b> the <b>blur</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>higher</b> the <b>blur</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside a blurred area, it is inaccurate. If it is inside a sharp area, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});
Router.route('/co', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","cluster");
Session.set("viz","opacity");
$(".tut-img-left").attr("src","viz/o1.png");
$(".tut-img-right").attr("src","viz/o5.png");
$(".aex").text("the opacity of a color");
$(".ashow").text("different degrees of color opacity");
$(".vizq").text("opacity");
$(".gurl").attr("href","http://goo.gl/forms/hmNVtxlUpk");
$(".desc-small").html("The <b>higher</b> the <b>opacity</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>lower</b> the <b>opacity</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside an area with low opacity, it is inaccurate. If it is inside an area with high opacity, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy)");
});
Router.route('/cg', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","cluster");
Session.set("viz","grid");
$(".tut-img-left").attr("src","viz/s1.png");
$(".tut-img-right").attr("src","viz/s5.png");
$(".aex").text("the size of a rectangle");
$(".ashow").text("different sizes of rectangles");
$(".vizq").text("size of the rectangle");
$(".gurl").attr("href","http://goo.gl/forms/V3QBSa4Cin");
$(".desc-small").html("The <b>smaller</b> the <b>rectangle</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>larger</b> the <b>rectangle</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside a large rectangle, it is inaccurate. If it is inside a small rectangle, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});
Router.route('/cl', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","cluster");
Session.set("viz","lines");
$(".tut-img-left").attr("src","viz/l1.png");
$(".tut-img-right").attr("src","viz/l5.png");
$(".aex").text("spacing of the line");
$(".ashow").text("different degrees of a spaced line");
$(".vizq").text("line spacing");
$(".gurl").attr("href","http://goo.gl/forms/Oljvq5sXdO");
$(".desc-small").html("The <b>tighter</b> the <b>spacing</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>wider</b> the <b>spacing</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is in a zone with wide spacing on the outer side (the line elements are further apart), it is inaccurate. If it is in a zone with tight spacing on the outer side (the line elements are closer together), it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});
Router.route('/ct', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","cluster");
Session.set("viz","texture");
$(".tut-img-left").attr("src","viz/t1.png");
$(".tut-img-right").attr("src","viz/t5.png");
$(".aex").text("the degree of granularity of the texture");
$(".ashow").text("different degrees of granularity");
$(".vizq").text("texture");
$(".gurl").attr("href","http://goo.gl/forms/g0ADF27OQi");
$(".desc-small").html("The <b>higher</b> the <b>granularity</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>lower</b> the <b>granularity</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside an area with low granularity, it is inaccurate. If it is inside an area with high granularity, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});
/** Regression **/
Router.route('/rb', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","regression");
Session.set("viz","blur");
$(".tut-img-left").attr("src","viz/b1.png");
$(".tut-img-right").attr("src","viz/b5.png");
$(".aex").text("the degree of blur");
$(".ashow").text("different degrees of blur");
$(".vizq").text("the degree of blur");
$(".gurl").attr("href","http://goo.gl/forms/v3OGNf7KE6");
$(".desc-small").html("The <b>lower</b> the <b>blur</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>higher</b> the <b>blur</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside a blurred area, it is inaccurate. If it is inside a sharp area, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});
Router.route('/ro', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","regression");
Session.set("viz","opacity");
$(".tut-img-left").attr("src","viz/o1.png");
$(".tut-img-right").attr("src","viz/o5.png");
$(".aex").text("the opacity of a color");
$(".ashow").text("different degrees of color opacity");
$(".vizq").text("opacity");
$(".gurl").attr("href","http://goo.gl/forms/smaSXJrZaz");
$(".desc-small").html("The <b>higher</b> the <b>opacity</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>lower</b> the <b>opacity</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside an area with low opacity, it is inaccurate. If it is inside an area with high opacity, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy)");
});
Router.route('/rg', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","regression");
Session.set("viz","grid");
$(".tut-img-left").attr("src","viz/s1.png");
$(".tut-img-right").attr("src","viz/s5.png");
$(".aex").text("the size of a rectangle");
$(".ashow").text("different sizes of rectangles");
$(".vizq").text("size of the rectangle");
$(".gurl").attr("href","http://goo.gl/forms/g6BWgOj4o5");
$(".desc-small").html("The <b>smaller</b> the <b>rectangle</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>larger</b> the <b>rectangle</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside a large rectangle, it is inaccurate. If it is inside a small rectangle, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside a large rectangle, it is inaccurate. If it is inside a small rectangle, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});
Router.route('/rl', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","regression");
Session.set("viz","lines");
$(".tut-img-left").attr("src","viz/l1.png");
$(".tut-img-right").attr("src","viz/l5.png");
$(".aex").text("by the spacing of the outer line");
$(".ashow").text("by the spacing of the outer line");
$(".vizq").text("line spacing");
$(".gurl").attr("href","http://goo.gl/forms/7xol2vQo1o");
$(".desc-small").html("The <b>tighter</b> the <b>spacing</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>wider</b> the <b>spacing</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is in a zone with wide spacing on the outer side (the line elements are further apart), it is inaccurate. If it is in a zone with tight spacing on the outer side (the line elements are closer together), it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});
Router.route('/rt', function () {
var params = this.params;
this.render("etc");
$(".container").css("display","flex");
$(".button-begin").fadeIn(function(){
$(this).css("display","inline-block");
});
Session.set("evaluation","regression");
Session.set("viz","texture");
$(".tut-img-left").attr("src","viz/t1.png");
$(".tut-img-right").attr("src","viz/t5.png");
$(".aex").text("the degree of granularity of the texture");
$(".ashow").text("different degrees of granularity");
$(".vizq").text("texture");
$(".gurl").attr("href","http://goo.gl/forms/Nokm9raUB0");
$(".desc-small").html("The <b>higher</b> the <b>granularity</b>, the <b>higher</b> the <b>accuracy</b>.");
$(".desc-large").html("The <b>lower</b> the <b>granularity</b>, the <b>lower</b> the <b>accuracy</b>.");
$(".tutorial-ss").html("After you have finished the tutorial, we will ask you to estimate the accuracy of 15 data points in a visualisation. This will follow the same principle, meaning <b>if the data point is inside an area with low granularity, it is inaccurate. If it is inside an area with high granularity, it is accurate.</b> In total there are five degrees of accuracy between these two extremes with a value from 1 (low accuracy) to 5 (high accuracy).");
});