blob: 0e3b683618b92d6ac53ecf8be0c42875b3eea82d (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./css/style.css">
<script type="text/javascript" src="./js/jquery-1.10.1.js"></script>
<script type="text/javascript" src="./js/jquery.remember-state.js"></script>
<script type="text/javascript" src="./js/jquery.fancybox.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="./css/jquery.fancybox.css?v=2.1.5" media="screen" />
</head>
<body style="background-color: #e6e0e0;">
<div id="controls" style="display: block;">
<span class="shim"></span>
<label>resize width</label>
<input type="text" id="img-width"><small>px</small>
<br />
<label>resize height</label>
<input type="text" id="img-height"><small>px</small>
<br />
<label>nearest neighbor?</label>
<input type="checkbox" id="img-nearest" value="1">
<br />
<span class="shim"></span>
<label>recolor white</label>
<input type="text" id="img-white" value="white">
<div id="colorswitcheroo"></div>
<br />
<label>recolor black</label>
<input type="text" id="img-black" value="black">
<br />
<span class="shim"></span>
<label><a id="lnkcolorbox" class="remember_state" style="font-size: 10px">List of Color Names</a></label>
<span class="shim"></span>
<label>hue <small>(0-200)</small></label>
<input type="text" id="img-hue" value="">
<span class="shim"></span>
<label>flip horizontally?</label>
<input type="checkbox" id="img-flop" value="1">
<br>
<label>flip vertically?</label>
<input type="checkbox" id="img-flip" value="1">
<br>
<label>rotate <small>(0-360)</small></label>
<input type="text" id="img-rotate" value=""><br />
<span class="shim"></span>
<label>output format</label>
<select id="img-format">
<option selected="selected">gif</option>
<option>jpg</option>
<option>png</option>
</select>
</div>
<script type="text/javascript">
$("#lnkcolorbox").click(function() {
$.fancybox.open({
href : 'colors.htm',
width : 700, // set the width
height : 610,
fitToView : true,
autoDimensions:false,
autoSize:false,
type : 'iframe',
closeBtn : false,
padding : 5,
beforeShow : function(){
$('.fancybox-iframe').contents().find('#submitvalue').click(function(){
$('.fancybox-iframe').contents().find('form').submit();
$.fancybox.close();
});
},
beforeClose : function(){
x = $('.fancybox-iframe').contents().find('#namespace').val();
},
afterClose: function(){
$('#img-hue').val(x);
}
});
});
</script>
</body>
</html>
|