include/lib/jqplot/examples/colorpicker/index.html

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>jqcp</title>
		<!-- jQuery/jQueryUI (hosted) -->
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
		<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
		<script src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
		<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" rel="stylesheet" type="text/css"/>
		<!--link href="aristo/Aristo.css" rel="stylesheet" type="text/css"/-->
        <style>
			body {
				font-family:	'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
				font-size:		62.5%;
			}

			#switcher {
				float: 			right;
				display: 		inline-block;
			}
        </style>
		<script src="jquery.colorpicker.js"></script>
		<link href="jquery.colorpicker.css" rel="stylesheet" type="text/css"/>
        <script>
           	$( function() {
				$('#switcher').themeswitcher();

                $('#cp1').colorpicker({
					onClose: function(hex, rgba, inst) {

							},
					onSelect: function(hex, rgba, inst) {
								//console.log(hex);
								//console.log(rgba);
								//console.log(inst);
							},
					showOn: 'both',
					showHeader: true,
					showSwatches: true,
					buttonColorize: true,
					altField: '.cp1-alt',
					altProperties: 'background-color,color'
				});

                $('#cp2').colorpicker({
					alpha: true,
					showButtonPanel: true
				});

                var cpb = $('#cp-buttons').colorpicker({
					showOn: '',
					parts: ['bar', 'map']
				});
				$('#cp-button-open').click( function() {
					cpb.colorpicker('open');
				});
				$('#cp-button-close').click( function() {
					cpb.colorpicker('close');
				});
				$('#cp-button-disable').click( function() {
后面还有 25 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。