-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathhopwatch_html.go
53 lines (50 loc) · 1.5 KB
/
hopwatch_html.go
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
// Copyright 2012+ ernestmicklei.com. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package hopwatch
import (
"io"
"net/http"
)
func html(w http.ResponseWriter, req *http.Request) {
io.WriteString(w,
`<!DOCTYPE html>
<meta charset="utf-8" />
<title>Hopwatch Debugger</title>
<head>
<link href="hopwatch.css" rel="stylesheet" type="text/css" >
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="hopwatch.js" ></script>
</head>
<body>
<div id="header">
<div class="container wide">
<div id="heading">
<a href="/hopwatch.html">Hopwatch - debugging tool</a>
</div>
<div id="menu">
<a id="resume" class="buttonDisabled" href="javascript:actionResume();">F8 - Resume</a>
<a id="disconnect" class="buttonDisabled" href="javascript:actionDisconnect();">Disconnect</a>
<a class="buttonEnabled" href="http://godoc.org/github.com/emicklei/hopwatch" target="_blank">About</a>
</div>
</div>
</div>
<div id="content">
<div id="log-pane">
<div id="output"></div>
</div>
<div id="gosource-pane">
<div id="gofile" class="mono ">somefile.go</div>
<div id="nrs" class="mono"></div>
<div id="gosource" class="mono">
</div>
</div>
</div>
<div id="footer">
© 2012-2022. <a href="http://github.com/emicklei/hopwatch" target="_blank">hopwatch on github.com</a>
</div>
</body>
</html>
`)
return
}