var theInterval = null; var defaults = { conversion: {inputdir: './'}, logRefreshing: [false,10000], update: {lastchecked: false} }; function showTab(tabName,streamName) { settings.currentpage = tabName.replace(' ','_'); ignoreHashChange = true; location.hash = location.hash.split('&')[0]+'&'+tabName+(streamName ? '@'+streamName : ''); $('#menu .button').removeClass('current').filter(function(i){ return $(this).text().toLowerCase() == tabName; }).addClass('current').parents('.expandbutton').addClass('active'); $('#page').html(''); $('#tooltip').remove(); clearInterval(theInterval); $('#menu').css('visibility', 'visible'); switch(tabName) { case 'login': $('#menu').css('visibility', 'hidden'); $('#page').html( $('
').addClass('description').html( 'Please provide your account details.
You were asked to set these when MistController was started for the first time. If you did not yet set any account details, log in with your desired credentials to create a new account.' ) ).append( $('
').addClass('input_container').html( $('