about summary refs log tree commit diff stats
path: root/app/views/puzzles/solve.js.erb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
commit0929719a845897cc8567cf972e07a69a71f0fa6f (patch)
tree2b6f69c1d906abb6e0abf8a0f1d51725bc78087d /app/views/puzzles/solve.js.erb
parent01c1947537e4e23ded0c16812a7cd9d49ad88356 (diff)
downloadwittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.gz
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.bz2
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.zip
Migrate to a full rails app
Diffstat (limited to 'app/views/puzzles/solve.js.erb')
-rw-r--r--app/views/puzzles/solve.js.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/puzzles/solve.js.erb b/app/views/puzzles/solve.js.erb new file mode 100644 index 0000000..2aa22e9 --- /dev/null +++ b/app/views/puzzles/solve.js.erb
@@ -0,0 +1,5 @@
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})