diff --git a/i18n.js b/i18n.js new file mode 100644 index 00000000..2b834c03 --- /dev/null +++ b/i18n.js @@ -0,0 +1,24 @@ +function i18n_load_ns(namespaces, callback) { + var options = { + // "whitelist": ["en", "de"], + // "nonExplicitWhitelist": true, + "fallbackLng": "en" + } + + if (namespaces) options.ns = namespaces + + window.i18next + .use(window.i18nextBrowserLanguageDetector) + .use(window.i18nextXHRBackend) + .init(options, function() { + i18n_ready() + if (callback) callback() + }) +} + +function i18n_ready() { + var fields = document.querySelectorAll("[data-i18n]") + for (var i = 0; i < fields.length; i++) { + fields[i].innerHTML=i18next.t(fields[i].dataset.i18n, fields[i].dataset) + } +} \ No newline at end of file diff --git a/ideologies.js b/ideologies.js index d88ba7a9..d4e6ce8e 100644 --- a/ideologies.js +++ b/ideologies.js @@ -1,461 +1,308 @@ -ideologies = [ - { - "name": "Anarcho-Communism", - "stats": { - "econ": 100, - "dipl": 50, - "govt": 100, - "scty": 90 - } - }, - { - "name": "Libertarian Communism", - "stats": { - "econ": 100, - "dipl": 70, - "govt": 80, - "scty": 80 - } - }, - { - "name": "Trotskyism", - "stats": { - "econ": 100, - "dipl": 100, - "govt": 60, - "scty": 80 - } - }, - { - "name": "Marxism", - "stats": { - "econ": 100, - "dipl": 70, - "govt": 40, - "scty": 80 - } - }, - { - "name": "De Leonism", - "stats": { - "econ": 100, - "dipl": 30, - "govt": 30, - "scty": 80 - } - }, - { - "name": "Leninism", - "stats": { - "econ": 100, - "dipl": 40, - "govt": 20, - "scty": 70 - } - }, - { - "name": "Stalinism/Maoism", - "stats": { - "econ": 100, - "dipl": 20, - "govt": 0, - "scty": 60 - } - }, - { - "name": "Religious Communism", - "stats": { - "econ": 100, - "dipl": 50, - "govt": 30, - "scty": 30 - } - }, - { - "name": "State Socialism", - "stats": { - "econ": 80, - "dipl": 30, - "govt": 30, - "scty": 70 - } - }, - { - "name": "Theocratic Socialism", - "stats": { - "econ": 80, - "dipl": 50, - "govt": 30, - "scty": 20 - } - }, - { - "name": "Religious Socialism", - "stats": { - "econ": 80, - "dipl": 50, - "govt": 70, - "scty": 20 - } - }, - { - "name": "Democratic Socialism", - "stats": { - "econ": 80, - "dipl": 50, - "govt": 50, - "scty": 80 - } - }, - { - "name": "Revolutionary Socialism", - "stats": { - "econ": 80, - "dipl": 20, - "govt": 50, - "scty": 70 - } - }, - { - "name": "Libertarian Socialism", - "stats": { - "econ": 80, - "dipl": 80, - "govt": 80, - "scty": 80 - } - }, - { - "name": "Anarcho-Syndicalism", - "stats": { - "econ": 80, - "dipl": 50, - "govt": 100, - "scty": 80 - } - }, - { - "name": "Left-Wing Populism", - "stats": { - "econ": 60, - "dipl": 40, - "govt": 30, - "scty": 70 - } - }, - { - "name": "Theocratic Distributism", - "stats": { - "econ": 60, - "dipl": 40, - "govt": 30, - "scty": 20 - } - }, - { - "name": "Distributism", - "stats": { - "econ": 60, - "dipl": 50, - "govt": 50, - "scty": 20 - } - }, - { - "name": "Social Liberalism", - "stats": { - "econ": 60, - "dipl": 60, - "govt": 60, - "scty": 80 - } - }, - { - "name": "Christian Democracy", - "stats": { - "econ": 60, - "dipl": 60, - "govt": 40, - "scty": 30 - } - }, - { - "name": "Social Democracy", - "stats": { - "econ": 60, - "dipl": 70, - "govt": 40, - "scty": 80 - } - }, - { - "name": "Progressivism", - "stats": { - "econ": 60, - "dipl": 80, - "govt": 60, - "scty": 100 - } - }, - { - "name": "Anarcho-Mutualism", - "stats": { - "econ": 60, - "dipl": 50, - "govt": 100, - "scty": 70 - } - }, - { - "name": "National Totalitarianism", - "stats": { - "econ": 50, - "dipl": 20, - "govt": 0, - "scty": 50 - } - }, - { - "name": "Global Totalitarianism", - "stats": { - "econ": 50, - "dipl": 80, - "govt": 0, - "scty": 50 - } - }, - { - "name": "Technocracy", - "stats": { - "econ": 60, - "dipl": 60, - "govt": 20, - "scty": 70 - } - }, - { - "name": "Centrist", - "stats": { - "econ": 50, - "dipl": 50, - "govt": 50, - "scty": 50 - } - }, - { - "name": "Liberalism", - "stats": { - "econ": 50, - "dipl": 60, - "govt": 60, - "scty": 60 - } - }, - { - "name": "Religious Anarchism", - "stats": { - "econ": 50, - "dipl": 50, - "govt": 0, - "scty": 20 - } - }, - { - "name": "Right-Wing Populism", - "stats": { - "econ": 40, - "dipl": 30, - "govt": 30, - "scty": 30 - } - }, - { - "name": "Moderate Conservatism", - "stats": { - "econ": 40, - "dipl": 40, - "govt": 50, - "scty": 30 - } - }, - { - "name": "Reactionary", - "stats": { - "econ": 40, - "dipl": 40, - "govt": 40, - "scty": 10 - } - }, - { - "name": "Social Libertarianism", - "stats": { - "econ": 60, - "dipl": 70, - "govt": 80, - "scty": 70 - } - }, - { - "name": "Libertarianism", - "stats": { - "econ": 40, - "dipl": 60, - "govt": 80, - "scty": 60 - } - }, - { - "name": "Anarcho-Egoism", - "stats": { - "econ": 40, - "dipl": 50, - "govt": 100, - "scty": 50 - } - }, - { - "name": "Nazism", - "stats": { - "econ": 40, - "dipl": 0, - "govt": 0, - "scty": 5 - } - }, - { - "name": "Autocracy", - "stats": { - "econ": 50, - "dipl": 20, - "govt": 20, - "scty": 50 - } - }, - { - "name": "Fascism", - "stats": { - "econ": 40, - "dipl": 20, - "govt": 20, - "scty": 20 - } - }, - { - "name": "Capitalist Fascism", - "stats": { - "econ": 20, - "dipl": 20, - "govt": 20, - "scty": 20 - } - }, - { - "name": "Conservatism", - "stats": { - "econ": 30, - "dipl": 40, - "govt": 40, - "scty": 20 - } - }, - { - "name": "Neo-Liberalism", - "stats": { - "econ": 30, - "dipl": 30, - "govt": 50, - "scty": 60 - } - }, - { - "name": "Classical Liberalism", - "stats": { - "econ": 30, - "dipl": 60, - "govt": 60, - "scty": 80 - } - }, - { - "name": "Authoritarian Capitalism", - "stats": { - "econ": 20, - "dipl": 30, - "govt": 20, - "scty": 40 - } - }, - { - "name": "State Capitalism", - "stats": { - "econ": 20, - "dipl": 50, - "govt": 30, - "scty": 50 - } - }, - { - "name": "Neo-Conservatism", - "stats": { - "econ": 20, - "dipl": 20, - "govt": 40, - "scty": 20 - } - }, - { - "name": "Fundamentalism", - "stats": { - "econ": 20, - "dipl": 30, - "govt": 30, - "scty": 5 - } - }, - { - "name": "Libertarian Capitalism", - "stats": { - "econ": 20, - "dipl": 50, - "govt": 80, - "scty": 60 - } - }, - { - "name": "Market Anarchism", - "stats": { - "econ": 20, - "dipl": 50, - "govt": 100, - "scty": 50 - } - }, - { - "name": "Totalitarian Capitalism", - "stats": { - "econ": 0, - "dipl": 30, - "govt": 0, - "scty": 50 - } - }, - { - "name": "Ultra-Capitalism", - "stats": { - "econ": 0, - "dipl": 40, - "govt": 50, - "scty": 50 - } - }, - { - "name": "Anarcho-Capitalism", - "stats": { - "econ": 0, - "dipl": 50, - "govt": 100, - "scty": 50 - } +ideologies = { + "ideo1": { + "econ": 100, + "dipl": 50, + "govt": 100, + "scty": 90 + }, + "ideo2": { + "econ": 100, + "dipl": 70, + "govt": 80, + "scty": 80 + }, + "ideo3": { + "econ": 100, + "dipl": 100, + "govt": 60, + "scty": 80 + }, + "ideo4": { + "econ": 100, + "dipl": 70, + "govt": 40, + "scty": 80 + }, + "ideo5": { + "econ": 100, + "dipl": 30, + "govt": 30, + "scty": 80 + }, + "ideo6": { + "econ": 100, + "dipl": 40, + "govt": 20, + "scty": 70 + }, + "ideo7": { + "econ": 100, + "dipl": 20, + "govt": 0, + "scty": 60 + }, + "ideo8": { + "econ": 100, + "dipl": 50, + "govt": 30, + "scty": 30 + }, + "ideo9": { + "econ": 80, + "dipl": 30, + "govt": 30, + "scty": 70 + }, + "ideo10": { + "econ": 80, + "dipl": 50, + "govt": 30, + "scty": 20 + }, + "ideo11": { + "econ": 80, + "dipl": 50, + "govt": 70, + "scty": 20 + }, + "ideo12": { + "econ": 80, + "dipl": 50, + "govt": 50, + "scty": 80 + }, + "ideo13": { + "econ": 80, + "dipl": 20, + "govt": 50, + "scty": 70 + }, + "ideo14": { + "econ": 80, + "dipl": 80, + "govt": 80, + "scty": 80 + }, + "ideo15": { + "econ": 80, + "dipl": 50, + "govt": 100, + "scty": 80 + }, + "ideo16": { + "econ": 60, + "dipl": 40, + "govt": 30, + "scty": 70 + }, + "ideo17": { + "econ": 60, + "dipl": 40, + "govt": 30, + "scty": 20 + }, + "ideo18": { + "econ": 60, + "dipl": 50, + "govt": 50, + "scty": 20 + }, + "ideo19": { + "econ": 60, + "dipl": 60, + "govt": 60, + "scty": 80 + }, + "ideo20": { + "econ": 60, + "dipl": 60, + "govt": 40, + "scty": 30 + }, + "ideo21": { + "econ": 60, + "dipl": 70, + "govt": 40, + "scty": 80 + }, + "ideo22": { + "econ": 60, + "dipl": 80, + "govt": 60, + "scty": 100 + }, + "ideo23": { + "econ": 60, + "dipl": 50, + "govt": 100, + "scty": 70 + }, + "ideo24": { + "econ": 50, + "dipl": 20, + "govt": 0, + "scty": 50 + }, + "ideo25": { + "econ": 50, + "dipl": 80, + "govt": 0, + "scty": 50 + }, + "ideo26": { + "econ": 60, + "dipl": 60, + "govt": 20, + "scty": 70 + }, + "ideo27": { + "econ": 50, + "dipl": 50, + "govt": 50, + "scty": 50 + }, + "ideo28": { + "econ": 50, + "dipl": 60, + "govt": 60, + "scty": 60 + }, + "ideo29": { + "econ": 50, + "dipl": 50, + "govt": 0, + "scty": 20 + }, + "ideo30": { + "econ": 40, + "dipl": 30, + "govt": 30, + "scty": 30 + }, + "ideo31": { + "econ": 40, + "dipl": 40, + "govt": 50, + "scty": 30 + }, + "ideo32": { + "econ": 40, + "dipl": 40, + "govt": 40, + "scty": 10 + }, + "ideo33": { + "econ": 60, + "dipl": 70, + "govt": 80, + "scty": 70 + }, + "ideo34": { + "econ": 40, + "dipl": 60, + "govt": 80, + "scty": 60 + }, + "ideo35": { + "econ": 40, + "dipl": 50, + "govt": 100, + "scty": 50 + }, + "ideo36": { + "econ": 40, + "dipl": 0, + "govt": 0, + "scty": 5 + }, + "ideo37": { + "econ": 50, + "dipl": 20, + "govt": 20, + "scty": 50 + }, + "ideo38": { + "econ": 40, + "dipl": 20, + "govt": 20, + "scty": 20 + }, + "ideo39": { + "econ": 20, + "dipl": 20, + "govt": 20, + "scty": 20 + }, + "ideo40": { + "econ": 30, + "dipl": 40, + "govt": 40, + "scty": 20 + }, + "ideo41": { + "econ": 30, + "dipl": 30, + "govt": 50, + "scty": 60 + }, + "ideo42": { + "econ": 30, + "dipl": 60, + "govt": 60, + "scty": 80 + }, + "ideo43": { + "econ": 20, + "dipl": 30, + "govt": 20, + "scty": 40 + }, + "ideo44": { + "econ": 20, + "dipl": 50, + "govt": 30, + "scty": 50 + }, + "ideo45": { + "econ": 20, + "dipl": 20, + "govt": 40, + "scty": 20 + }, + "ideo46": { + "econ": 20, + "dipl": 30, + "govt": 30, + "scty": 5 + }, + "ideo47": { + "econ": 20, + "dipl": 50, + "govt": 80, + "scty": 60 + }, + "ideo48": { + "econ": 20, + "dipl": 50, + "govt": 100, + "scty": 50 + }, + "ideo49": { + "econ": 0, + "dipl": 30, + "govt": 0, + "scty": 50 + }, + "ideo50": { + "econ": 0, + "dipl": 40, + "govt": 50, + "scty": 50 + }, + "ideo51": { + "econ": 0, + "dipl": 50, + "govt": 100, + "scty": 50 } -]; +}; diff --git a/index.html b/index.html index 7d122bcd..ca08c497 100644 --- a/index.html +++ b/index.html @@ -14,38 +14,74 @@
+ + + +8values is, in essence, a political quiz that attempts to assign percentages for eight different political values. You will be presented by a statement, and then you will answer with your opinion on the statement, from Strongly Agree to Strongly Disagree, with each answer slightly affecting your scores. At the end of the quiz, your answers will be compared to the maximum possible for each value, thus giving you a percentage. Answer honestly!
+ + -There are four independent axes - Economic, Diplomatic, State, and Society - and each has two opposing values assigned to them. They are:
-Equality (Economic)
- Those with higher Equality scores believe the economy should distribute value evenly among the populace. They tend to support progressive tax codes, social programs, and at high values, socialism.
Markets (Economic)
- Those with higher Market scores believe the economy should be focused on rapid growth. They tend to support lower taxes, privatization, deregulation, and at high values, laissez-faire capitalism.
Nation (Diplomatic)
- Those with higher Nation scores are patriotic and nationalist. They often believe in an aggressive foreign policy, valuing the military, strength, sovereignty, and at high values, territorial expansion.
Globe (Diplomatic)
- Those with higher Globe scores are cosmopolitan and globalist. They often believe in a peaceful foreign policy, emphasizing diplomacy, cooperation, integration, and at high values, a world government.
Liberty (State)
- Those with higher Liberty scores believe in strong civil liberties. They tend to support democracy and oppose state intervention in personal lives. Note that this refers to civil liberties, not economic liberties.
Authority (State)
- Those with higher Authority scores believe in strong state power. They tend to support state intervention in personal lives, government surveillance, and at high values, censorship or autocracy.
Tradition (Society)
- Those with higher Tradition scores believe in traditional values and strict adherence to a moral code. Though not always, they are usually religious, and support the status quo or the status quo ante.
Progress (Society)
- Those with higher Progress scores believe in social change and rationality. Though not always, they are usually secular or atheist, and support environmental action and scientific or technological research.
In addition to matching you to the eight values, the quiz also attempts to match you to a political ideology. This is a work in progress and is much less accurate than the values and axes, so don't take it too seriously. If you disagree with your assigned ideology, send us an email at eightvalues@gmail.com with your scores, matched ideology, and preferred ideology, and we'll look into adjusting the system. Thanks!
-¯\_(ツ)_/¯
- If you have any suggestions or constructive criticism, feel free to send it to eightvalues@gmail.com or open an issue on the GitHub page!
You will be presented with a series of statements. For each one, click the button with your opinion on it.
-Ideological matching is a work in progress, and is much less accurate than the values and axes.
-You can send these results by copying and pasting the URL at the top of the page or using the image below. Think your matched ideology was wrong? Want to help us calibrate the test? Send the results along with your political ideology to us at eightvalues@gmail.com, or send us any comments, questions, or criticism.
+