From 326c22276de0abf0f91d19cd0d9357ff14004aac Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Sat, 15 Aug 2015 01:08:33 +0100 Subject: [PATCH] Added a helper function to main.js for challenge making --- seed/challenges/basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/basic-javascript.json b/seed/challenges/basic-javascript.json index 9babb7d202..3fdf376a7b 100644 --- a/seed/challenges/basic-javascript.json +++ b/seed/challenges/basic-javascript.json @@ -1570,7 +1570,7 @@ "difficulty":"9.9901", "description":[ "Now that we can detect when the player wins we are going to add an image to each slot depending on the random values we generate", - "$($('.slot')[0]).html('<img src = \"' + images[slotOne-1] + '\">');" + "$($('.slot')[0]).html('<img src = \"' + images[slotOne-1] + '\">');" ], "tests":[ "assert(editor.match(/\\$\\(\\$\\(\\'\\.slot\\'\\)\\[\\d\\]\\)\\.html\\(\\'\\\\'\\);/gi) && editor.match(/\\$\\(\\$\\(\\'\\.slot\\'\\)\\[\\d\\]\\)\\.html\\(\\'\\\\'\\);/gi).length >= 3, 'Use the provided code three times. One for each slot');",