<!--
Copyright (c) 2007 John Dyer (http://johndyer.name)

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
-->
<?php
	require("../__common__/include-color-chart.php");
?>
<!-- <!DOCTYPE html> を指定するとレイアウトが崩れる。-->
<html lang="ja">
<head>
<meta charset="utf-8">
<title>HTML カラーチャート ＋ Color Picker</title>
<link rel="stylesheet" href="../style/original/tools_common.css?20120406">
<style>
td {
	font-size: 13px;
	line-height: 1.2;
}
</style>
<script src="refresh_web/prototype.js"></script>
<script src="refresh_web/colorpicker/ColorMethods.js"></script>
<script src="refresh_web/colorpicker/ColorValuePicker.js"></script>
<script src="refresh_web/colorpicker/Slider.js"></script>
<script src="refresh_web/colorpicker/ColorPicker.js"></script>
</head>
<body>
<p id="tool_title_area">
<a href="../tools/" class="return_index">■</a>
<span id="tool_title">HTML カラーチャート ＋ Photoshop-like JavaScript Color Picker</span>
</p>
	<table><tr><td valign=top><!-- ************ -->
<table>
<tr>
<td valign="top">
	<div id="cp1_ColorMap"></div>
</td>
<td valign="top">
	<div id="cp1_ColorBar"></div>
</td>
<td valign="top">
	<table>
	<tr>
		<td colspan="3">
			<div id="cp1_Preview" style="background-color: #fff; width: 60px; height: 60px; padding: 0; margin: 0; border: solid 1px #000;">
				<br />
			</div>
		</td>
	</tr>
	<tr>
		<td>
			<input type="radio" id="cp1_HueRadio" name="cp1_Mode" value="0" />
		</td>
		<td>
			<label for="cp1_HueRadio">H:</label>
		</td>
		<td nowrap>
			<input class="text" type="text" id="cp1_Hue" value="0" style="width: 40px;" /> &deg;
		</td>
	</tr>
	<tr>
		<td>
			<input type="radio" id="cp1_SaturationRadio" name="cp1_Mode" value="1" />
		</td>
		<td>
			<label for="cp1_SaturationRadio">S:</label>
		</td>
		<td nowrap>
			<input class="text" type="text" id="cp1_Saturation" value="100" style="width: 40px;" /> %
		</td>
	</tr>
	<tr>
		<td>
			<input type="radio" id="cp1_BrightnessRadio" name="cp1_Mode" value="2" />
		</td>
		<td>
			<label for="cp1_BrightnessRadio">B:</label>
		</td>
		<td nowrap>
			<input class="text" type="text" id="cp1_Brightness" value="100" style="width: 40px;" /> %
		</td>
	</tr>
	<tr>
		<td colspan="3" height="5">
		</td>
	</tr>
	<tr>
		<td>
			<input type="radio" id="cp1_RedRadio" name="cp1_Mode" value="r" />
		</td>
		<td>
			<label for="cp1_RedRadio">R:</label>
		</td>
		<td>
			<input class="text" type="text" id="cp1_Red" value="255" style="width: 40px;" />
		</td>
	</tr>
	<tr>
		<td>
			<input type="radio" id="cp1_GreenRadio" name="cp1_Mode" value="g" />
		</td>
		<td>
			<label for="cp1_GreenRadio">G:</label>
		</td>
		<td>
			<input class="text" type="text" id="cp1_Green" value="0" style="width: 40px;" />
		</td>
	</tr>
	<tr>
		<td>
			<input type="radio" id="cp1_BlueRadio" name="cp1_Mode" value="b" />
		</td>
		<td>
			<label for="cp1_BlueRadio">B:</label>
		</td>
		<td>
			<input class="text" type="text" id="cp1_Blue" value="0" style="width: 40px;" />
		</td>
	</tr>
	<tr>
		<td align="right">
			#:
		</td>
		<td colspan="2">
			<input class="text" type="text" id="cp1_Hex" value="FF0000" style="width: 60px;" />
		</td>
	</tr>
	</table>
</td>
</tr>
</table>
<div style="display:none;">
	<img src="refresh_web/colorpicker/images/rangearrows.gif" />
	<img src="refresh_web/colorpicker/images/mappoint.gif" />
	<img src="refresh_web/colorpicker/images/bar-saturation.png" />
	<img src="refresh_web/colorpicker/images/bar-brightness.png" />
	<img src="refresh_web/colorpicker/images/bar-blue-tl.png" />
	<img src="refresh_web/colorpicker/images/bar-blue-tr.png" />
	<img src="refresh_web/colorpicker/images/bar-blue-bl.png" />
	<img src="refresh_web/colorpicker/images/bar-blue-br.png" />
	<img src="refresh_web/colorpicker/images/bar-red-tl.png" />
	<img src="refresh_web/colorpicker/images/bar-red-tr.png" />
	<img src="refresh_web/colorpicker/images/bar-red-bl.png" />
	<img src="refresh_web/colorpicker/images/bar-red-br.png" />
	<img src="refresh_web/colorpicker/images/bar-green-tl.png" />
	<img src="refresh_web/colorpicker/images/bar-green-tr.png" />
	<img src="refresh_web/colorpicker/images/bar-green-bl.png" />
	<img src="refresh_web/colorpicker/images/bar-green-br.png" />
	<img src="refresh_web/colorpicker/images/map-red-max.png" />
	<img src="refresh_web/colorpicker/images/map-red-min.png" />
	<img src="refresh_web/colorpicker/images/map-green-max.png" />
	<img src="refresh_web/colorpicker/images/map-green-min.png" />
	<img src="refresh_web/colorpicker/images/map-blue-max.png" />
	<img src="refresh_web/colorpicker/images/map-blue-min.png" />
	<img src="refresh_web/colorpicker/images/map-saturation.png" />
	<img src="refresh_web/colorpicker/images/map-saturation-overlay.png" />
	<img src="refresh_web/colorpicker/images/map-brightness.png" />
	<img src="refresh_web/colorpicker/images/map-hue.png" />
</div>
<table><tr><td>
<div id="cp1_Text" style="color:#000000; line-height:16px; padding:0 5px 0 5px;">
<p>
中級プログラマの自宅でPHP<br>
MyHome Portal MyHome Portal<br>
PHP JavaScript MySQL Apache<br>
オープンソース オープンソース<br>
東京都 大阪市 名古屋市<br>
</p>
<p style="text-decoration: underline;">
中級プログラマの自宅でPHP<br>
MyHome Portal MyHome Portal<br>
PHP JavaScript MySQL Apache<br>
オープンソース オープンソース<br>
東京都 大阪市 名古屋市<br>
</p>
</div>
</td><td>
<div id="cp1_TextBg" style="background-color:#000000; line-height:16px; padding:0 5px 0 5px;">
<p>
中級プログラマの自宅でPHP<br>
MyHome Portal MyHome Portal<br>
PHP JavaScript MySQL Apache<br>
オープンソース オープンソース<br>
東京都 大阪市 名古屋市<br>
</p>
<p style="color:#ffffff;">
中級プログラマの自宅でPHP<br>
MyHome Portal MyHome Portal<br>
PHP JavaScript MySQL Apache<br>
オープンソース オープンソース<br>
東京都 大阪市 名古屋市<br>
</p>
</div>
</td></tr>
</table>
	</td><td valign=top><!-- ************ -->
<table>
<tr>
<td valign=top>
<?php	color_chart_dark('min'); ?>
</td>
<td valign=top>
<?php	color_chart_pale('min'); ?>
</td>
</tr>
</table>
	</td></tr></table><!-- ************ -->
<script>
Event.observe(window,'load',function() {
	cp1 = new Refresh.Web.ColorPicker('cp1',{startHex: '0080E0', startMode:'s'});
});
</script>
</body>
</html>