Now you can toggle mathbox and waterfall
This commit is contained in:
parent
327ef6b51b
commit
81be5fb49a
@ -2101,9 +2101,10 @@ function mathbox_init()
|
|||||||
|
|
||||||
function mathbox_toggle()
|
function mathbox_toggle()
|
||||||
{
|
{
|
||||||
mathbox_container.style.display="block";
|
|
||||||
if(mathbox_mode == MATHBOX_MODES.UNINITIALIZED) mathbox_init();
|
if(mathbox_mode == MATHBOX_MODES.UNINITIALIZED) mathbox_init();
|
||||||
mathbox_mode = (mathbox_mode == MATHBOX_MODES.NONE) ? MATHBOX_MODES.WATERFALL : MATHBOX_MODES.NONE;
|
mathbox_mode = (mathbox_mode == MATHBOX_MODES.NONE) ? MATHBOX_MODES.WATERFALL : MATHBOX_MODES.NONE;
|
||||||
|
mathbox_container.style.display = (mathbox_mode == MATHBOX_MODES.WATERFALL) ? "block" : "none";
|
||||||
mathbox_clear_data();
|
mathbox_clear_data();
|
||||||
waterfall_clear();
|
waterfall_clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user