diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-29 11:35:52 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-29 11:35:52 -0400 |
commit | a8821b425351cdd8a5f69f5b60e389a1ae81cb72 (patch) | |
tree | 21dd2b09c685f708a088366bfe49a603b428cbb4 | |
parent | 10599ab2e789ffb93a19f6aa3c100f533c460315 (diff) | |
download | wittle-a8821b425351cdd8a5f69f5b60e389a1ae81cb72.tar.gz wittle-a8821b425351cdd8a5f69f5b60e389a1ae81cb72.tar.bz2 wittle-a8821b425351cdd8a5f69f5b60e389a1ae81cb72.zip |
cache player name
-rw-r--r-- | app/views/wittle/puzzles/solve.js.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/wittle/puzzles/solve.js.erb b/app/views/wittle/puzzles/solve.js.erb index 12c2350..2aa22e9 100644 --- a/app/views/wittle/puzzles/solve.js.erb +++ b/app/views/wittle/puzzles/solve.js.erb | |||
@@ -1 +1,5 @@ | |||
1 | $("#submission-form").html('<%= escape_javascript(render partial: "submission") %>'); | 1 | $("#submission-form").html('<%= escape_javascript(render partial: "submission") %>'); |
2 | $("#submission-form #name").val(window.settings.player_name) | ||
3 | $("#submission-form #name").on("change", function() { | ||
4 | window.settings.player_name = this.value | ||
5 | }) | ||