mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
js: Allow for putting a resize handle in HTML
This commit is contained in:
@ -572,8 +572,12 @@ function initPuzzle() {
|
||||
|
||||
resizable_div = document.getElementById("resizable");
|
||||
if (resizable_div !== null) {
|
||||
// Delete any existing resize handle.
|
||||
var resize_handle = document.getElementById("resizehandle");
|
||||
if (resize_handle)
|
||||
resize_handle.parentNode.removeChild(resize_handle);
|
||||
// Create the resize handle.
|
||||
var resize_handle = document.createElement("canvas");
|
||||
resize_handle = document.createElement("canvas");
|
||||
resize_handle.width = 10;
|
||||
resize_handle.height = 10;
|
||||
|
||||
|
Reference in New Issue
Block a user