forked from emicklei/hopwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hopwatch_html.go
50 lines (47 loc) · 1.41 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
// Copyright 2012 Ernest Micklei. 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.8.3/jquery.min.js" type="text/javascript"></script -->
<script type="text/javascript" src="hopwatch.js" ></script>
</head>
<body>
<div id="topbar">
<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://go.pkgdoc.org/github.com/emicklei/hopwatch">About</a>
</div>
</div>
</div>
<div id="page" class="wide">
<div id="watchlines">
<table id="output"></table>
</div>
<!-- div id="gosource-wrapper">
<pre id="gosource" />
</div -->
</div>
<div id="footer" style="float:left; width:100%">
© 2012. <a href="http://github.com/emicklei/hopwatch">hopwatch on github.com</a>
</div>
</body>
</html>
`)
return
}