mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:10:13 +00:00
Move js/ folder under view/
- Move library/cropper to view/js/cropper - Move library/jquery-textcomplete to view/js/jquery-textcomplete
This commit is contained in:
parent
a05eeeb49c
commit
cd392db078
72 changed files with 51 additions and 51 deletions
|
@ -1,116 +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>CSS - Relative 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 ) {
|
||||
$PR( 'x1' ).value = coords.x1;
|
||||
$PR( 'y1' ).value = coords.y1;
|
||||
$PR( 'x2' ).value = coords.x2;
|
||||
$PR( 'y2' ).value = coords.y2;
|
||||
$PR( 'width' ).value = dimensions.width;
|
||||
$PR( 'height' ).value = dimensions.height;
|
||||
}
|
||||
|
||||
// relative example
|
||||
Event.observe(
|
||||
window,
|
||||
'load',
|
||||
function() {
|
||||
new Cropper.Img(
|
||||
'testImage',
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
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 */
|
||||
}
|
||||
|
||||
#test-relative {
|
||||
background-color: #ccc;
|
||||
border: 3px solid #ddd;
|
||||
position: relative;
|
||||
top: 25px;
|
||||
left: 25px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test page with relatively positioned wrapper</h2>
|
||||
<p>
|
||||
Some test content before the image
|
||||
</p>
|
||||
|
||||
<div id="test-relative">
|
||||
<h2>Relative test</h2>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue