quiz.js 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068
  1. "use strict";
  2. var questions = [
  3. // Constructivism/Essentialism
  4. {
  5. question: "“One is not born, but rather becomes, a woman.”",
  6. answer: 0,
  7. valuesYes: [
  8. {
  9. axis: "c0",
  10. value: 3
  11. },
  12. {
  13. axis: "femi",
  14. value: 3
  15. }
  16. ],
  17. valuesNo: [
  18. {
  19. axis: "c1",
  20. value: 3
  21. }
  22. ]
  23. },
  24. {
  25. question:
  26. "Differences in treatment and quality of life in our society show that racism is still omnipresent.",
  27. answer: 0,
  28. valuesYes: [
  29. {
  30. axis: "c0",
  31. value: 3
  32. }
  33. ],
  34. valuesNo: [
  35. {
  36. axis: "c1",
  37. value: 3
  38. }
  39. ]
  40. },
  41. {
  42. question:
  43. "All sciences, even chemistry and biology are not uncompromising and are conditioned by our society.",
  44. answer: 0,
  45. valuesYes: [
  46. {
  47. axis: "c0",
  48. value: 3
  49. }
  50. ],
  51. valuesNo: [
  52. {
  53. axis: "c1",
  54. value: 3
  55. }
  56. ]
  57. },
  58. {
  59. question:
  60. "The categories “women” and “men” are social constructs that should be given up.",
  61. answer: 0,
  62. valuesYes: [
  63. {
  64. axis: "c0",
  65. value: 3
  66. },
  67. {
  68. axis: "femi",
  69. value: 3
  70. }
  71. ],
  72. valuesNo: [
  73. {
  74. axis: "c1",
  75. value: 3
  76. }
  77. ]
  78. },
  79. {
  80. question: "Nobody is by nature predisposed to criminality.",
  81. answer: 0,
  82. valuesYes: [
  83. {
  84. axis: "c0",
  85. value: 3
  86. }
  87. ],
  88. valuesNo: [
  89. {
  90. axis: "c1",
  91. value: 3
  92. }
  93. ]
  94. },
  95. {
  96. question: "Sexual orientation is a social construct",
  97. answer: 0,
  98. valuesYes: [
  99. {
  100. axis: "c0",
  101. value: 3
  102. }
  103. ],
  104. valuesNo: [
  105. {
  106. axis: "c1",
  107. value: 3
  108. }
  109. ]
  110. },
  111. {
  112. question:
  113. "Social differences between ethnic groups cannot be explained by biology.",
  114. answer: 0,
  115. valuesYes: [
  116. {
  117. axis: "c0",
  118. value: 3
  119. }
  120. ],
  121. valuesNo: [
  122. {
  123. axis: "c1",
  124. value: 3
  125. }
  126. ]
  127. },
  128. {
  129. question:
  130. "The social roles of women and men can partly be explained by biological differences.",
  131. answer: 0,
  132. valuesYes: [
  133. {
  134. axis: "c1",
  135. value: 3
  136. }
  137. ],
  138. valuesNo: [
  139. {
  140. axis: "c0",
  141. value: 3
  142. },
  143. {
  144. axis: "femi",
  145. value: 3
  146. }
  147. ]
  148. },
  149. {
  150. question:
  151. "Hormonal differences can explain some differences in individual characteristics between women and men.",
  152. answer: 0,
  153. valuesYes: [
  154. {
  155. axis: "c1",
  156. value: 3
  157. }
  158. ],
  159. valuesNo: [
  160. {
  161. axis: "c0",
  162. value: 3
  163. },
  164. {
  165. axis: "femi",
  166. value: 3
  167. }
  168. ]
  169. },
  170. {
  171. question: "Sexual assaults are partly caused by men’s natural impulse.",
  172. answer: 0,
  173. valuesYes: [
  174. {
  175. axis: "c1",
  176. value: 3
  177. }
  178. ],
  179. valuesNo: [
  180. {
  181. axis: "c0",
  182. value: 3
  183. },
  184. {
  185. axis: "femi",
  186. value: 3
  187. }
  188. ]
  189. },
  190. {
  191. question:
  192. "Transgender individuals will never really be of the gender they would like to be.",
  193. answer: 0,
  194. valuesYes: [
  195. {
  196. axis: "c1",
  197. value: 3
  198. }
  199. ],
  200. valuesNo: [
  201. {
  202. axis: "c0",
  203. value: 3
  204. }
  205. ]
  206. },
  207. {
  208. question:
  209. "Members of a nation or culture have some unchangeable characteristics that define them.",
  210. answer: 0,
  211. valuesYes: [
  212. {
  213. axis: "c1",
  214. value: 3
  215. }
  216. ],
  217. valuesNo: [
  218. {
  219. axis: "c0",
  220. value: 3
  221. }
  222. ]
  223. },
  224. {
  225. question: "Biologically, human beings are designed for heterosexuality.",
  226. answer: 0,
  227. valuesYes: [
  228. {
  229. axis: "c1",
  230. value: 3
  231. }
  232. ],
  233. valuesNo: [
  234. {
  235. axis: "c0",
  236. value: 3
  237. }
  238. ]
  239. },
  240. {
  241. question:
  242. "Selfishness is the overriding drive in the human species, no matter the context.",
  243. answer: 0,
  244. valuesYes: [
  245. {
  246. axis: "c1",
  247. value: 3
  248. }
  249. ],
  250. valuesNo: [
  251. {
  252. axis: "c0",
  253. value: 3
  254. }
  255. ]
  256. },
  257. // Internationalism/Nationalism
  258. {
  259. question: "Borders should eventually be abolished.",
  260. answer: 0,
  261. valuesYes: [
  262. {
  263. axis: "b0",
  264. value: 3
  265. }
  266. ],
  267. valuesNo: [
  268. {
  269. axis: "b1",
  270. value: 3
  271. }
  272. ]
  273. },
  274. {
  275. question:
  276. "People need to stand up for their ideals, even if it leads them to betray their country.",
  277. answer: 0,
  278. valuesYes: [
  279. {
  280. axis: "b0",
  281. value: 3
  282. }
  283. ],
  284. valuesNo: [
  285. {
  286. axis: "b1",
  287. value: 3
  288. }
  289. ]
  290. },
  291. {
  292. question:
  293. "My country must pay for the damages caused by the crimes it committed in other countries.",
  294. answer: 0,
  295. valuesYes: [
  296. {
  297. axis: "b0",
  298. value: 3
  299. }
  300. ],
  301. valuesNo: [
  302. {
  303. axis: "b1",
  304. value: 3
  305. }
  306. ]
  307. },
  308. {
  309. question:
  310. "If two countries have similar economies, social systems and environmental norms, then the free market between them has no negative impact.",
  311. answer: 0,
  312. valuesYes: [
  313. {
  314. axis: "b0",
  315. value: 3
  316. }
  317. ],
  318. valuesNo: [
  319. {
  320. axis: "b1",
  321. value: 3
  322. }
  323. ]
  324. },
  325. {
  326. question:
  327. "National Chauvinism during sports competitions is not acceptable.",
  328. answer: 0,
  329. valuesYes: [
  330. {
  331. axis: "b0",
  332. value: 3
  333. }
  334. ],
  335. valuesNo: [
  336. {
  337. axis: "b1",
  338. value: 3
  339. }
  340. ]
  341. },
  342. {
  343. question:
  344. "I am equally concerned about the inhabitants of my country and those of other the countries.",
  345. answer: 0,
  346. valuesYes: [
  347. {
  348. axis: "b0",
  349. value: 3
  350. }
  351. ],
  352. valuesNo: [
  353. {
  354. axis: "b1",
  355. value: 3
  356. }
  357. ]
  358. },
  359. {
  360. question:
  361. "Foreigners living in my country should be allowed to act politically, equally to those who have the nationality.",
  362. answer: 0,
  363. valuesYes: [
  364. {
  365. axis: "b0",
  366. value: 3
  367. }
  368. ],
  369. valuesNo: [
  370. {
  371. axis: "b1",
  372. value: 3
  373. }
  374. ]
  375. },
  376. {
  377. question: "Citizens should take priority over foreigners.",
  378. answer: 0,
  379. valuesYes: [
  380. {
  381. axis: "b1",
  382. value: 3
  383. }
  384. ],
  385. valuesNo: [
  386. {
  387. axis: "b0",
  388. value: 3
  389. }
  390. ]
  391. },
  392. {
  393. question:
  394. "The values of my country are superior to those of other countries.",
  395. answer: 0,
  396. valuesYes: [
  397. {
  398. axis: "b1",
  399. value: 3
  400. }
  401. ],
  402. valuesNo: [
  403. {
  404. axis: "b0",
  405. value: 3
  406. }
  407. ]
  408. },
  409. {
  410. question: "Multiculturalism is a threat to our society.",
  411. answer: 0,
  412. valuesYes: [
  413. {
  414. axis: "b1",
  415. value: 3
  416. }
  417. ],
  418. valuesNo: [
  419. {
  420. axis: "b0",
  421. value: 3
  422. }
  423. ]
  424. },
  425. {
  426. question: "A good citizen is a patriot.",
  427. answer: 0,
  428. valuesYes: [
  429. {
  430. axis: "b1",
  431. value: 3
  432. }
  433. ],
  434. valuesNo: [
  435. {
  436. axis: "b0",
  437. value: 3
  438. }
  439. ]
  440. },
  441. {
  442. question:
  443. "It is legitimate for a country to intervene militarily to defend its economic interests.",
  444. answer: 0,
  445. valuesYes: [
  446. {
  447. axis: "b1",
  448. value: 3
  449. }
  450. ],
  451. valuesNo: [
  452. {
  453. axis: "b0",
  454. value: 3
  455. }
  456. ]
  457. },
  458. {
  459. question:
  460. "It is necessary to teach history in order to create a sense of belonging to the nation.",
  461. answer: 0,
  462. valuesYes: [
  463. {
  464. axis: "b1",
  465. value: 3
  466. }
  467. ],
  468. valuesNo: [
  469. {
  470. axis: "b0",
  471. value: 3
  472. }
  473. ]
  474. },
  475. {
  476. question:
  477. "Research produced by my country should not be available to other countries.",
  478. answer: 0,
  479. valuesYes: [
  480. {
  481. axis: "b1",
  482. value: 3
  483. }
  484. ],
  485. valuesNo: [
  486. {
  487. axis: "b0",
  488. value: 3
  489. }
  490. ]
  491. },
  492. // Communism/Capitalism
  493. {
  494. question:
  495. "No one should get rich from owning a business, housing, or land.",
  496. answer: 0,
  497. valuesYes: [
  498. {
  499. axis: "p0",
  500. value: 3
  501. }
  502. ],
  503. valuesNo: [
  504. {
  505. axis: "p1",
  506. value: 3
  507. }
  508. ]
  509. },
  510. {
  511. question: "Wage labor is a form of theft from the worker by companies.",
  512. answer: 0,
  513. valuesYes: [
  514. {
  515. axis: "p0",
  516. value: 3
  517. }
  518. ],
  519. valuesNo: [
  520. {
  521. axis: "p1",
  522. value: 3
  523. }
  524. ]
  525. },
  526. {
  527. question: "It is important that health should stay a public matter.",
  528. answer: 0,
  529. valuesYes: [
  530. {
  531. axis: "p0",
  532. value: 3
  533. }
  534. ],
  535. valuesNo: [
  536. {
  537. axis: "p1",
  538. value: 3
  539. }
  540. ]
  541. },
  542. {
  543. question: "Energy and transport structures should be a public matter.",
  544. answer: 0,
  545. valuesYes: [
  546. {
  547. axis: "p0",
  548. value: 3
  549. }
  550. ],
  551. valuesNo: [
  552. {
  553. axis: "p1",
  554. value: 3
  555. }
  556. ]
  557. },
  558. {
  559. question: "Patents should not exist.",
  560. answer: 0,
  561. valuesYes: [
  562. {
  563. axis: "p0",
  564. value: 3
  565. }
  566. ],
  567. valuesNo: [
  568. {
  569. axis: "p1",
  570. value: 3
  571. }
  572. ]
  573. },
  574. {
  575. question:
  576. "It is necessary to implement assemblies to ration our production to the consumers according to their needs.",
  577. answer: 0,
  578. valuesYes: [
  579. {
  580. axis: "p0",
  581. value: 3
  582. }
  583. ],
  584. valuesNo: [
  585. {
  586. axis: "p1",
  587. value: 3
  588. }
  589. ]
  590. },
  591. {
  592. question: "The labor market enslaves workers.",
  593. answer: 0,
  594. valuesYes: [
  595. {
  596. axis: "p0",
  597. value: 3
  598. }
  599. ],
  600. valuesNo: [
  601. {
  602. axis: "p1",
  603. value: 3
  604. }
  605. ]
  606. },
  607. {
  608. question: "Looking for one’s own profit is healthy for the economy.",
  609. answer: 0,
  610. valuesYes: [
  611. {
  612. axis: "p1",
  613. value: 3
  614. }
  615. ],
  616. valuesNo: [
  617. {
  618. axis: "p0",
  619. value: 3
  620. }
  621. ]
  622. },
  623. {
  624. question:
  625. "It is merit that explains differences of wealth between two individuals.",
  626. answer: 0,
  627. valuesYes: [
  628. {
  629. axis: "p1",
  630. value: 3
  631. }
  632. ],
  633. valuesNo: [
  634. {
  635. axis: "p0",
  636. value: 3
  637. }
  638. ]
  639. },
  640. {
  641. question:
  642. "The fact that some schools and universities are private is not a problem.",
  643. answer: 0,
  644. valuesYes: [
  645. {
  646. axis: "p1",
  647. value: 3
  648. }
  649. ],
  650. valuesNo: [
  651. {
  652. axis: "p0",
  653. value: 3
  654. }
  655. ]
  656. },
  657. {
  658. question:
  659. "Offshoring and outsourcing are necessary evils to improve production.",
  660. answer: 0,
  661. valuesYes: [
  662. {
  663. axis: "p1",
  664. value: 3
  665. }
  666. ],
  667. valuesNo: [
  668. {
  669. axis: "p0",
  670. value: 3
  671. }
  672. ]
  673. },
  674. {
  675. question: "It is acceptable that there are rich and poor people.",
  676. answer: 0,
  677. valuesYes: [
  678. {
  679. axis: "p1",
  680. value: 3
  681. }
  682. ],
  683. valuesNo: [
  684. {
  685. axis: "p0",
  686. value: 3
  687. }
  688. ]
  689. },
  690. {
  691. question: "It is acceptable that some industry sectors are private.",
  692. answer: 0,
  693. valuesYes: [
  694. {
  695. axis: "p1",
  696. value: 3
  697. }
  698. ],
  699. valuesNo: [
  700. {
  701. axis: "p0",
  702. value: 3
  703. }
  704. ]
  705. },
  706. {
  707. question: "Banks should remain private.",
  708. answer: 0,
  709. valuesYes: [
  710. {
  711. axis: "p1",
  712. value: 3
  713. }
  714. ],
  715. valuesNo: [
  716. {
  717. axis: "p0",
  718. value: 3
  719. }
  720. ]
  721. },
  722. // Regulation/Laissez-faire
  723. {
  724. question: "Revenues and capital should be taxed to redistribute wealth.",
  725. answer: 0,
  726. valuesYes: [
  727. {
  728. axis: "m0",
  729. value: 3
  730. }
  731. ],
  732. valuesNo: [
  733. {
  734. axis: "m1",
  735. value: 3
  736. }
  737. ]
  738. },
  739. {
  740. question: "The age of retirement should be lowered.",
  741. answer: 0,
  742. valuesYes: [
  743. {
  744. axis: "m0",
  745. value: 3
  746. }
  747. ],
  748. valuesNo: [
  749. {
  750. axis: "m1",
  751. value: 3
  752. }
  753. ]
  754. },
  755. {
  756. question:
  757. "Dismissals of employees should be forbidden except if it is justified.",
  758. answer: 0,
  759. valuesYes: [
  760. {
  761. axis: "m0",
  762. value: 3
  763. }
  764. ],
  765. valuesNo: [
  766. {
  767. axis: "m1",
  768. value: 3
  769. }
  770. ]
  771. },
  772. {
  773. question:
  774. "Minimal levels of salary should be ensured to make sure that a worker can live of their work.",
  775. answer: 0,
  776. valuesYes: [
  777. {
  778. axis: "m0",
  779. value: 3
  780. }
  781. ],
  782. valuesNo: [
  783. {
  784. axis: "m1",
  785. value: 3
  786. }
  787. ]
  788. },
  789. {
  790. question: "It is necessary to avoid a private monopoly.",
  791. answer: 0,
  792. valuesYes: [
  793. {
  794. axis: "m0",
  795. value: 3
  796. }
  797. ],
  798. valuesNo: [
  799. {
  800. axis: "m1",
  801. value: 3
  802. }
  803. ]
  804. },
  805. {
  806. question:
  807. "Loans contracted in the public sphere (State, regions, collectivities...) should not necessarily be refunded.",
  808. answer: 0,
  809. valuesYes: [
  810. {
  811. axis: "m0",
  812. value: 3
  813. }
  814. ],
  815. valuesNo: [
  816. {
  817. axis: "m1",
  818. value: 3
  819. }
  820. ]
  821. },
  822. {
  823. question:
  824. "Some sectors or type of employment should be financially supported.",
  825. answer: 0,
  826. valuesYes: [
  827. {
  828. axis: "m0",
  829. value: 3
  830. }
  831. ],
  832. valuesNo: [
  833. {
  834. axis: "m1",
  835. value: 3
  836. }
  837. ]
  838. },
  839. {
  840. question: "Market economy is optimal when it is not regulated.",
  841. answer: 0,
  842. valuesYes: [
  843. {
  844. axis: "m1",
  845. value: 3
  846. }
  847. ],
  848. valuesNo: [
  849. {
  850. axis: "m0",
  851. value: 3
  852. }
  853. ]
  854. },
  855. {
  856. question:
  857. "Nowadays employees are free to choose when signing a contract with their future employer",
  858. answer: 0,
  859. valuesYes: [
  860. {
  861. axis: "m1",
  862. value: 3
  863. }
  864. ],
  865. valuesNo: [
  866. {
  867. axis: "m0",
  868. value: 3
  869. }
  870. ]
  871. },
  872. {
  873. question:
  874. "It is necessary to remove regulations in labor legislation to encourage firms to hire.",
  875. answer: 0,
  876. valuesYes: [
  877. {
  878. axis: "m1",
  879. value: 3
  880. }
  881. ],
  882. valuesNo: [
  883. {
  884. axis: "m0",
  885. value: 3
  886. }
  887. ]
  888. },
  889. {
  890. question:
  891. "The maximum allowed hours in the legal work week should be increased.",
  892. answer: 0,
  893. valuesYes: [
  894. {
  895. axis: "m1",
  896. value: 3
  897. }
  898. ],
  899. valuesNo: [
  900. {
  901. axis: "m0",
  902. value: 3
  903. }
  904. ]
  905. },
  906. {
  907. question:
  908. "Environmental norms should be influenced by mass consumption and not from an authority.",
  909. answer: 0,
  910. valuesYes: [
  911. {
  912. axis: "m1",
  913. value: 3
  914. }
  915. ],
  916. valuesNo: [
  917. {
  918. axis: "m0",
  919. value: 3
  920. }
  921. ]
  922. },
  923. {
  924. question: "Social assistance deters people from working.",
  925. answer: 0,
  926. valuesYes: [
  927. {
  928. axis: "m1",
  929. value: 3
  930. }
  931. ],
  932. valuesNo: [
  933. {
  934. axis: "m0",
  935. value: 3
  936. }
  937. ]
  938. },
  939. {
  940. question:
  941. "State-run companies should be managed like private ones and follow the logic of the market (competition, profitability...).",
  942. answer: 0,
  943. valuesYes: [
  944. {
  945. axis: "m1",
  946. value: 3
  947. }
  948. ],
  949. valuesNo: [
  950. {
  951. axis: "m0",
  952. value: 3
  953. }
  954. ]
  955. },
  956. // Progressive/Conservative
  957. {
  958. question: "Traditions should be questioned.",
  959. answer: 0,
  960. valuesYes: [
  961. {
  962. axis: "s0",
  963. value: 3
  964. }
  965. ],
  966. valuesNo: [
  967. {
  968. axis: "s1",
  969. value: 3
  970. }
  971. ]
  972. },
  973. {
  974. question:
  975. "I do not have any problem if other official languages are added or replace the already existing official language in my country.",
  976. answer: 0,
  977. valuesYes: [
  978. {
  979. axis: "s0",
  980. value: 3
  981. }
  982. ],
  983. valuesNo: [
  984. {
  985. axis: "s1",
  986. value: 3
  987. }
  988. ]
  989. },
  990. {
  991. question: "Marriage should be abolished.",
  992. answer: 0,
  993. valuesYes: [
  994. {
  995. axis: "s0",
  996. value: 3
  997. },
  998. {
  999. axis: "femi",
  1000. value: 3
  1001. }
  1002. ],
  1003. valuesNo: [
  1004. {
  1005. axis: "s1",
  1006. value: 3
  1007. }
  1008. ]
  1009. },
  1010. {
  1011. question: "Foreigners enrich our culture.",
  1012. answer: 0,
  1013. valuesYes: [
  1014. {
  1015. axis: "s0",
  1016. value: 3
  1017. }
  1018. ],
  1019. valuesNo: [
  1020. {
  1021. axis: "s1",
  1022. value: 3
  1023. }
  1024. ]
  1025. },
  1026. {
  1027. question: "The influence of religion should decrease.",
  1028. answer: 0,
  1029. valuesYes: [
  1030. {
  1031. axis: "s0",
  1032. value: 3
  1033. }
  1034. ],
  1035. valuesNo: [
  1036. {
  1037. axis: "s1",
  1038. value: 3
  1039. }
  1040. ]
  1041. },
  1042. {
  1043. question: "A language is defined by its users, not by scholars.",
  1044. answer: 0,
  1045. valuesYes: [
  1046. {
  1047. axis: "s0",
  1048. value: 3
  1049. }
  1050. ],
  1051. valuesNo: [
  1052. {
  1053. axis: "s1",
  1054. value: 3
  1055. }
  1056. ]
  1057. },
  1058. {
  1059. question: "Euthanasia should be authorized.",
  1060. answer: 0,
  1061. valuesYes: [
  1062. {
  1063. axis: "s0",
  1064. value: 3
  1065. }
  1066. ],
  1067. valuesNo: [
  1068. {
  1069. axis: "s1",
  1070. value: 3
  1071. }
  1072. ]
  1073. },
  1074. {
  1075. question:
  1076. "Homosexuals should not be treated equally to heterosexuals with regards to marriage, parentage, adoption or procreation.",
  1077. answer: 0,
  1078. valuesYes: [
  1079. {
  1080. axis: "s1",
  1081. value: 3
  1082. }
  1083. ],
  1084. valuesNo: [
  1085. {
  1086. axis: "s0",
  1087. value: 3
  1088. }
  1089. ]
  1090. },
  1091. {
  1092. question: "In some specific conditions, the death penalty is justified.",
  1093. answer: 0,
  1094. valuesYes: [
  1095. {
  1096. axis: "s1",
  1097. value: 3
  1098. },
  1099. {
  1100. axis: "j1",
  1101. value: 3
  1102. }
  1103. ],
  1104. valuesNo: [
  1105. {
  1106. axis: "s0",
  1107. value: 3
  1108. },
  1109. {
  1110. axis: "j0",
  1111. value: 3
  1112. }
  1113. ]
  1114. },
  1115. {
  1116. question: "Technological progress must not change society too quickly.",
  1117. answer: 0,
  1118. valuesYes: [
  1119. {
  1120. axis: "s1",
  1121. value: 3
  1122. }
  1123. ],
  1124. valuesNo: [
  1125. {
  1126. axis: "s0",
  1127. value: 3
  1128. }
  1129. ]
  1130. },
  1131. {
  1132. question:
  1133. "School should mostly teach our values, traditions, and fundamental knowledge.",
  1134. answer: 0,
  1135. valuesYes: [
  1136. {
  1137. axis: "s1",
  1138. value: 3
  1139. }
  1140. ],
  1141. valuesNo: [
  1142. {
  1143. axis: "s0",
  1144. value: 3
  1145. }
  1146. ]
  1147. },
  1148. {
  1149. question: "Abortion should be limited to specific cases.",
  1150. answer: 0,
  1151. valuesYes: [
  1152. {
  1153. axis: "s1",
  1154. value: 3
  1155. }
  1156. ],
  1157. valuesNo: [
  1158. {
  1159. axis: "s0",
  1160. value: 3
  1161. },
  1162. {
  1163. axis: "femi",
  1164. value: 3
  1165. }
  1166. ]
  1167. },
  1168. {
  1169. question: "The main goal of a couple is to make at least one child.",
  1170. answer: 0,
  1171. valuesYes: [
  1172. {
  1173. axis: "s1",
  1174. value: 3
  1175. }
  1176. ],
  1177. valuesNo: [
  1178. {
  1179. axis: "s0",
  1180. value: 3
  1181. }
  1182. ]
  1183. },
  1184. {
  1185. question:
  1186. "Abstinence should be preferred to contraception, to preserve the true nature of the sexual act.",
  1187. answer: 0,
  1188. valuesYes: [
  1189. {
  1190. axis: "s1",
  1191. value: 3
  1192. }
  1193. ],
  1194. valuesNo: [
  1195. {
  1196. axis: "s0",
  1197. value: 3
  1198. }
  1199. ]
  1200. },
  1201. // Ecology/Production
  1202. {
  1203. question:
  1204. "It is not acceptable that human actions should lead to the extinction of species.",
  1205. answer: 0,
  1206. valuesYes: [
  1207. {
  1208. axis: "e0",
  1209. value: 3
  1210. }
  1211. ],
  1212. valuesNo: [
  1213. {
  1214. axis: "e1",
  1215. value: 3
  1216. }
  1217. ]
  1218. },
  1219. {
  1220. question: "GMOs should be forbidden outside research and medical purposes.",
  1221. answer: 0,
  1222. valuesYes: [
  1223. {
  1224. axis: "e0",
  1225. value: 3
  1226. }
  1227. ],
  1228. valuesNo: [
  1229. {
  1230. axis: "e1",
  1231. value: 3
  1232. }
  1233. ]
  1234. },
  1235. {
  1236. question: "We must fight against global warming.",
  1237. answer: 0,
  1238. valuesYes: [
  1239. {
  1240. axis: "e0",
  1241. value: 3
  1242. }
  1243. ],
  1244. valuesNo: [
  1245. {
  1246. axis: "e1",
  1247. value: 3
  1248. }
  1249. ]
  1250. },
  1251. {
  1252. question:
  1253. "We should accept changes in our way of consuming food to limit the exploitation of nature.",
  1254. answer: 0,
  1255. valuesYes: [
  1256. {
  1257. axis: "e0",
  1258. value: 3
  1259. }
  1260. ],
  1261. valuesNo: [
  1262. {
  1263. axis: "e1",
  1264. value: 3
  1265. }
  1266. ]
  1267. },
  1268. {
  1269. question:
  1270. "It is important to encourage an agriculture that maintains a food biodiversity, even if the output is inferior.",
  1271. answer: 0,
  1272. valuesYes: [
  1273. {
  1274. axis: "e0",
  1275. value: 3
  1276. }
  1277. ],
  1278. valuesNo: [
  1279. {
  1280. axis: "e1",
  1281. value: 3
  1282. }
  1283. ]
  1284. },
  1285. {
  1286. question:
  1287. "Preserving non-urban ecosystems is more important than creating jobs.",
  1288. answer: 0,
  1289. valuesYes: [
  1290. {
  1291. axis: "e0",
  1292. value: 3
  1293. }
  1294. ],
  1295. valuesNo: [
  1296. {
  1297. axis: "e1",
  1298. value: 3
  1299. }
  1300. ]
  1301. },
  1302. {
  1303. question: "Reduction of waste should be done by reducing production.",
  1304. answer: 0,
  1305. valuesYes: [
  1306. {
  1307. axis: "e0",
  1308. value: 3
  1309. }
  1310. ],
  1311. valuesNo: [
  1312. {
  1313. axis: "e1",
  1314. value: 3
  1315. }
  1316. ]
  1317. },
  1318. {
  1319. question:
  1320. "Space colonization is a good solution for supplying the lack of raw material on Earth (iron, rare metals, fuel...)",
  1321. answer: 0,
  1322. valuesYes: [
  1323. {
  1324. axis: "e1",
  1325. value: 3
  1326. }
  1327. ],
  1328. valuesNo: [
  1329. {
  1330. axis: "e0",
  1331. value: 3
  1332. }
  1333. ]
  1334. },
  1335. {
  1336. question:
  1337. "Transforming ecosystems durably to increase the quality of life of human beings is legitimate.",
  1338. answer: 0,
  1339. valuesYes: [
  1340. {
  1341. axis: "e1",
  1342. value: 3
  1343. }
  1344. ],
  1345. valuesNo: [
  1346. {
  1347. axis: "e0",
  1348. value: 3
  1349. }
  1350. ]
  1351. },
  1352. {
  1353. question:
  1354. "It is necessary to massively invest in research to improve productivity.",
  1355. answer: 0,
  1356. valuesYes: [
  1357. {
  1358. axis: "e1",
  1359. value: 3
  1360. }
  1361. ],
  1362. valuesNo: [
  1363. {
  1364. axis: "e0",
  1365. value: 3
  1366. }
  1367. ]
  1368. },
  1369. {
  1370. question:
  1371. "Trans-humanism will be beneficial because it will allow us to improve our capacities.",
  1372. answer: 0,
  1373. valuesYes: [
  1374. {
  1375. axis: "e1",
  1376. value: 3
  1377. }
  1378. ],
  1379. valuesNo: [
  1380. {
  1381. axis: "e0",
  1382. value: 3
  1383. }
  1384. ]
  1385. },
  1386. {
  1387. question:
  1388. "Nuclear fission, when well maintained, is a good source of energy.",
  1389. answer: 0,
  1390. valuesYes: [
  1391. {
  1392. axis: "e1",
  1393. value: 3
  1394. }
  1395. ],
  1396. valuesNo: [
  1397. {
  1398. axis: "e0",
  1399. value: 3
  1400. }
  1401. ]
  1402. },
  1403. {
  1404. question: "Exploitation of fossil fuels is necessary.",
  1405. answer: 0,
  1406. valuesYes: [
  1407. {
  1408. axis: "e1",
  1409. value: 3
  1410. }
  1411. ],
  1412. valuesNo: [
  1413. {
  1414. axis: "e0",
  1415. value: 3
  1416. }
  1417. ]
  1418. },
  1419. {
  1420. question:
  1421. "Maintaining strong economic growth should be an objective for the government.",
  1422. answer: 0,
  1423. valuesYes: [
  1424. {
  1425. axis: "e1",
  1426. value: 3
  1427. }
  1428. ],
  1429. valuesNo: [
  1430. {
  1431. axis: "e0",
  1432. value: 3
  1433. }
  1434. ]
  1435. },
  1436. // Rehabilitative Justice/Punitive Justice
  1437. {
  1438. question: "Prisons should no longer exist.",
  1439. answer: 0,
  1440. valuesYes: [
  1441. {
  1442. axis: "j0",
  1443. value: 3
  1444. }
  1445. ],
  1446. valuesNo: [
  1447. {
  1448. axis: "j1",
  1449. value: 3
  1450. }
  1451. ]
  1452. },
  1453. {
  1454. question:
  1455. "It is unfair to set a minimal penalty for an offense or a crime.",
  1456. answer: 0,
  1457. valuesYes: [
  1458. {
  1459. axis: "j0",
  1460. value: 3
  1461. }
  1462. ],
  1463. valuesNo: [
  1464. {
  1465. axis: "j1",
  1466. value: 3
  1467. }
  1468. ]
  1469. },
  1470. {
  1471. question:
  1472. "Individuals who get out of prison should be assisted in their reinsertion.",
  1473. answer: 0,
  1474. valuesYes: [
  1475. {
  1476. axis: "j0",
  1477. value: 3
  1478. }
  1479. ],
  1480. valuesNo: [
  1481. {
  1482. axis: "j1",
  1483. value: 3
  1484. }
  1485. ]
  1486. },
  1487. {
  1488. question:
  1489. "Justice should always take into consideration the context and the past of the condemned and adapt their penalty accordingly.",
  1490. answer: 0,
  1491. valuesYes: [
  1492. {
  1493. axis: "j0",
  1494. value: 3
  1495. }
  1496. ],
  1497. valuesNo: [
  1498. {
  1499. axis: "j1",
  1500. value: 3
  1501. }
  1502. ]
  1503. },
  1504. {
  1505. question: "Conditions of life in jail should be greatly improved.",
  1506. answer: 0,
  1507. valuesYes: [
  1508. {
  1509. axis: "j0",
  1510. value: 3
  1511. }
  1512. ],
  1513. valuesNo: [
  1514. {
  1515. axis: "j1",
  1516. value: 3
  1517. }
  1518. ]
  1519. },
  1520. {
  1521. question:
  1522. "The filing and storage of personal records should be delimited strictly and database cross-checking should be forbidden.",
  1523. answer: 0,
  1524. valuesYes: [
  1525. {
  1526. axis: "j0",
  1527. value: 3
  1528. }
  1529. ],
  1530. valuesNo: [
  1531. {
  1532. axis: "j1",
  1533. value: 3
  1534. }
  1535. ]
  1536. },
  1537. {
  1538. question: "The right to be anonymous on Internet should be guaranteed.",
  1539. answer: 0,
  1540. valuesYes: [
  1541. {
  1542. axis: "j0",
  1543. value: 3
  1544. }
  1545. ],
  1546. valuesNo: [
  1547. {
  1548. axis: "j1",
  1549. value: 3
  1550. }
  1551. ]
  1552. },
  1553. {
  1554. question:
  1555. "The purpose of the judiciary system should be to punish those who went against the law.",
  1556. answer: 0,
  1557. valuesYes: [
  1558. {
  1559. axis: "j1",
  1560. value: 3
  1561. }
  1562. ],
  1563. valuesNo: [
  1564. {
  1565. axis: "j0",
  1566. value: 3
  1567. }
  1568. ]
  1569. },
  1570. {
  1571. question: "The police should be armed.",
  1572. answer: 0,
  1573. valuesYes: [
  1574. {
  1575. axis: "j1",
  1576. value: 3
  1577. }
  1578. ],
  1579. valuesNo: [
  1580. {
  1581. axis: "j0",
  1582. value: 3
  1583. }
  1584. ]
  1585. },
  1586. {
  1587. question:
  1588. "The sacrifice of some civil liberties is a necessity in order to be protected from terrorist acts.",
  1589. answer: 0,
  1590. valuesYes: [
  1591. {
  1592. axis: "j1",
  1593. value: 3
  1594. }
  1595. ],
  1596. valuesNo: [
  1597. {
  1598. axis: "j0",
  1599. value: 3
  1600. }
  1601. ]
  1602. },
  1603. {
  1604. question: "Order and authority should be respected in all circumstances.",
  1605. answer: 0,
  1606. valuesYes: [
  1607. {
  1608. axis: "j1",
  1609. value: 3
  1610. }
  1611. ],
  1612. valuesNo: [
  1613. {
  1614. axis: "j0",
  1615. value: 3
  1616. }
  1617. ]
  1618. },
  1619. {
  1620. question: "Heavy penalties are efficient because they are dissuasive.",
  1621. answer: 0,
  1622. valuesYes: [
  1623. {
  1624. axis: "j1",
  1625. value: 3
  1626. }
  1627. ],
  1628. valuesNo: [
  1629. {
  1630. axis: "j0",
  1631. value: 3
  1632. }
  1633. ]
  1634. },
  1635. {
  1636. question:
  1637. "It is better to arrest someone potentially dangerous preemptively rather than taking the risk of having them committing a crime.",
  1638. answer: 0,
  1639. valuesYes: [
  1640. {
  1641. axis: "j1",
  1642. value: 3
  1643. }
  1644. ],
  1645. valuesNo: [
  1646. {
  1647. axis: "j0",
  1648. value: 3
  1649. }
  1650. ]
  1651. },
  1652. // Revolution/Reform
  1653. {
  1654. question: "Mass strike is a good way to acquire new rights.",
  1655. answer: 0,
  1656. valuesYes: [
  1657. {
  1658. axis: "t0",
  1659. value: 3
  1660. }
  1661. ],
  1662. valuesNo: [
  1663. {
  1664. axis: "t1",
  1665. value: 3
  1666. }
  1667. ]
  1668. },
  1669. {
  1670. question: "Armed struggle in a country is sometimes necessary.",
  1671. answer: 0,
  1672. valuesYes: [
  1673. {
  1674. axis: "t0",
  1675. value: 3
  1676. }
  1677. ],
  1678. valuesNo: [
  1679. {
  1680. axis: "t1",
  1681. value: 3
  1682. }
  1683. ]
  1684. },
  1685. {
  1686. question: "Insurrection is necessary to deeply change society.",
  1687. answer: 0,
  1688. valuesYes: [
  1689. {
  1690. axis: "t0",
  1691. value: 3
  1692. }
  1693. ],
  1694. valuesNo: [
  1695. {
  1696. axis: "t1",
  1697. value: 3
  1698. }
  1699. ]
  1700. },
  1701. {
  1702. question:
  1703. "Activism in existing political organizations is not relevant to change society.",
  1704. answer: 0,
  1705. valuesYes: [
  1706. {
  1707. axis: "t0",
  1708. value: 3
  1709. }
  1710. ],
  1711. valuesNo: [
  1712. {
  1713. axis: "t1",
  1714. value: 3
  1715. }
  1716. ]
  1717. },
  1718. {
  1719. question:
  1720. "Elections organized by the state cannot question the powers in place.",
  1721. answer: 0,
  1722. valuesYes: [
  1723. {
  1724. axis: "t0",
  1725. value: 3
  1726. }
  1727. ],
  1728. valuesNo: [
  1729. {
  1730. axis: "t1",
  1731. value: 3
  1732. }
  1733. ]
  1734. },
  1735. {
  1736. question: "Hacking has a legitimate place in political struggle.",
  1737. answer: 0,
  1738. valuesYes: [
  1739. {
  1740. axis: "t0",
  1741. value: 3
  1742. }
  1743. ],
  1744. valuesNo: [
  1745. {
  1746. axis: "t1",
  1747. value: 3
  1748. }
  1749. ]
  1750. },
  1751. {
  1752. question: "Sabotage is legitimate under certain conditions.",
  1753. answer: 0,
  1754. valuesYes: [
  1755. {
  1756. axis: "t0",
  1757. value: 3
  1758. }
  1759. ],
  1760. valuesNo: [
  1761. {
  1762. axis: "t1",
  1763. value: 3
  1764. }
  1765. ]
  1766. },
  1767. {
  1768. question: "Activists must always act in strict accordance with the law.",
  1769. answer: 0,
  1770. valuesYes: [
  1771. {
  1772. axis: "t1",
  1773. value: 3
  1774. }
  1775. ],
  1776. valuesNo: [
  1777. {
  1778. axis: "t0",
  1779. value: 3
  1780. }
  1781. ]
  1782. },
  1783. {
  1784. question: "Revolutions will always end up in a bad way.",
  1785. answer: 0,
  1786. valuesYes: [
  1787. {
  1788. axis: "t1",
  1789. value: 3
  1790. }
  1791. ],
  1792. valuesNo: [
  1793. {
  1794. axis: "t0",
  1795. value: 3
  1796. }
  1797. ]
  1798. },
  1799. {
  1800. question:
  1801. "Changing the system radically is counter-productive. We should rather transform it progressively.",
  1802. answer: 0,
  1803. valuesYes: [
  1804. {
  1805. axis: "t1",
  1806. value: 3
  1807. }
  1808. ],
  1809. valuesNo: [
  1810. {
  1811. axis: "t0",
  1812. value: 3
  1813. }
  1814. ]
  1815. },
  1816. {
  1817. question: "Violence against individuals is never productive.",
  1818. answer: 0,
  1819. valuesYes: [
  1820. {
  1821. axis: "t1",
  1822. value: 3
  1823. }
  1824. ],
  1825. valuesNo: [
  1826. {
  1827. axis: "t0",
  1828. value: 3
  1829. }
  1830. ]
  1831. },
  1832. {
  1833. question:
  1834. "We should always distance ourselves from protesters who use violence.",
  1835. answer: 0,
  1836. valuesYes: [
  1837. {
  1838. axis: "t1",
  1839. value: 3
  1840. }
  1841. ],
  1842. valuesNo: [
  1843. {
  1844. axis: "t0",
  1845. value: 3
  1846. }
  1847. ]
  1848. },
  1849. {
  1850. question:
  1851. "We need to make compromises with the opposition to apply our ideas.",
  1852. answer: 0,
  1853. valuesYes: [
  1854. {
  1855. axis: "t1",
  1856. value: 3
  1857. }
  1858. ],
  1859. valuesNo: [
  1860. {
  1861. axis: "t0",
  1862. value: 3
  1863. }
  1864. ]
  1865. },
  1866. {
  1867. question:
  1868. "Changes in an individual’s way of life can induce changes in society.",
  1869. answer: 0,
  1870. valuesYes: [
  1871. {
  1872. axis: "t1",
  1873. value: 3
  1874. }
  1875. ],
  1876. valuesNo: [
  1877. {
  1878. axis: "t0",
  1879. value: 3
  1880. }
  1881. ]
  1882. },
  1883. // Bonus Badges
  1884. {
  1885. question: "My religion must be spread as widely as possible.",
  1886. answer: 0,
  1887. valuesYes: [
  1888. {
  1889. axis: "reli",
  1890. value: 3
  1891. }
  1892. ],
  1893. valuesNo: []
  1894. },
  1895. {
  1896. question:
  1897. "It is a small group that consciously and secretly controls the world.",
  1898. answer: 0,
  1899. valuesYes: [
  1900. {
  1901. axis: "comp",
  1902. value: 3
  1903. }
  1904. ],
  1905. valuesNo: []
  1906. },
  1907. {
  1908. question: "A good policy is a pragmatic policy without ideology.",
  1909. answer: 0,
  1910. valuesYes: [
  1911. {
  1912. axis: "prag",
  1913. value: 3
  1914. }
  1915. ],
  1916. valuesNo: []
  1917. },
  1918. {
  1919. question:
  1920. "We need to establish a monarchy to federate the people and preserve our sovereignty.",
  1921. answer: 0,
  1922. valuesYes: [
  1923. {
  1924. axis: "mona",
  1925. value: 3
  1926. }
  1927. ],
  1928. valuesNo: []
  1929. },
  1930. {
  1931. question: "Humans should neither eat nor exploit animals.",
  1932. answer: 0,
  1933. valuesYes: [
  1934. {
  1935. axis: "vega",
  1936. value: 3
  1937. }
  1938. ],
  1939. valuesNo: []
  1940. },
  1941. {
  1942. question: "The State should be abolished.",
  1943. answer: 0,
  1944. valuesYes: [
  1945. {
  1946. axis: "anar",
  1947. value: 3
  1948. }
  1949. ],
  1950. valuesNo: []
  1951. }
  1952. ];
  1953. var qn = 0; // Question number
  1954. var prev_answer = null;
  1955. function shuffle(array) {
  1956. var i = 0,
  1957. j = 0,
  1958. temp = null;
  1959. for (i = array.length - 1; i > 0; i -= 1) {
  1960. j = Math.floor(Math.random() * (i + 1));
  1961. temp = array[i];
  1962. array[i] = array[j];
  1963. array[j] = temp;
  1964. }
  1965. }
  1966. shuffle(questions);
  1967. init_question();
  1968. function init_question() {
  1969. document.getElementById("question-text").innerHTML = questions[qn].question;
  1970. document.getElementById(
  1971. "question-number"
  1972. ).innerHTML = "Question %num% of %sum%"
  1973. .replace("%num%", qn + 1)
  1974. .replace("%sum%", questions.length);
  1975. if (qn == 0) {
  1976. document.getElementById("back_button").style.display = "none";
  1977. document.getElementById("back_button_off").style.display = "block";
  1978. } else {
  1979. document.getElementById("back_button").style.display = "block";
  1980. document.getElementById("back_button_off").style.display = "none";
  1981. }
  1982. }
  1983. function next_question(mult) {
  1984. questions[qn].answer = mult;
  1985. qn++;
  1986. if (qn < questions.length) {
  1987. init_question();
  1988. } else {
  1989. results();
  1990. }
  1991. }
  1992. function prev_question() {
  1993. if (qn == 0) {
  1994. return;
  1995. }
  1996. qn--;
  1997. init_question();
  1998. }
  1999. function calc_score(score, max_value) {
  2000. return ((100 * score) / max_value).toFixed(0);
  2001. }
  2002. function rot13(s) {
  2003. return s.replace(/[A-Za-z]/g, function (c) {
  2004. return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".charAt(
  2005. "NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm".indexOf(c)
  2006. );
  2007. });
  2008. }
  2009. function results() {
  2010. var axes = {};
  2011. for (var i = 0; i < questions.length; i++) {
  2012. var q = questions[i];
  2013. for (var j = 0; j < q.valuesYes.length; j++) {
  2014. var a = q.valuesYes[j];
  2015. if (!(a.axis in axes)) {
  2016. axes[a.axis] = {
  2017. val: 0,
  2018. sum: 0
  2019. };
  2020. }
  2021. if (q.answer > 0) {
  2022. axes[a.axis].val += q.answer * a.value;
  2023. }
  2024. axes[a.axis].sum += Math.max(a.value, 0);
  2025. }
  2026. for (var j = 0; j < q.valuesNo.length; j++) {
  2027. var a = q.valuesNo[j];
  2028. if (!(a.axis in axes)) {
  2029. axes[a.axis] = {
  2030. val: 0,
  2031. sum: 0
  2032. };
  2033. }
  2034. if (q.answer < 0) {
  2035. axes[a.axis].val -= q.answer * a.value;
  2036. }
  2037. axes[a.axis].sum += Math.max(a.value, 0);
  2038. }
  2039. }
  2040. var url = "";
  2041. for (var aK in axes) {
  2042. if (axes[aK].val > 0) {
  2043. if (url != "") url += "&";
  2044. url += aK + "=" + calc_score(axes[aK].val, axes[aK].sum);
  2045. }
  2046. }
  2047. url = window.btoa(rot13(url));
  2048. url = "/results/?" + url;
  2049. location.href = url;
  2050. }