Mercurial Hosting > dad
diff src/examples/handle.html @ 7:332d3e280f7e
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 23 Apr 2023 20:46:17 -0600 |
parents | 6d5e4b38b4fb |
children |
line wrap: on
line diff
--- a/src/examples/handle.html Sun Apr 23 18:34:12 2023 -0600 +++ b/src/examples/handle.html Sun Apr 23 20:46:17 2023 -0600 @@ -6,12 +6,12 @@ @import "/site.css"; @import "/dad.css"; - span[handle] { + [handle] { display: inline-block; background-color: LightGreen; padding: 8px; } - span[outer] { + [outer] { display: inline-block; background-color: LightBlue; padding: 8px; @@ -24,8 +24,8 @@ }; function init() { - let span = document.querySelector('span[handle]'); - dad.setDraggable(span); + let handle = document.querySelector('[handle]'); + dad.setDraggable(handle); } </script> </head>