assets/{css/sally.css,js/ui/controls.js}, index.html: always show `advanced' UIs.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-11-24 12:54:36 +01:00
parent a4bf6cbb8b
commit 7e5b6ec1a7
3 changed files with 1 additions and 17 deletions

View File

@ -201,4 +201,4 @@ textarea { font-size:12pt; width: 37vw; height: 300px; background: #333; color:
.panke #save_el, .panke #save_el,
.panke #vertical_checkbox, .panke #vertical_checkbox,
.panke #add_custom_el, .panke #add_custom_el,
.panke #format_el { display: none !important; } .panke #format_el { }

View File

@ -162,18 +162,6 @@ var controls = (function(){
this.update(state) this.update(state)
} }
controls.advanced = new BlurredCheckbox (advanced_checkbox)
controls.advanced.memorable = true
controls.advanced.use = function(state){
console.log(state)
state = typeof state == "boolean" ? state : ! document.body.classList.contains('panke')
if (state)
document.body.classList.add('panke')
else
document.body.classList.remove('panke')
this.update(state)
}
// //
controls.fg = new BlurredCheckbox (fg_checkbox) controls.fg = new BlurredCheckbox (fg_checkbox)

View File

@ -62,12 +62,8 @@
<span id="clear_el" class="tool">new</span> <span id="clear_el" class="tool">new</span>
<span id="save_el" class="tool">save</span> <span id="save_el" class="tool">save</span>
<span id="load_el" class="tool">load</span> <span id="load_el" class="tool">load</span>
<br>
<a id="doc_el" href="assets/html/help.html" target="_blank">help</a> <a id="doc_el" href="assets/html/help.html" target="_blank">help</a>
<br> <br>
<span id="advanced_checkbox" class="tool">_ advanced</span>
<br>
<br>
brush: <span id="brush_w_el" class="ed">5</span> x <span id="brush_h_el" class="ed">5</span><br> brush: <span id="brush_w_el" class="ed">5</span> x <span id="brush_h_el" class="ed">5</span><br>
canvas: <span id="canvas_w_el" class="ed">100</span> x <span id="canvas_h_el" class="ed">30</span><br> canvas: <span id="canvas_w_el" class="ed">100</span> x <span id="canvas_h_el" class="ed">30</span><br>
</div> </div>