-
Notifications
You must be signed in to change notification settings - Fork 0
/
trivantisdebug.html
78 lines (66 loc) · 2.08 KB
/
trivantisdebug.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Trivantis Debug</title>
<style text="text/css">
body { background-color:#ffffff; }
</style>
<script language = "JavaScript" src="trivantis.js"></script>
<script language = "JavaScript" src="trivantis-cookie.js"></script>
<script language = "JavaScript" src="trivantis-strings.js"></script>
<script language = "JavaScript">
onload = init
onunload = finish
function init() {
objDebug = new ObjLayer( 'debugDIV' )
objDebug.show();
if( opener && !opener.closed && opener.location ) {
var topWnd = findTrivLogMsg( opener, false );
if( topWnd ) {
topWnd.trivAddMsgFunc = addMsg;
if( topWnd.trivLogMsg ) topWnd.trivLogMsg();
}
}
}
function finish() {
if( opener && !opener.closed && opener.location ) {
var topWnd = findTrivLogMsg( opener );
topWnd.trivAddMsgFunc = null;
}
}
function doPrint() {
window.print()
return false;
}
function doClear() {
currMsg = ''
objDebug.write( '' )
return false;
}
var currMsg = ''
function addMsg( msg ) {
if( currMsg || msg ) {
if( currMsg.length ) currMsg += '<br />';
currMsg += msg;
objDebug.write( currMsg );
}
}
function doVariables() {
this.trivVarWnd = window.open('trivantisvar.html','TrivantisVar','width=500,height=400,menubar=0,scrollbars=1,toolbar=0,status=0;location=0');
}
</script>
</head>
<body>
<center>
<form name="debugform" id="debugform" onSubmit="return doSubmit();">
<script>
document.write('<input type="button" name="Clear" value="Clear" + onclick=doClear()> ');
document.write('<input type="button" name="Print" value="' + trivstrPrint + '" onclick=doPrint()> ');
document.write('<input type="button" name="Variables" value="' + trivstrVariables + '" onclick=doVariables()>');
</script>
</form>
</center>
<div name="debugDIV" id="debugDIV" style="width:100%; height:90%; overflow:auto; ">
</div>
</body>
</html>