Skip to content

Commit 27e3480

Browse files
committed
more questions
1 parent a985e18 commit 27e3480

File tree

4 files changed

+93
-11
lines changed

4 files changed

+93
-11
lines changed

instructions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</head>
1616
<body>
1717

18-
<h1>8values</h1>
18+
<h1>LeftValues</h1>
1919
<hr>
2020
<h2 style="text-align:center;">Instructions</h2>
2121
<p class="question">You will be presented with a series of statements. For each one, click the button with your opinion on it.</p>

questions.js

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
questions = [
2+
//revolution vs reform
23
{
34
"question": "Reforming capitalist society to achieve better rights for workers is acceptable and desirable.",
45
"effect": {
@@ -78,5 +79,86 @@ questions = [
7879
"d": 0,
7980
"e": 0
8081
}
82+
},
83+
//scientific vs utopian
84+
{
85+
"question": "Material conditions and needs are the dominant drive behind socioeconomic changes.",
86+
"effect": {
87+
"a": 0,
88+
"b": 10,
89+
"c": 0,
90+
"d": 0,
91+
"e": 0
92+
}
93+
},
94+
{
95+
"question": "Socialism can only be fully achieved in developed industrialized societies.",
96+
"effect": {
97+
"a": 0,
98+
"b": 5,
99+
"c": 0,
100+
"d": 0,
101+
"e": 0
102+
}
103+
},
104+
{
105+
"question": "It is possible to peacefully convince the ruling class to conform to a socialist society.",
106+
"effect": {
107+
"a": 0,
108+
"b": -10,
109+
"c": 0,
110+
"d": 0,
111+
"e": 0
112+
}
113+
},
114+
{
115+
"question": "Capitalism will induce its own demise through contradictions that result in crisis.",
116+
"effect": {
117+
"a": 0,
118+
"b": 5,
119+
"c": 0,
120+
"d": 0,
121+
"e": 0
122+
}
123+
},
124+
{
125+
"question": "Class conflict is a force that has influenced much of history.",
126+
"effect": {
127+
"a": 0,
128+
"b": 10,
129+
"c": 0,
130+
"d": 0,
131+
"e": 0
132+
}
133+
},
134+
{
135+
"question": "The establishment of socialism is a gradual process, rather than an instant or rapid one.",
136+
"effect": {
137+
"a": 0,
138+
"b": 5,
139+
"c": 0,
140+
"d": 0,
141+
"e": 0
142+
}
143+
},
144+
{
145+
"question": "Society is chiefly driven by individuals and ideas.",
146+
"effect": {
147+
"a": 0,
148+
"b": -10,
149+
"c": 0,
150+
"d": 0,
151+
"e": 0
152+
}
153+
},
154+
{
155+
"question": "Total economic and social equality is possible to achieve.",
156+
"effect": {
157+
"a": 0,
158+
"b": -10,
159+
"c": 0,
160+
"d": 0,
161+
"e": 0
162+
}
81163
}
82164
];

quiz.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<head>
22
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:400,700" rel="stylesheet">
33
<link href='style.css' rel='stylesheet' type='text/css'>
4-
<title>8values Quiz</title>
4+
<title>LeftValues Quiz</title>
55
<link rel="icon" type="x-icon" href="icon.png">
66
<link rel="shortcut icon" type="x-icon" href="icon.png">
77
<meta charset="utf-8">
@@ -17,7 +17,7 @@
1717
<script type="application/javascript"
1818
src="questions.js">
1919
</script>
20-
<h1>8values</h1>
20+
<h1>LeftValues</h1>
2121
<hr>
2222
<h2 style="text-align:center;" id="question-number">Loading...</h2>
2323
<p class="question" id="question-text"></p>

results.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
113113
}
114114

115115
revolution = getQueryVariable("a")
116-
utopian = getQueryVariable("b")
116+
scientific = getQueryVariable("b")
117117
central = getQueryVariable("c")
118-
national = getQueryVariable("d")
118+
international = getQueryVariable("d")
119119
party = getQueryVariable("e")
120120
reform = (100 - revolution).toFixed(1)
121-
scientific = (100 - utopian ).toFixed(1)
121+
utopian = (100 - scientific ).toFixed(1)
122122
decentral = (100 - central ).toFixed(1)
123-
international = (100 - national).toFixed(1)
123+
national = (100 - international).toFixed(1)
124124
union = (100 - party).toFixed(1)
125125

126126
setBarValue("revolution", revolution)
@@ -135,9 +135,9 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
135135
setBarValue("union", union)
136136

137137
document.getElementById("a-label").innerHTML = setLabel(revolution, aArray)
138-
document.getElementById("b-label").innerHTML = setLabel(utopian, bArray)
138+
document.getElementById("b-label").innerHTML = setLabel(scientific, bArray)
139139
document.getElementById("c-label").innerHTML = setLabel(central, cArray)
140-
document.getElementById("d-label").innerHTML = setLabel(national, dArray)
140+
document.getElementById("d-label").innerHTML = setLabel(international, dArray)
141141
document.getElementById("e-label").innerHTML = setLabel(party, eArray)
142142

143143
ideology = ""
@@ -146,8 +146,8 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
146146
dist = 0
147147
dist += Math.pow(Math.abs(ideologies[i].stats.a - revolution), 2)
148148
dist += Math.pow(Math.abs(ideologies[i].stats.c - central), 2)
149-
dist += Math.pow(Math.abs(ideologies[i].stats.b - utopian), 1.73856063)
150-
dist += Math.pow(Math.abs(ideologies[i].stats.d - national), 1.73856063)
149+
dist += Math.pow(Math.abs(ideologies[i].stats.b - scientific), 1.73856063)
150+
dist += Math.pow(Math.abs(ideologies[i].stats.d - international), 1.73856063)
151151
dist += Math.pow(Math.abs(ideologies[i].stats.e - party), 1.73856063)
152152
if (dist < ideodist) {
153153
ideology = ideologies[i].name

0 commit comments

Comments
 (0)