Skip to content
Browse files

* Allow editing in the main textarea

  • Loading branch information...
1 parent cbc7edc commit 57886bf3f04f5bacd32e537e7dd8d4836c3e5b02 @audreyt committed Dec 9, 2012
Showing with 6 additions and 10 deletions.
  1. +3 −5 canto.html
  2. +3 −5 index.html
View
8 canto.html
@@ -28,19 +28,17 @@
function canto (x) {
document.getElementById('ring').value = encodeRing(x);
document.getElementById('rev').value = decodeRing(x);
- document.getElementById('canto').select();
}
function rotate (x) {
document.getElementById('canto').value = x;
canto(x);
+ document.getElementById('canto').select();
}
</script>
</head>
-<body onload="canto(document.getElementById('canto').value)">
+<body onload="rotate('請貼上中文,並用 Tab 和 Shift-Tab 鍵切換旋轉次數。')">
<textarea id="rev" onfocus="rotate(this.value)"></textarea>
-<textarea autofocus id="canto" onchange="canto(this.value)" onkeyup="canto(this.value)">
-請貼上中文,並用 Tab 和 Shift-Tab 鍵切換旋轉次數。
-</textarea>
+<textarea autofocus id="canto" onchange="canto(this.value)" onkeyup="canto(this.value)"></textarea>
<textarea id="ring" onfocus="rotate(this.value)"></textarea>
</body>
</html>
View
8 index.html
@@ -28,19 +28,17 @@
function manda (x) {
document.getElementById('ring').value = encodeRing(x);
document.getElementById('rev').value = decodeRing(x);
- document.getElementById('manda').select();
}
function rotate (x) {
document.getElementById('manda').value = x;
manda(x);
+ document.getElementById('manda').select();
}
</script>
</head>
-<body onload="manda(document.getElementById('manda').value)">
+<body onload="rotate('請貼上中文,並用 Tab 和 Shift-Tab 鍵切換旋轉次數。')">
<textarea id="rev" onfocus="rotate(this.value)"></textarea>
-<textarea autofocus id="manda" onchange="manda(this.value)" onkeyup="manda(this.value)">
-請貼上中文,並用 Tab 和 Shift-Tab 鍵切換旋轉次數。
-</textarea>
+<textarea autofocus id="manda" onchange="manda(this.value)" onkeyup="manda(this.value)"></textarea>
<textarea id="ring" onfocus="rotate(this.value)"></textarea>
</body>
</html>

0 comments on commit 57886bf

Please sign in to comment.
Something went wrong with that request. Please try again.