forked from phantomxc/Resizable
-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.html
25 lines (23 loc) · 826 Bytes
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<script type="text/javascript" src="tests/lib/prototype.js"></script>
<script type="text/javascript" src="resizable.js"></script>
<script type="text/javascript">
document.observe('dom:loaded', function(ev) {
new Resizable($('resize_me'), {
'default_style':true,
'class_name':'resizable',
'onStart': function() {
console.log('resize start');
},
'onEnd': function() {
console.log('resize end');
}
});
});
</script>
</head>
<body>
<div id="resize_me" style="width:100px; height:100px; border:1px solid black;"></div>
</body>
</html>