From cc030bff87c23c5111eb29cd5a36acf3c04c9bbe Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Thu, 15 Jun 2017 16:35:01 -0600 Subject: [PATCH] Fixed broken JSON by removing line breaks --- resources/questions/scenarios.js | 3 +++ resources/questions/scenarios.json | 14 ++------------ resources/questions/test.json | 3 --- 3 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 resources/questions/test.json diff --git a/resources/questions/scenarios.js b/resources/questions/scenarios.js index 165b4e5..31baf1c 100644 --- a/resources/questions/scenarios.js +++ b/resources/questions/scenarios.js @@ -29,4 +29,7 @@ window.onload = function(){ $("#scenarios").append($liElement); } + $.getJSON("./resources/questions/scenarios.json", function(data){ + console.log(data); + }); }; diff --git a/resources/questions/scenarios.json b/resources/questions/scenarios.json index 24dc600..4455df7 100644 --- a/resources/questions/scenarios.json +++ b/resources/questions/scenarios.json @@ -17,12 +17,7 @@ { "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?", + "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":[ "Attempt to defuse the situation, listening to them", "Go to the moderators, report what happened", @@ -37,12 +32,7 @@ { "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?", + "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":[ "Try to listen to both sides, see what the other person has to say", "Go to the moderators, and report what happened", diff --git a/resources/questions/test.json b/resources/questions/test.json deleted file mode 100644 index d9636ed..0000000 --- a/resources/questions/test.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "Name": "Ali" -}