diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-04 10:02:01 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-04 10:02:01 -0400 |
commit | 1bc945a9874722d1e0d236265f607f6fa78f609d (patch) | |
tree | a172333b8cbd1398242a72e29a35902683e7fed4 /app/views | |
parent | b0481b17cbb177d329c67cfe5abd5f76365ceefd (diff) | |
download | wittle-1bc945a9874722d1e0d236265f607f6fa78f609d.tar.gz wittle-1bc945a9874722d1e0d236265f607f6fa78f609d.tar.bz2 wittle-1bc945a9874722d1e0d236265f607f6fa78f609d.zip |
show player's own solution on show page
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/wittle/puzzles/_handle_puzzle.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/wittle/puzzles/_handle_puzzle.html.erb b/app/views/wittle/puzzles/_handle_puzzle.html.erb index 81bca29..e451745 100644 --- a/app/views/wittle/puzzles/_handle_puzzle.html.erb +++ b/app/views/wittle/puzzles/_handle_puzzle.html.erb | |||
@@ -51,7 +51,7 @@ window.onload = function() { | |||
51 | <% else %> | 51 | <% else %> |
52 | var puzzle = window.deserializePuzzle("<%= @puzzle.data %>") | 52 | var puzzle = window.deserializePuzzle("<%= @puzzle.data %>") |
53 | draw(puzzle) | 53 | draw(puzzle) |
54 | drawPath(puzzle, JSON.parse("<%= escape_javascript(sanitize @puzzle.solved_data) %>")) | 54 | drawPath(puzzle, JSON.parse("<%= escape_javascript(sanitize @solution) %>")) |
55 | window.trace = function() {} | 55 | window.trace = function() {} |
56 | <% end %> | 56 | <% end %> |
57 | } | 57 | } |