"));
+ $outputElement.append($submitElement);
+
+ return $outputElement;
}
$.getJSON("./resources/questions/scenarios.json", "", function(data){
for(const scenario of data.scenarios){
- addScenario(scenario);
+ $("#scenarios").append(makeScenario(scenario));
}
});
}
diff --git a/resources/questions/scenarios.json b/resources/questions/scenarios.json
index 6f3e463..12d021d 100644
--- a/resources/questions/scenarios.json
+++ b/resources/questions/scenarios.json
@@ -1,7 +1,7 @@
{
"scenarios": [
{
- "name": "base raid",
+ "name": "base-raid",
"description":
"You find your base raided: All of your stuff is missing, chests are empty. What would be your first action?",
"options": [
@@ -15,7 +15,7 @@
"other": true
},
{
- "name": "Rule 1",
+ "name": "rule-1",
"description":
"Someone is breaking Rule #1 and well... being a dick. They are angry about (having their base raided/being harrassed by another member/their family treating them unfairly/griefers destroying their base), and are swearing, insulting people, and generally making chat a negative enviornment. What is your first action?",
"options":[
@@ -30,7 +30,7 @@
"other": true
},
{
- "name": "Harrassment",
+ "name": "harrassment",
"description":
"One of your friends is upset. Someone has been harrassing them, asking for innapropriate pictures, constantly private messaging them without their consent. Your friend is visibly uncomfortable, what would be your first action?",
"options":[