HEX
Server: Apache/2.4.59 (Debian)
System: Linux skycube.cz 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64
User: ilya (534)
PHP: 7.3.31-1~deb10u7
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/ilya/data/www/irkboard.ru/admin/js/acp.styles.js
//------------------------------------------------------------------------------
// IPS JS: Sytlistic effects
// (c) 2008 Invision Power Services, Inc.
// http://www.invisionpower.com
// Dan Cryer - 8th September 08
//------------------------------------------------------------------------------

document.observe("dom:loaded",function() 
{
	doStriping();	
	resizeContent.defer();
});

function doStriping( )
{
	var TBL_ALT_ON  = 'acp-row-on';
	var TBL_ALT_OFF = 'acp-row-off';
	var TBL_ALT_RED = 'acp-row-red';
	var TBL_ALT_AMB = 'acp-row-amber';
	
	var ROW_ON_OFF  = true;
	
	$$('#main_content table.alternate_rows > tr, #main_content table.alternate_rows tbody > tr, .alternate_rows > li, .alternate_rows_force').each(function(tblRow) 
	{
		$(tblRow).removeClassName(TBL_ALT_ON);
		$(tblRow).removeClassName(TBL_ALT_OFF);

		if(ROW_ON_OFF)
		{
			 ROW_ON_OFF = false;
			 $(tblRow).addClassName(TBL_ALT_ON);
		}
		else
		{
			 ROW_ON_OFF = true;
			 $(tblRow).addClassName(TBL_ALT_OFF);
		}
		
		if ( $(tblRow).hasClassName('_red') )
		{
			$(tblRow).removeClassName(TBL_ALT_AMB);
			$(tblRow).removeClassName(TBL_ALT_ON);
			$(tblRow).removeClassName(TBL_ALT_OFF);
			
			$(tblRow).addClassName(TBL_ALT_RED);
		}
		else if ( $(tblRow).hasClassName('_amber') )
		{
			$(tblRow).removeClassName(TBL_ALT_RED);
			$(tblRow).removeClassName(TBL_ALT_ON);
			$(tblRow).removeClassName(TBL_ALT_OFF);
			
			$(tblRow).addClassName(TBL_ALT_AMB);
		}
	});	
}

function resizeContent()
{
	if( $('section_navigation') && $('main_content') )
	{
		var navSize = $('section_navigation').getHeight();
		var contentSize = $('main_content').getHeight();
		
		if( navSize > contentSize )
		{
			var height = navSize + 50;
			$('main_content').setStyle('min-height: ' + height + 'px;');
			
			
			if( $('copyright') )
			{
				$('copyright').setStyle('bottom: 0px;');
			}
		}
	}
}