99 var customStarts = false , startsDirty = [ ] ;
1010 function H ( )
1111 {
12- window . open ( "https://github.com/Aircoookie/WLED/wiki/Settings #led-settings" ) ;
12+ window . open ( "https://kno.wled.ge/features/settings/ #led-settings" ) ;
1313 }
1414 function B ( )
1515 {
360360 c += `<span style="cursor: pointer;" onclick="off('${ bt } ')"> ×</span><br>` ;
361361 gId ( "btns" ) . innerHTML = c ;
362362 }
363- function tglSi ( ) {
364- customStarts = ! customStarts ;
363+ function tglSi ( cs ) {
364+ customStarts = cs ;
365365 if ( ! customStarts ) startsDirty = [ ] ; //set all starts to clean
366366 UI ( ) ;
367367 }
373373 }
374374 if ( parseInt ( gId ( "ls0" ) . value ) != 0 ) { cs = true ; startsDirty [ 0 ] = true ; }
375375 gId ( "si" ) . checked = cs ;
376- if ( cs ) {
377- tglSi ( ) ;
378- }
376+ tglSi ( cs ) ;
379377 }
380378 function uploadFile ( name ) {
381379 var req = new XMLHttpRequest ( ) ;
@@ -445,7 +443,7 @@ <h3>Hardware setup</h3>
445443 </ div >
446444 < hr style ="width:260px ">
447445 Make a segment for each output: < input type ="checkbox " name ="MS "> < br >
448- Custom bus start indices: < input type ="checkbox " onchange ="tglSi() " id ="si "> < br >
446+ Custom bus start indices: < input type ="checkbox " onchange ="tglSi(this.checked ) " id ="si "> < br >
449447 < hr style ="width:260px ">
450448 < div id ="btns "> </ div >
451449 Touch threshold: < input type ="number " class ="s " min ="0 " max ="100 " name ="TT " required > < br >
@@ -462,7 +460,7 @@ <h3>Hardware setup</h3>
462460 </ select > < span style ="cursor: pointer; " onclick ="off('IR') "> ×</ span > < br >
463461 < div id ="json " style ="display:none; "> JSON file: < input type ="file " name ="data " accept =".json "> < input type ="button " value ="Upload " onclick ="uploadFile('/ir.json'); "> < br > </ div >
464462 < div id ="toast "> </ div >
465- < a href ="https://github.com/Aircoookie/WLED/wiki/Infrared-Control " target ="_blank "> IR info</ a > < br >
463+ < a href ="https://kno.wled.ge/interfaces/infrared/ " target ="_blank "> IR info</ a > < br >
466464 Relay GPIO: < input type ="number " min ="-1 " max ="33 " name ="RL " onchange ="UI() " class ="xs "> Invert < input type ="checkbox " name ="RM "> < span style ="cursor: pointer; " onclick ="off('RL') "> ×</ span > < br >
467465 < hr style ="width:260px ">
468466 < h3 > Defaults</ h3 >
0 commit comments