text > val

This commit is contained in:
MasterGordon 2018-04-08 13:31:15 +02:00
parent 6c04ac3df9
commit d22facade7
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ var renderItems = true
$(document).ready(function() { $(document).ready(function() {
$("#save").click(function() { $("#save").click(function() {
save() save()
$("#textarea").text(JSON.stringify(game)) $("#textarea").val(JSON.stringify(game))
}) })
$("#load").click(function() { $("#load").click(function() {
game = JSON.parse($("#textarea").val()) game = JSON.parse($("#textarea").val())