mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
4a27f3d43e
* make hyperion websocket api event based * implement new websocket handling for generalconf * migrate all webui stuff to new event based websocket api some cleanup ... now all html templates are in content refactoring of web stuff * add hyperionport to global start impl. removing advanced key * separate dashboard serverinfo is updated every 3 seconds automatily add input selection cleanup and remove not needed stuff * prepare infrastructure for server sided file execution * webui minor fixes * fix compile
59 lines
1.4 KiB
HTML
59 lines
1.4 KiB
HTML
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<h1 class="page-header" lang="en" data-lang-token="main_menu_colors_token">Colors</h1>
|
|
<div class="col-lg-1">
|
|
<span lang="en" data-lang-token="remote_colors_label_color">Set color: </span>
|
|
</div>
|
|
<div class="col-lg-3">
|
|
<div id="cp2" class="input-group colorpicker-component">
|
|
<input type="text" value="#00AABB" class="form-control" />
|
|
<span class="input-group-addon"><i></i></span>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-8">
|
|
<button lang="en" data-lang-token="remote_colors_button_reset" type="button" class="btn btn-warning" id="reset_color">Reset Color</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
$(function() {
|
|
$('#cp2').colorpicker({
|
|
format: 'rgb',
|
|
|
|
colorSelectors: {
|
|
'default': '#777777',
|
|
'primary': '#337ab7',
|
|
'success': '#5cb85c',
|
|
'info' : '#5bc0de',
|
|
'warning': '#f0ad4e',
|
|
'danger' : '#d9534f'
|
|
},
|
|
customClass: 'colorpicker-2x',
|
|
sliders: {
|
|
saturation: {
|
|
maxLeft: 200,
|
|
maxTop: 200
|
|
},
|
|
hue: {
|
|
maxTop: 200
|
|
},
|
|
alpha: {
|
|
maxTop: 200
|
|
},
|
|
}
|
|
});
|
|
|
|
$('#cp2').colorpicker().on('changeColor', function(e) {
|
|
color = e.color.toRGB();
|
|
requestSetColor(color.r, color.g, color.b);
|
|
});
|
|
});
|
|
|
|
$("#reset_color").on("click", requestPriorityClear);
|
|
</script>
|