metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
34 lines (29 loc) • 864 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="../metro/css/metro-all.css?ver=@@b-version" rel="stylesheet">
<title>Test Resizable - Metro 4 :: Popular HTML, CSS and JS library</title>
<style>
.box {
width: 200px;
height: 200px;
background: red;
}
</style>
</head>
<body class="m4-cloak">
<h1>Resizeable test page</h1>
<div class="box" data-role="draggable, resizable"></div>
<div data-role="window" data-on-resize="onResize">
The mystery is a distant ship.
</div>
<script src="../metro/js/metro.js?ver=@@b-version"></script>
<script>
function onResize(size) {
console.log(size);
}
</script>
</body>
</html>