source: trunk/admin/inc/FCKeditor/editor/fckdebug.html@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 2.9 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!--
3 * FCKeditor - The text editor for internet
4 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
5 *
6 * Licensed under the terms of the GNU Lesser General Public License:
7 * http://www.opensource.org/licenses/lgpl-license.php
8 *
9 * For further information visit:
10 * http://www.fckeditor.net/
11 *
12 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: fckdebug.html
15 * This is the Debug window.
16 * It automatically popups if the Debug = true in the configuration file.
17 *
18 * File Authors:
19 * Frederico Caldeira Knabben (fredck@fckeditor.net)
20-->
21<html xmlns="http://www.w3.org/1999/xhtml">
22<head>
23 <title>FCKeditor Debug Window</title>
24 <meta name="robots" content="noindex, nofollow" />
25 <script type="text/javascript">
26
27var oWindow ;
28var oDiv ;
29
30if ( !window.FCKMessages )
31 window.FCKMessages = new Array() ;
32
33window.onload = function()
34{
35 oWindow = document.getElementById('xOutput').contentWindow ;
36 oWindow.document.open() ;
37 oWindow.document.write( '<div id="divMsg"><\/div>' ) ;
38 oWindow.document.close() ;
39 oDiv = oWindow.document.getElementById('divMsg') ;
40}
41
42function Output( message, color )
43{
44 if ( color )
45 message = '<font color="' + color + '">' + message + '<\/font>' ;
46
47 window.FCKMessages[ window.FCKMessages.length ] = message ;
48 StartTimer() ;
49}
50
51function StartTimer()
52{
53 window.setTimeout( 'CheckMessages()', 100 ) ;
54}
55
56function 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' ) ;
77 oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ;
78 oDiv.appendChild( oMsgDiv ) ;
79 oMsgDiv.scrollIntoView() ;
80 }
81}
82
83function Clear()
84{
85 oDiv.innerHTML = '' ;
86}
87 </script>
88</head>
89<body style="margin: 10px">
90 <table style="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 style="font-weight: bold; font-size: 1.2em;">
96 FCKeditor Debug Window</td>
97 <td align="right">
98 <input type="button" value="Clear" onclick="Clear();" /></td>
99 </tr>
100 </table>
101 </td>
102 </tr>
103 <tr style="height: 100%">
104 <td style="border: #696969 1px solid">
105 <iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="fckblank.html"
106 frameborder="0"></iframe>
107 </td>
108 </tr>
109 </table>
110</body>
111</html>
Note: See TracBrowser for help on using the repository browser.