diff --git a/assets/webconfig/content/effects.html b/assets/webconfig/content/effects.html index 4f3002e9..be45f63c 100644 --- a/assets/webconfig/content/effects.html +++ b/assets/webconfig/content/effects.html @@ -6,8 +6,54 @@
');
$('#modal_dialog .modal-footer-button').html('');
- $('#modal_dialog .modal-footer-button').append('');
+ $('#modal_dialog .modal-footer-button').append('');
}
else if (type == "uilock"){
$('#modal_dialog .modal-bodyicon').html('
');
@@ -182,8 +182,10 @@ function createHelpTable(list, phead){
thead.appendChild(createTableTh($.i18n('conf_helptable_option'), $.i18n('conf_helptable_expl')));
for (key in list){
- text = list[key].title.replace('title', 'expl');
- tbody.appendChild(createTableTd($.i18n(list[key].title), $.i18n(text)));
+ if(list[key].access != 'system'){
+ text = list[key].title.replace('title', 'expl');
+ tbody.appendChild(createTableTd($.i18n(list[key].title), $.i18n(text)));
+ }
}
table.appendChild(thead);
table.appendChild(tbody);
diff --git a/assets/webconfig/js/wizard.js b/assets/webconfig/js/wizard.js
new file mode 100644
index 00000000..a924d1f3
--- /dev/null
+++ b/assets/webconfig/js/wizard.js
@@ -0,0 +1,142 @@
+$(document).ready( function() {
+ //clear priority if people reload the page or lost connection while a wizard was active
+ var wizardStatus = localStorage.getItem("wizardactive");
+
+ $(hyperion).one("cmd-config-getschema", function(event) {
+ if(wizardStatus)
+ requestPriorityClear();
+ });
+
+ //rgb byte order wizard
+ var colorIntveralId;
+ var new_rgb_order;
+
+ function changeColor()
+ {
+ var color = $("#wiz_canv_color").css('background-color');
+
+ if (color == 'rgb(255, 0, 0)')
+ {
+ $("#wiz_canv_color").css('background-color','rgb(0, 255, 0)');
+ requestSetColor('0','255','0');
+ }
+ else
+ {
+ $("#wiz_canv_color").css('background-color','rgb(255, 0, 0)');
+ requestSetColor('255','0','0');
+ }
+ }
+
+ function startWizardRGB()
+ {
+ $("#wizard_modal").modal({
+ backdrop : "static",
+ keyboard: false,
+ show: true
+ });
+ }
+
+ function beginWizardRGB()
+ {
+ $("#wiz_switchtime_select").off().on('change',function() {
+ clearInterval(colorIntveralId);
+ var time = $("#wiz_switchtime_select").val();
+ colorIntveralId = setInterval(function() { changeColor(); }, time*1000);
+ });
+
+ $('.wselect').change(function () {
+ var rgb_order = order = parsedConfJSON.device.colorOrder.split("");
+ var redS = $("#wiz_r_select").val();
+ var greenS = $("#wiz_g_select").val();
+
+ for (var i = 0; i