quiz.js 33 KB

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