diff --git a/iforte/personality.html b/iforte/personality.html
index 473615b..baf6310 100644
--- a/iforte/personality.html
+++ b/iforte/personality.html
@@ -251,15 +251,11 @@
-
@@ -304,162 +300,163 @@
}
$('.sb').unbind();
$('#m-f').empty();
- $('#m-f').append(' < button type = "button"
- class = "btn btn-primary sb" > Save < /button>');var off_on_l=['off','on'];var h='';if(a_m==0){h+=c_txt('dmxa','DMX address','Please put DMX address from 1 to 512');h+=c_opt('dmxp','DMX preset',[1],'Mode ',0,1,'');h+=c_opt('dmxi','DMX input',['wired','wireless','wireless XLR out'],'',0,1,'Can not set wireless input now!');h+=c_txt('rdmn','RDM label','Please insert label,max 32 characters')} else if(a_m==1){h+=c_rad('emod','Ethernet mode',['disable','ArtNet','gMA1','gMA2','sACN'],'','');h+=c_rad('ee2d','Ethernet to DMX',off_on_l,'','');h+=c_txt('eanu','ArtNet universe','Please put ArtNet universe from 0 to 255');h+=c_txt('emau','MANet I/II
- universe ','
- Please put MANet I / II universe from 1 to 256(64
- for MANet I)
- ');h+=c_txt('
- emas ','
- MANet session ID ','
- Please put MANet session ID from 1 to 32 ');h+=c_txt('
- esau ','
- sACN universe ','
- Please put sACN universe from 1 to 32000 ')} else if(a_m==2){h+=' < div class = "row" > ';h+=c_rad('
- pr ','
- Pan reverse ',off_on_l,'
- ','
- col - 6 ');h+=c_rad('
- tr ','
- Tilt reverse ',off_on_l,'
- ','
- col - 6 ');h+=c_rad('
- ptf ','
- Pan / Tilt feedback ',off_on_l,'
- ','
- col - 6 ');h+=c_rad('
- ptm ','
- Pan / Tilt Mode ',['
- speed ','
- time '],'
- ','
- col - 6 ');h+=c_rad('
- pte ','
- Pan / Titl EMS ',off_on_l,'
- ','
- col - 6 ');h+=' < /div>'} else if(a_m==3){h+=c_rad('bldmc','Blackout DMC',off_on_l,'','');h+=' < h3 > Active blackout
- while < /h3>';h+=c_rad('blptm','Pan/Tilt
- moving ',off_on_l,'
- ','
- ');h+=c_rad('
- blgwm ','
- Gobo wheel moving ',off_on_l,'
- ','
- ');h+=c_rad('
- blprm ','
- Color wheel moving ',off_on_l,'
- ','
- ')} else if(a_m==4){h+=c_opt('
- dint ','
- Display intensity ',[10],'
- ',0,1,'
- ');var dsd_dtl_l=['
- off ','
- 1 min ','
- 2 min ','
- 3 min ','
- 4 min ','
- 5 min ','
- 6 min ','
- 7 min ','
- 8 min ','
- 9 min ','
- 10 min '];h+=c_opt('
- dsd ','
- Screensaver delay ',dsd_dtl_l,'
- ',0,0,'
- ');h+=c_opt('
- dtl ','
- Touchscreen lock ',dsd_dtl_l,'
- ',0,0,'
- ');h+=c_rad('
- dor ','
- Display orientation ',['
- normal ','
- inverted ','
- auto '],'
- ')} else if(a_m==5){h+=' < div class = "row" > ';h+=c_txt('
- dtd ','
- Day ','
- ','
- col - 4 ');h+=c_txt('
- dtmo ','
- Month ','
- ','
- col - 4 ');h+=c_txt('
- dty ','
- Year ','
- ','
- col - 4 ');h+=c_txt('
- dth ','
- Hour ','
- ','
- col - 4 ');h+=c_txt('
- dtmi ','
- Minute ','
- ','
- col - 4 ');h+=c_txt('
- dts ','
- Second ','
- ','
- col - 4 ');h+=' < /div>';h+=' < button class = "btn btn-primary btn-block uldt" > Use local date & time < /button>'} else if(a_m==6){h+=c_opt('fsmo','Follow spot mode',['off','soft','medium','hard'],'',0,0,'');h+=c_rad('frqs','LEDs output frequency (Hz)',['300','600','1200','2400'],'','');h+=' < div class = "form-group" > ';h+=' < label
- for = "frqa"
- class = "col-form-label" > LEDs frequency adjust < /label>';h+=' < div class = "row" > ';h+=' < div class = "col-7 col-sm-8" > < input type = "range"
- min = "0"
- max = "1663"
- class = "form-control"
- id = "frqa" > < /div>';h+=' < div class = "col-5 col-sm-4 mt06 text-right"
- id = "frq_bv" > < /div>';h+=' < /div>';h+=' < /div>';h+=c_rad('fanm','Fan mode',['auto','high','quiet'],'','');h+=' < div class = "form-group"
- id = "fannl_fg" > ';h+=' < label
- for = "fannl"
- class = "col-form-label" > Fan noise level < /label>';h+=' < div class = "row" > ';h+=' < div class = "col-9 col-sm-10" > < input type = "range"
- min = "0"
- max = "100"
- class = "form-control"
- id = "fannl" > < /div>';h+=' < div class = "col-3 col-sm-2 mt06 text-right" > 100 % < /div>';h+=' < /div>';h+=' < /div>';h+=c_opt('gind','Gobo indexing',['max. speed & shortcut','follow spd. & dir.','max. spd. & follow dir.'],'',0,0,'');h+=c_rad('tmpu','Temperature unit',['°C','°F'],'','');h+=c_rad('btns','Display buttons',off_on_l,'','')} else if(a_m==7){h+=' < div class = "row" > ';h+=c_rad('
- cdimc ','
- Dimmer curve ',['
- linear ','
- square law '],'
- ','
- col - 6 ');h+=c_rad('
- hpwrm ','
- High power mode ',off_on_l,'
- ','
- ')} else if(a_m==8){h+=c_rad('
- lonof ','
- Lamp status ',off_on_l,'
- ','
- ');h+=' < div class = "form-group"
- id = "ligde_fg" > ';h+=' < label
- for = "ligde"
- class = "col-form-label" > Lamp ignition delay < /label>';h+=' < div class = "row" > ';h+=' < div class = "col-9 col-sm-10" > < input type = "range"
- min = "0"
- max = "90"
- class = "form-control"
- id = "ligde" > < /div>';h+=' < div class = "col-3 col-sm-2 mt06 text-right" > < /div>';h+=' < /div>';h+=' < /div>';h+=' < div class = "row" > ';h+=c_rad('
- llise ','
- Lamp light sensor ',off_on_l,'
- ','
- col - 6 ');h+=c_rad('
- lonpon ','
- Lamp on power on ',off_on_l,'
- ','
- col - 6 ');h+=c_rad('
- lofvd ','
- Lamp off via DMX ',off_on_l,'
- ','
- col - 6 ');h+=c_rad('
- londp ','
- Lamp on
- if DMX present ',off_on_l,'
- ','
- col - 6 ');h+=c_rad('
- lofdm ','
- Lamp off
- if DMX missing ',off_on_l,'
- ','
- col - 6 ');h+=' < /div>'}$('#m-b').html(h);$('#m-f').show();copy_form_values(1);if(a_m==8){if($('#ligde_v').html()=='off'){$('#ligde').val(0)}}$('#cfg-modal').modal();$('.sb').bind('click',function(){loader(1);var p_add='';if(a_m==6){p_add='&frq='+frq}do_ajax(addrs[a_m],pv(params[a_m])+p_add,function (json){if(json){if(json['status']==0){mhdr_status('suc');copy_form_values(0);if(a_m==0){fill_values(json,['dmxf']);ptit(json['pt'])} else if(a_m==6){if(json['fanm']=='quiet') $('#themq').show();else $('#themq').hide();$('#frqs_v').html(frq_s(frq))} else if(a_m==8){if($('#ligde').val()==0) $('#ligde_v').html('off')}close_modal()}show_errors(json['status'],params[a_m]);loader(0)}})});if(a_m==5){$('.uldt').bind('click',function(){var date=new Date();$('#dtd').val(date.getDate());$('#dtmo').val(date.getMonth()+1);$('#dty').val(date.getFullYear());$('#dth').val(('0'+date.getHours()).slice(-2));$('#dtmi').val(('0'+date.getMinutes()).slice(-2));$('#dts').val(('0'+date.getSeconds()).slice(-2))})} else if(a_m==6){$('#fannl').on('input change',function(){$(this).parent().next().html($(this).val()+'%')});$('#fannl').change();$('input[name=fanm]').on('change',function(){if($('input[name=fanm]:checked').val()==2) $('#fannl_fg').show();else $('#fannl_fg').hide()});$('input[name=fanm]').change();$('input[name=frqs]').eq(frq>>12).attr('checked','checked');$('#frqa').val(frq & 0xfff);$('input[name=frqs]').on('change',function(){frq=$('input[name=frqs]:checked').val()< < 12; frq |= 0x340; $('#frqa').val(0x340); $('#frq_bv').html(frq_s(frq) + ' Hz')
+ $('#m-f').append('
Save ');
+ var off_on_l=['off','on'];
+ var h='';
+ if(a_m==0){
+ h+=c_txt('dmxa','DMX address','Please put DMX address from 1 to 512');
+ h+=c_opt('dmxp','DMX preset',[1],'Mode ',0,1,'');
+ h+=c_opt('dmxi','DMX input',['wired','wireless','wireless XLR out'],'',0,1,'Can not set wireless input now!');
+ h+=c_txt('rdmn','RDM label','Please insert label,max 32 characters')
+ } else if(a_m==1){
+ h+=c_rad('emod','Ethernet mode',['disable','ArtNet','gMA1','gMA2','sACN'],'','');
+ h+=c_rad('ee2d','Ethernet to DMX',off_on_l,'','');
+ h+=c_txt('eanu','ArtNet universe','Please put ArtNet universe from 0 to 255');
+ h+=c_txt('emau','MANet I/II universe','Please put MANet I / II universe from 1 to 256 (64 for MANet I)');
+ h+=c_txt('emas','MANet session ID','Please put MANet session ID from 1 to 32');
+ h+=c_txt('esau','sACN universe','Please put sACN universe from 1 to 32000')
+ } else if(a_m==2){
+ h+='
';
+ h+=c_rad('pr','Pan reverse',off_on_l,'','col-6');
+ h+=c_rad('tr','Tilt reverse',off_on_l,'','col-6');
+ h+=c_rad('ptf','Pan / Tilt feedback',off_on_l,'','col-6');
+ h+=c_rad('ptm','Pan / Tilt Mode',['speed','time'],'','col-6');
+ h+=c_rad('pte','Pan / Tilt EMS',off_on_l,'','col-6');
+ h+='
'
+ } else if(a_m==3){
+ h+=c_rad('bldmc','Blackout DMC',off_on_l,'','');
+ h+='
Active blackout while ';
+ h+=c_rad('blptm','Pan/Tilt moving',off_on_l,'','');
+ h+=c_rad('blgwm','Gobo wheel moving',off_on_l,'','');
+ h+=c_rad('blprm','Color wheel moving',off_on_l,'','')
+ } else if(a_m==4){
+ h+=c_opt('dint','Display intensity',[10],'',0,1,'');
+ var dsd_dtl_l=['off','1 min','2 min','3 min','4 min','5 min','6 min','7 min','8 min','9 min','10 min'];
+ h+=c_opt('dsd','Screensaver delay',dsd_dtl_l,'',0,0,'');
+ h+=c_opt('dtl','Touchscreen lock',dsd_dtl_l,'',0,0,'');
+ h+=c_rad('dor','Display orientation',['normal','inverted','auto'],'')
+ } else if(a_m==5){
+ h+='
';
+ h+=c_txt('dtd','Day','','col-4');
+ h+=c_txt('dtmo','Month','','col-4');
+ h+=c_txt('dty','Year','','col-4');
+ h+=c_txt('dth','Hour','','col-4');
+ h+=c_txt('dtmi','Minute','','col-4');
+ h+=c_txt('dts','Second','','col-4');
+ h+='
';
+ h+='
Use local date & time '
+ } else if(a_m==6){
+ h+=c_opt('fsmo','Follow spot mode',['off','soft','medium','hard'],'',0,0,'');
+ h+=c_rad('frqs','LEDs output frequency (Hz)',['300','600','1200','2400'],'','');
+ h+='
';
+ h+=c_rad('fanm','Fan mode',['auto','high','quiet'],'','');
+ h+='
';
+ h+=c_opt('gind','Gobo indexing',['max. speed & shortcut','follow spd. & dir.','max. spd. & follow dir.'],'',0,0,'');
+ h+=c_rad('tmpu','Temperature unit',['°C','°F'],'','');
+ h+=c_rad('btns','Display buttons',off_on_l,'','')
+ } else if(a_m==7){
+ h+='
';
+ h+=c_rad('cdimc','Dimmer curve',['linear','square law'],'','col-6');
+ h+=c_rad('hpwrm','High power mode',off_on_l,'','')
+ } else if(a_m==8){
+ h+=c_rad('lonof','Lamp status',off_on_l,'','');
+ h+='
';
+ h+='
';
+ h+=c_rad('llise','Lamp light sensor',off_on_l,'','col-6');
+ h+=c_rad('lonpon ','Lamp on power on',off_on_l,'','col-6');
+ h+=c_rad('lofvd','Lamp off via DMX',off_on_l,'','col-6');
+ h+=c_rad('londp','Lamp on if DMX present',off_on_l,'','col-6');
+ h+=c_rad('lofdm ','Lamp off if DMX missing',off_on_l,'','col-6');
+ h+='
'
+ }
+
+ $('#m-b').html(h);
+ $('#m-f').show();
+ copy_form_values(1);
+ if(a_m==8){
+ if($('#ligde_v').html()=='off'){
+ $('#ligde').val(0)}
+ }
+ $('#cfg-modal').modal();
+ $('.sb').bind('click',function(){
+ loader(1);
+ var p_add='';
+ if(a_m==6){
+ p_add='&frq='+frq
+ }
+ do_ajax(addrs[a_m],pv(params[a_m])+p_add,function (json){
+ if(json){
+ if(json['status']==0){
+ mhdr_status('suc');
+ copy_form_values(0);
+ if(a_m==0){
+ fill_values(json,['dmxf']);
+ ptit(json['pt'])
+ } else if(a_m==6){
+ if(json['fanm']=='quiet'){
+ $('#themq').show();
+ } else {
+ $('#themq').hide();
+ }
+ $('#frqs_v').html(frq_s(frq))
+ } else if(a_m==8){
+ if($('#ligde').val()==0) {
+ $('#ligde_v').html('off')
+ }
+ }
+ close_modal()
+ }
+ show_errors(json['status'],params[a_m]);loader(0)
+ }
+ })
+ });
+ if(a_m==5){
+ $('.uldt').bind('click',function(){
+ var date=new Date();
+ $('#dtd').val(date.getDate());
+ $('#dtmo').val(date.getMonth()+1);
+ $('#dty').val(date.getFullYear());
+ $('#dth').val(('0'+date.getHours()).slice(-2));
+ $('#dtmi').val(('0'+date.getMinutes()).slice(-2));
+ $('#dts').val(('0'+date.getSeconds()).slice(-2))
+ })
+ } else if(a_m==6){
+ $('#fannl').on('input change',function(){
+ $(this).parent().next().html($(this).val()+'%')
+ });
+ $('#fannl').change();
+ $('input[name=fanm]').on('change',function(){
+ if($('input[name=fanm]:checked').val()==2) {
+ $('#fannl_fg').show();
+ } else {
+ $('#fannl_fg').hide()
+ }
+ });
+ $('input[name=fanm]').change();
+ $('input[name=frqs]').eq(frq>>12).attr('checked','checked');
+ $('#frqa').val(frq & 0xfff);
+ $('input[name=frqs]').on('change',function(){
+ frq=$('input[name=frqs]:checked').val() << 12; frq |= 0x340;
+ $('#frqa').val(0x340);
+ $('#frq_bv').html(frq_s(frq) + ' Hz')
});
$('#frqa').on('input change', function() {
frq &= 0xf000;
@@ -486,6 +483,7 @@
f = f * (1 << (frq >> 12)) / (arr * (256 - x) + (arr + 1) * (x));
return Math.floor(f / 10000) + '.' + ('0000' + Math.floor(f % 10000)).slice(-4)
}
+
$(document).ready(function() {
$('h1').html('Personality');
var boxes = '';