Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
431 ddelon 1
<!--
2
 * FCKeditor - The text editor for internet
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
4
 *
5
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 *
8
 * For further information visit:
9
 * 		http://www.fckeditor.net/
10
 *
521 ddelon 11
 * "Support Open Source software. What about a donation today?"
12
 *
431 ddelon 13
 * File Name: fckdebug.html
14
 * 	This is the Debug window.
15
 * 	It automatically popups if the Debug = true in the configuration file.
16
 *
17
 * File Authors:
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
19
-->
20
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
21
<html>
22
	<head>
23
		<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
24
		<title>FCKeditor Debug Window</title>
25
		<script type="text/javascript">
26
 
27
var oWindow ;
28
var oDiv ;
29
 
30
if ( !window.FCKMessages )
31
	window.FCKMessages = new Array() ;
32
 
33
function Initialize()
34
{
35
	oWindow = window.frames[ 'eOutput' ]
36
	oWindow.document.open() ;
521 ddelon 37
	oWindow.document.write( '<div id="divMsg"><\/div>' ) ;
431 ddelon 38
	oWindow.document.close() ;
39
	oDiv	= oWindow.document.getElementById('divMsg') ;
40
}
41
 
42
function Output( message, color )
43
{
44
	if ( color )
521 ddelon 45
		message = '<font color="' + color + '">' + message + '<\/font>' ;
431 ddelon 46
 
47
	window.FCKMessages[ window.FCKMessages.length ] = message ;
48
	StartTimer() ;
49
}
50
 
51
function StartTimer()
52
{
53
	window.setTimeout( 'CheckMessages()', 100 ) ;
54
}
55
 
56
function CheckMessages()
57
{
58
	if ( window.FCKMessages.length > 0 )
59
	{
60
		// Get the first item in the queue
61
		var sMessage = window.FCKMessages[0] ;
62
 
63
		// Removes the first item from the queue
64
		var oTempArray = new Array() ;
65
		for ( i = 1 ; i < window.FCKMessages.length ; i++ )
66
			oTempArray[ i - 1 ] = window.FCKMessages[ i ] ;
67
		window.FCKMessages = oTempArray ;
68
 
69
		var d = new Date() ;
70
		var sTime =
71
			( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' +
72
			( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' +
73
			( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' +
74
			( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ;
75
 
76
		var oMsgDiv = oWindow.document.createElement( 'div' ) ;
521 ddelon 77
		oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ;
431 ddelon 78
		oDiv.appendChild( oMsgDiv ) ;
79
		oMsgDiv.scrollIntoView() ;
80
	}
81
}
82
 
83
function Clear()
84
{
85
	oDiv.innerHTML = '' ;
86
}
87
		</script>
88
	</head>
89
	<body onload="Initialize();" bottomMargin="10" leftMargin="10" topMargin="10" rightMargin="10">
90
		<TABLE height="100%" cellSpacing="5" cellPadding="0" width="100%" border="0">
91
			<TR>
92
				<TD>
93
					<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
94
						<TR>
95
							<TD><FONT size="+2"><STRONG>FCKeditor Debug Window</STRONG></FONT></TD>
96
							<TD align="right"><INPUT type="button" value="Clear" onclick="Clear();"></TD>
97
						</TR>
98
					</TABLE>
99
				</TD>
100
			</TR>
101
			<TR>
102
				<TD height="100%" style="BORDER-RIGHT: #696969 1px solid; BORDER-TOP: #696969 1px solid; BORDER-LEFT: #696969 1px solid; BORDER-BOTTOM: #696969 1px solid">
103
					<iframe id="eOutput" name="eOutput" width="100%" height="100%" scrolling="auto" src="fckblank.html" frameborder="no"></iframe>
104
				</TD>
105
			</TR>
106
		</TABLE>
107
	</body>
108
</html>