Blame view

mobile/source/ext/fc_cropresizer/demo.html 1.45 KB
a1684257   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
  	<title>FC-CropResizer</title>
  	<style type="text/css">
  		body, html, h1 {padding:0; margin:0; font:12px arial;}
  		body {padding:10px 15px;}
  		h1 {font:bold 20px Arial; color:#A1A1A1; margin:20px 0 10px 0;}
  		div {padding-bottom:15px; font:11px tahoma;}
  		a, a:hover {color:#000;}
  	</style>
  	<link rel="stylesheet" type="text/css" href="fc-cropresizer.css" />
  	<script type="text/javascript" src="fc-cropresizer.js"></script>
  	<script type="text/javascript">
  	//<![CDATA[
  	cropresizer.getObject("photo1").init({
  		cropWidth : 150,
  		cropHeight : 150,
  		onUpdate : function() {}
  	});
  	
  	//]]>
  	</script>
  </head>
  <body>
  <div>
  	<h1>Girl</h1>
  	<div>saveProportions: true, cropWidth: 150, cropHeight: 150</div>
  	<img id="photo1" src="demo-photo/girl.jpg" alt="" />
  	
  	<h1>Square</h1>
  	<div>saveProportions: false, cropWidth: 75, cropHeight: 75</div>
  	<img id="photo2" src="demo-photo/crop1.gif" width="346" height="346" alt="" />
  	<div style="position:absolute; z-index:1000;">Äëÿ ïðèìåðà <a href="http://img.artlebedev.ru/everything/zhytlobud/identity/zhytlobud-bb-12-13.jpg">âçÿòà ðàáîòà</a> Ñòóäèè Ëåáåäåâà</div>
  	<br/><br/>
  	
  	<h1>Rectangle</h1>
  	<div>cropWidth: 50, cropHeight: 50, cropBackground : 'yellow', showCropSize : false</div>
  	<img id="photo3" src="demo-photo/3.gif" width="346" height="150" alt="" />
  	<div id="demId"></div>
  </div>
  </body>
  </html>