|
|
@ -1,6 +1,6 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>{{.i18n.wide}} - {{.i18n.wide_title}}</title>
|
|
|
|
<title>{{.i18n.wide}} - {{.i18n.wide_title}}</title>
|
|
|
|
|
|
|
|
|
|
|
@ -8,11 +8,13 @@
|
|
|
|
<meta name="description" content="A Web-based Go IDE , do your development anytime, anywhere."/>
|
|
|
|
<meta name="description" content="A Web-based Go IDE , do your development anytime, anywhere."/>
|
|
|
|
<meta name="author" content="B3log">
|
|
|
|
<meta name="author" content="B3log">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/codemirror.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet"
|
|
|
|
|
|
|
|
href="/static/js/lib/codemirror-{{.codeMirrorVer}}/codemirror.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/hint/show-hint.css">
|
|
|
|
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/hint/show-hint.css">
|
|
|
|
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldgutter.css">
|
|
|
|
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldgutter.css">
|
|
|
|
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/dialog/dialog.css">
|
|
|
|
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/dialog/dialog.css">
|
|
|
|
<link rel="stylesheet" href="{{$.conf.Server}}/static/js/overwrite/codemirror/theme/wide.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet"
|
|
|
|
|
|
|
|
href="{{$.conf.Server}}/static/js/overwrite/codemirror/theme/wide.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="/static/css/dialog.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet" href="/static/css/dialog.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet" href="/static/css/base.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet" href="/static/css/base.css?{{.conf.StaticResourceVersion}}">
|
|
|
@ -23,13 +25,13 @@
|
|
|
|
<link rel="stylesheet" href="/static/css/side.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet" href="/static/css/side.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet" href="/static/css/playground.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
<link rel="stylesheet" href="/static/css/playground.css?{{.conf.StaticResourceVersion}}">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
|
|
|
|
{{if ne "" .conf.SiteStatCode}}
|
|
|
|
{{if ne "" .conf.SiteStatCode}}
|
|
|
|
{{.conf.SiteStatCode}}
|
|
|
|
{{.conf.SiteStatCode}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<div class="header menu fn-clear">
|
|
|
|
<div class="header menu fn-clear">
|
|
|
|
<ul class="fn-left">
|
|
|
|
<ul class="fn-left">
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<a href="/" target="_blank">
|
|
|
|
<a href="/" target="_blank">
|
|
|
@ -47,6 +49,11 @@
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<button class="btn-white btn" id="share" onclick="playground.share();">{{.i18n.share}}</button>
|
|
|
|
<button class="btn-white btn" id="share" onclick="playground.share();">{{.i18n.share}}</button>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<button class="btn btn-blue" onclick="window.open('https://hacpai.com/sponsor')">
|
|
|
|
|
|
|
|
{{.i18n.sponsor}}
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<div class="fn-right">
|
|
|
|
<div class="fn-right">
|
|
|
|
<span class="font-ico ico-about" onclick='$("#dialogAbout").dialog("open");'></span>
|
|
|
|
<span class="font-ico ico-about" onclick='$("#dialogAbout").dialog("open");'></span>
|
|
|
@ -61,8 +68,8 @@
|
|
|
|
<span title="QQ空间" class="font-ico ico-qqz"></span>
|
|
|
|
<span title="QQ空间" class="font-ico ico-qqz"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="fn-clear">
|
|
|
|
<div class="fn-clear">
|
|
|
|
<div class="fn-left" id="editorDivWrap">
|
|
|
|
<div class="fn-left" id="editorDivWrap">
|
|
|
|
<div id="editorDiv">
|
|
|
|
<div id="editorDiv">
|
|
|
|
<textarea rows="20" id='editor' class="fn-none">{{.code}}</textarea>
|
|
|
|
<textarea rows="20" id='editor' class="fn-none">{{.code}}</textarea>
|
|
|
@ -72,16 +79,17 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="fn-right" id="goNews"></div>
|
|
|
|
<div class="fn-right" id="goNews"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
<div class="footer">
|
|
|
|
<span class="wrapper">
|
|
|
|
<span class="wrapper">
|
|
|
|
Ver {{.ver}}, © {{.year}} <a rel="copyright" href="https://b3log.org" target="_blank">B3log 开源</a>
|
|
|
|
Ver {{.ver}}, © {{.year}} <a rel="copyright" href="https://b3log.org"
|
|
|
|
|
|
|
|
target="_blank">B3log 开源</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="dialogAbout" class="fn-none"></div>
|
|
|
|
<div id="dialogAbout" class="fn-none"></div>
|
|
|
|
<div id="dialogShare" class="fn-none"></div>
|
|
|
|
<div id="dialogShare" class="fn-none"></div>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
var channelScheme = -1 < window.location.protocol.indexOf("https") ? "wss":"ws";
|
|
|
|
var channelScheme = -1 < window.location.protocol.indexOf("https") ? "wss":"ws";
|
|
|
|
var channel = channelScheme + "://" + window.location.hostname + ":" + window.location.port;
|
|
|
|
var channel = channelScheme + "://" + window.location.hostname + ":" + window.location.port;
|
|
|
|
var config = {
|
|
|
|
var config = {
|
|
|
@ -97,34 +105,36 @@
|
|
|
|
return ret;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/static/js/lib/jquery-2.1.1.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/jquery-2.1.1.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/reconnecting-websocket.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/reconnecting-websocket.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/Autolinker.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/Autolinker.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/codemirror.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/codemirror.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/selection/active-line.js"></script>
|
|
|
|
<script type="text/javascript"
|
|
|
|
<script type="text/javascript" src="/static/js/overwrite/codemirror/addon/hint/show-hint.js"></script>
|
|
|
|
src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/selection/active-line.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/hint/anyword-hint.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/overwrite/codemirror/addon/hint/show-hint.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/display/rulers.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/hint/anyword-hint.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/edit/closebrackets.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/display/rulers.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/edit/matchbrackets.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/edit/closebrackets.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/edit/closetag.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/edit/matchbrackets.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/search/searchcursor.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/edit/closetag.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/search/search.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/search/searchcursor.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/dialog/dialog.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/search/search.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/search/match-highlighter.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/dialog/dialog.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldcode.js"></script>
|
|
|
|
<script type="text/javascript"
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldgutter.js"></script>
|
|
|
|
src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/search/match-highlighter.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/brace-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldcode.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/comment-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldgutter.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/mode/loadmode.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/brace-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/comment/comment.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/comment-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/mode/meta.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/mode/loadmode.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/mode/go/go.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/comment/comment.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/mode/meta.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/static/js/lib/codemirror-{{.codeMirrorVer}}/mode/go/go.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/static/js/dialog.js?{{.conf.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/dialog.js?{{.conf.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/menu.js?{{.conf.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/menu.js?{{.conf.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/playground.js?{{.conf.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/playground.js?{{.conf.StaticResourceVersion}}"></script>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|