aboutsummaryrefslogtreecommitdiffstats
path: root/library/cropper/tests/example-FixedRatio.htm
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-23 16:36:56 -0800
committerzotlabs <mike@macgirvin.com>2018-01-23 16:36:56 -0800
commit4b7947d98c0625cfc53b481e2240a275e48c0d19 (patch)
tree6c292f51123f0c394999e03710eef9db0b8a790e /library/cropper/tests/example-FixedRatio.htm
parentc034fab4da043aceca212270f0c00fec9492e78d (diff)
downloadvolse-hubzilla-4b7947d98c0625cfc53b481e2240a275e48c0d19.tar.gz
volse-hubzilla-4b7947d98c0625cfc53b481e2240a275e48c0d19.tar.bz2
volse-hubzilla-4b7947d98c0625cfc53b481e2240a275e48c0d19.zip
replace image cropping library
Diffstat (limited to 'library/cropper/tests/example-FixedRatio.htm')
-rw-r--r--library/cropper/tests/example-FixedRatio.htm104
1 files changed, 0 insertions, 104 deletions
diff --git a/library/cropper/tests/example-FixedRatio.htm b/library/cropper/tests/example-FixedRatio.htm
deleted file mode 100644
index 973bedda9..000000000
--- a/library/cropper/tests/example-FixedRatio.htm
+++ /dev/null
@@ -1,104 +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>Fixed ratio 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">
-
- 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;
- }
-
- // with a supplied ratio
- Event.observe(
- window,
- 'load',
- function() {
- new Cropper.Img(
- 'testImage',
- {
- ratioDim: { x: 220, y: 124 },
- displayOnInit: true,
- onEndCrop: onEndCrop
- }
- )
- }
- );
-
- /*
- 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;
- }
-
- #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>Fixed ratio test</h2>
- <p>
- Test of applying a fixed ratio to the cropper
- </p>
- <br />
-
- <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>
-
-