diff src/examples/simple.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/simple.html	Sun Apr 23 18:34:12 2023 -0600
+++ b/src/examples/simple.html	Sun Apr 23 20:46:17 2023 -0600
@@ -6,7 +6,7 @@
 			@import "/site.css";
 			@import "/dad.css";
 
-			span[drag] {
+			[drag] {
 				display: inline-block;
 				background-color: LightGreen;
 				padding: 8px;
@@ -15,8 +15,8 @@
 		<script src="/dad.js"></script>
 		<script>
 			function init() {
-				let span = document.querySelector('span[drag]');
-				dad.setDraggable(span);
+				let drag = document.querySelector('[drag]');
+				dad.setDraggable(drag);
 			}
 		</script>
 	</head>