Subversion Repositories Applications.papyrus

Rev

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