From 36450f46057a5e981f6e44f51fe0cf9f24f07b29 Mon Sep 17 00:00:00 2001 From: Vignesh Sivakumar Date: Tue, 5 Dec 2017 14:52:18 +0530 Subject: [PATCH] Cleaned example.html 1) Added simple html5 doctype 2) Made the javscript code to be compatible with "StandardJS" coding standards. 3) Moved the Javascript code to before closing of the body tag. --- example/example.html | 249 +++++++++++++++++++++---------------------- 1 file changed, 122 insertions(+), 127 deletions(-) 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 -
- - - - - -
- - - - - - - - -
-
- -
-