diff options
author | Mario <mario@mariovavti.com> | 2018-03-09 11:12:18 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-03-09 11:12:18 +0100 |
commit | 4baf5eab16d809977a44e7911ddcab0ff8383897 (patch) | |
tree | 393f618c4cfc20f53264ecd8a26a08de0823d35d /library/cropper/tests/example-CoordsOnLoadWithRatio.htm | |
parent | 577da0eb9eb1f90a4cf7a70cfb3582cfb49007ac (diff) | |
parent | 7361af85b5488fc8bd1744389a3a332dc74276b0 (diff) | |
download | volse-hubzilla-3.2.tar.gz volse-hubzilla-3.2.tar.bz2 volse-hubzilla-3.2.zip |
Merge branch '3.2RC'3.2
Diffstat (limited to 'library/cropper/tests/example-CoordsOnLoadWithRatio.htm')
-rw-r--r-- | library/cropper/tests/example-CoordsOnLoadWithRatio.htm | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/library/cropper/tests/example-CoordsOnLoadWithRatio.htm b/library/cropper/tests/example-CoordsOnLoadWithRatio.htm deleted file mode 100644 index 3a696360a..000000000 --- a/library/cropper/tests/example-CoordsOnLoadWithRatio.htm +++ /dev/null @@ -1,109 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <meta http-equiv="Content-Language" content="en-us" />
- <title>Loading & displaying co-ordinates (with ratio) of crop area on attachment test<</title>
- <script src="../lib/prototype.js" type="text/javascript"></script>
- <script src="../lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"></script>
- <script src="../cropper.js" type="text/javascript"></script>
-
-
- <script type="text/javascript" charset="utf-8">
-
- // setup the callback function
- function onEndCrop( coords, dimensions ) {
- $( 'x1' ).value = coords.x1;
- $( 'y1' ).value = coords.y1;
- $( 'x2' ).value = coords.x2;
- $( 'y2' ).value = coords.y2;
- $( 'width' ).value = dimensions.width;
- $( 'height' ).value = dimensions.height;
- }
-
- // basic example
- Event.observe(
- window,
- 'load',
- function() {
- new Cropper.Img(
- 'testImage',
- {
- onEndCrop: onEndCrop,
- displayOnInit: true,
- onloadCoords: { x1: 10, y1: 10, x2: 210, y2: 110 },
- ratioDim: { x: 200, y: 100 }
- }
- )
- }
- );
-
-
- if( typeof(dump) != 'function' ) {
- Debug.init(true, '/');
-
- function dump( msg ) {
- Debug.raise( msg );
- };
- } else dump( '---------------------------------------\n' );
-
-
- </script>
- <link rel="stylesheet" type="text/css" href="debug.css" media="all" />
- <style type="text/css">
- label {
- clear: left;
- margin-left: 50px;
- float: left;
- width: 5em;
- }
-
- html, body {
- margin: 0;
- }
-
- #testWrap {
- margin: 20px 0 0 50px; /* Just while testing, to make sure we return the correct positions for the image & not the window */
- }
- </style>
-</head>
-<body>
- <h2>Loading & displaying co-ordinates (with ratio) of crop area on attachment test</h2>
- <p>
- Some test content before the image
- </p>
-
- <div id="testWrap">
- <img src="castle.jpg" alt="test image" id="testImage" width="500" height="333" />
- </div>
-
-
- <p>
- <label for="x1">x1:</label>
- <input type="text" name="x1" id="x1" />
- </p>
- <p>
- <label for="y1">y1:</label>
- <input type="text" name="y1" id="y1" />
- </p>
- <p>
- <label for="x2">x2:</label>
- <input type="text" name="x2" id="x2" />
- </p>
- <p>
- <label for="y2">y2:</label>
- <input type="text" name="y2" id="y2" />
- </p>
- <p>
- <label for="width">width:</label>
- <input type="text" name="width" id="width" />
- </p>
- <p>
- <label for="height">height</label>
- <input type="text" name="height" id="height" />
- </p>
-
-</body>
-</html>
-
-
|