From 273b731d29cd72d6fcec7d93b1f47008f02d82b4 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 --- challenges/basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 9babb7d202..3fdf376a7b 100644 --- a/challenges/basic-javascript.json +++ b/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');",