diff --git a/example/example.html b/example/example.html index 8a8f9da..ee05103 100755 --- a/example/example.html +++ b/example/example.html @@ -1,136 +1,131 @@ - - - - - Demo Select Areas - - - - - - + + - output("created") - $('.actionOff').attr("disabled", "disabled"); - $('.actionOn').removeAttr("disabled") - }); - $('#btnNew').click(function () { - var areaOptions = { - x: Math.floor((Math.random() * 200)), - y: Math.floor((Math.random() * 200)), - width: Math.floor((Math.random() * 100)) + 50, - height: Math.floor((Math.random() * 100)) + 20, - }; - output("Add a new area: " + areaToString(areaOptions)) - $('img#example').selectAreas('add', areaOptions); - }); - $('#btnNews').click(function () { - var areaOption1 = { - x: Math.floor((Math.random() * 200)), - y: Math.floor((Math.random() * 200)), - width: Math.floor((Math.random() * 100)) + 50, - height: Math.floor((Math.random() * 100)) + 20, - }, areaOption2 = { - x: areaOption1.x + areaOption1.width + 10, - y: areaOption1.y + areaOption1.height - 20, - width: 50, - height: 20, - }; - output("Add a new area: " + areaToString(areaOption1) + " and " + areaToString(areaOption2)) - $('img#example').selectAreas('add', [areaOption1, areaOption2]); - }); - }); + +
+

Demo Select Areas

+
+ Image principale +
+ + + + + +
+ + + + + + + + +
+
+
- var selectionExists; + + - - - - -
-

Demo Select Areas

- -
- Image principale -
- - - - - -
- - - - - - - - -
-
- -
-