-
Notifications
You must be signed in to change notification settings - Fork 35
/
log.html
28 lines (22 loc) · 799 Bytes
/
log.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
<html><header><title>Swift Refactorator</title><style>
body, table { font: 9pt Arial; margin: 0px; border: 3px inset lightgrey; }
div { white-space: nowrap; }
span { float: left; width: 150px; overflow: hidden; background-color: lightgrey; }
a:link { color: black; }
</style><script>
function $(id) {
return id ? document.getElementById(id) : $('log')
}
function append( html ) {
var div = document.createElement("div")
div.innerHTML = html
$().appendChild(div);
scrollTo(0,1000000)
}
function showPatch( file, name, line, col, text ) {
append( "<span title='"+name+", line="+line+", col="+col+"'><a class=link href='"+file+"___"+line+"'>"+
name+"</a>:"+line+"</span> "+text.replace( / /g, " " ) )
}
</script></header>
<body>
<div id='log'></div>