view src/examples/simple.html @ 15:c1fc5b67f128

remove communities.win
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 31 May 2023 13:07:04 -0600
parents 332d3e280f7e
children
line wrap: on
line source

<!doctype html>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<style>
			@import "/site.css";
			@import "/dad.css";

			[drag] {
				display: inline-block;
				background-color: LightGreen;
				padding: 8px;
			}
		</style>
		<script src="/dad.js"></script>
		<script>
			function init() {
				let drag = document.querySelector('[drag]');
				dad.setDraggable(drag);
			}
		</script>
	</head>
	<body>
		<h1>Simple</h1>
		<p><span drag>drag me</span></p>
		<p>bottom</p>
	</body>
	<script> init(); </script>
</html>