about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-29 11:35:52 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-29 11:35:52 -0400
commita8821b425351cdd8a5f69f5b60e389a1ae81cb72 (patch)
tree21dd2b09c685f708a088366bfe49a603b428cbb4
parent10599ab2e789ffb93a19f6aa3c100f533c460315 (diff)
downloadwittle-a8821b425351cdd8a5f69f5b60e389a1ae81cb72.tar.gz
wittle-a8821b425351cdd8a5f69f5b60e389a1ae81cb72.tar.bz2
wittle-a8821b425351cdd8a5f69f5b60e389a1ae81cb72.zip
cache player name
-rw-r--r--app/views/wittle/puzzles/solve.js.erb4
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})