Сообщение от BMW M6
|
всё ровно не работает.
|
значит не судьба ...
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<base href="http://mjolnic.com/bootstrap-colorpicker/" />
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="dist/css/bootstrap-colorpicker.min.css" rel="stylesheet">
<link href="src/css/docs.css" rel="stylesheet">
</head>
<body>
<div id="color_tag_form" class="form-group color_tag">
<label class="col-md-4 control-label">Цвет приставки*</label>
<div class="col-md-4">
<div class="input-group">
<input id="color_tag" value="#ff001f" type="text" class="form-control">
<div class="input-group-addon"><i></i></div>
</div>
</div>
</div>
<h1 id="color_tag_result"></h1>
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="dist/js/bootstrap-colorpicker.js"></script>
<script>
$(function(){
$('#color_tag').colorpicker()
.on('changeColor.colorpicker', function(event){
$("#color_tag_form").addClass("has-success");
$('#color_tag_result').text(event.color.toHex());
});
});
</script>
</body>
</html>