]> git.mxchange.org Git - friendica.git/blobdiff - view/js/cropper/tests/example-CSS-Float.htm
update javascript cropper library
[friendica.git] / view / js / cropper / tests / example-CSS-Float.htm
diff --git a/view/js/cropper/tests/example-CSS-Float.htm b/view/js/cropper/tests/example-CSS-Float.htm
deleted file mode 100644 (file)
index 3dbeeab..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
-<head>\r
-       <meta http-equiv="Content-type" content="text/html; charset=utf-8" />\r
-       <meta http-equiv="Content-Language" content="en-us" />\r
-       <title>CSS - Float test</title>\r
-       <script src="../lib/prototype.js" type="text/javascript"></script>      \r
-       <script src="../lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"></script>\r
-       <script src="../cropper.js" type="text/javascript"></script>\r
-       \r
-       \r
-       <script type="text/javascript" charset="utf-8">\r
-               \r
-               // setup the callback function\r
-               function onEndCrop( coords, dimensions ) {\r
-                       $PR( 'x1' ).value = coords.x1;\r
-                       $PR( 'y1' ).value = coords.y1;\r
-                       $PR( 'x2' ).value = coords.x2;\r
-                       $PR( 'y2' ).value = coords.y2;\r
-                       $PR( 'width' ).value = dimensions.width;\r
-                       $PR( 'height' ).value = dimensions.height;\r
-               }\r
-               \r
-               // float example\r
-               Event.observe(\r
-                       window,\r
-                       'load',\r
-                       function() {\r
-                               new Cropper.Img(\r
-                                       'testFloatImage',\r
-                                       { \r
-                                               onEndCrop: function( coords, dimensions ) {\r
-                                                       $PR( 'floatX1' ).value = coords.x1;\r
-                                                       $PR( 'floatY1' ).value = coords.y1;\r
-                                                       $PR( 'floatX2' ).value = coords.x2;\r
-                                                       $PR( 'floatY2' ).value = coords.y2;\r
-                                                       $PR( 'floatWidth' ).value = dimensions.width;\r
-                                                       $PR( 'floatHeight' ).value = dimensions.height;\r
-                                               }\r
-                                       }\r
-                               );\r
-                       }\r
-               );              \r
-               \r
-               if( typeof(dump) != 'function' ) {\r
-                       Debug.init(true, '/');\r
-                       \r
-                       function dump( msg ) {\r
-                               Debug.raise( msg );\r
-                       };\r
-               } else dump( '---------------------------------------\n' );\r
-               \r
-               \r
-       </script>\r
-       <link rel="stylesheet" type="text/css" href="debug.css" media="all" />\r
-       <style type="text/css">\r
-               label { \r
-                       clear: left;\r
-                       margin-left: 50px;\r
-                       float: left;\r
-                       width: 5em;\r
-               }\r
-               \r
-               html, body { \r
-                       margin: 0;\r
-               }\r
-               \r
-               #testWrap {\r
-                       margin: 20px 0 0 50px; /* Just while testing, to make sure we return the correct positions for the image & not the window */\r
-               }\r
-               \r
-               #test-float {\r
-                       width: 600px;\r
-                       float: right;\r
-                       background-color: #eee;\r
-                       border: 3px solid #000;\r
-                       margin: 10px;\r
-                       padding: 5px;\r
-               }\r
-\r
-       </style>\r
-</head>\r
-<body>\r
-       <h2>Test page with floating wrapper</h2>\r
-       <p>\r
-               Some test content before the image\r
-       </p>\r
-\r
-<div id="test-float">\r
-       <h2>Float test</h2>\r
-       <div id="testFloatWrap">\r
-               <img src="castle.jpg" alt="test image" id="testFloatImage" width="500" height="333" />\r
-       </div>\r
-       \r
-       <p>\r
-               <label for="floatX1">x1:</label>\r
-               <input type="text" name="floatX1" id="floatX1" />\r
-       </p>\r
-       <p>\r
-               <label for="floatY1">y1:</label>\r
-               <input type="text" name="floatY1" id="floatY1" />\r
-       </p>\r
-       <p>\r
-               <label for="floatX2">x2:</label>\r
-               <input type="text" name="floatX2" id="floatX2" />\r
-       </p>\r
-       <p>\r
-               <label for="floatY2">y2:</label>\r
-               <input type="text" name="floatY2" id="floatY2" />\r
-       </p>\r
-       <p>\r
-               <label for="floatWidth">width:</label>\r
-               <input type="text" name="floatWidth" id="floatWidth" />\r
-       </p>\r
-       <p>\r
-               <label for="floatHeight">height</label>\r
-               <input type="text" name="floatHeight" id="floatHeight" />\r
-       </p>  \r
-</div>\r
-\r
-</body>\r
-</html>\r
-\r
-\r