Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  script/editor.js
8  script/editor.js
@@ -27,6 +27,14 @@ else {
27 27
     	parent.window.postMessage(serialization_without_images, "*");
28 28
     }
29 29
     
  30
+    document.getElementById("dim_editor").addEventListener("submit", function(e) {
  31
+        e.preventDefault();
  32
+        level.lines = document.getElementById("lines_field").value;
  33
+        board.style.height = document.getElementById("board_height_field").value + "px";
  34
+        location.href = "editor.html?" + level.serialize(false);
  35
+        return false;
  36
+    });
  37
+    
30 38
     var selectedAnimation = function() {
31 39
         return document.getElementById("animation_field").value;
32 40
     };

No commit comments for this range

Something went wrong with that request. Please try again.