wide/views/playground/index.html

130 lines
8.3 KiB
HTML
Raw Normal View History

2015-02-13 04:59:51 +03:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{.i18n.wide}} - {{.i18n.wide_title}}</title>
<meta name="keywords" content="Wide, Golang, IDE, Team, Cloud, B3log, Playground"/>
2019-05-17 04:32:03 +03:00
<meta name="description" content="A Web-based Go IDE , do your development anytime, anywrhere."/>
2015-02-13 04:59:51 +03:00
<meta name="author" content="B3log">
2019-05-17 04:27:22 +03:00
<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/fold/foldgutter.css">
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/dialog/dialog.css">
2019-05-16 19:41:52 +03:00
<link rel="stylesheet" href="{{$.conf.Server}}/static/js/overwrite/codemirror/theme/wide.css?{{.conf.StaticResourceVersion}}">
2019-05-17 04:27:22 +03:00
<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/wide.css?{{.conf.StaticResourceVersion}}">
<link rel="stylesheet" href="/static/css/about.css?{{.conf.StaticResourceVersion}}">
<link rel="stylesheet" href="/static/css/themes/default.css?{{.conf.StaticResourceVersion}}">
<link rel="stylesheet" href="/static/css/sign.css?{{.conf.StaticResourceVersion}}">
<link rel="stylesheet" href="/static/css/side.css?{{.conf.StaticResourceVersion}}">
<link rel="stylesheet" href="/static/css/playground.css?{{.conf.StaticResourceVersion}}">
2015-02-13 04:59:51 +03:00
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
</head>
<body>
2015-02-13 19:00:38 +03:00
<div class="header menu fn-clear">
<ul class="fn-left">
<li>
2015-02-14 12:49:21 +03:00
<a href="/" target="_blank">
2019-05-17 05:25:11 +03:00
<img title="A Web-based Go IDE" src="/static/images/wide-logo.png" class="logo"/></a>
2015-02-13 19:00:38 +03:00
</li>
<li>
2015-02-15 08:42:29 +03:00
<button class="btn" id="run" onclick="playground.run();">{{.i18n.run}}</button>
2015-02-13 19:00:38 +03:00
</li>
2015-02-14 12:49:21 +03:00
<li>
2015-02-15 08:42:29 +03:00
<button class="btn btn-red" id="Format" onclick="playground.format();">{{.i18n.format}}</button>
2015-02-14 12:49:21 +03:00
</li>
2015-02-13 19:00:38 +03:00
<li>
2015-02-15 08:42:29 +03:00
<button class="btn btn-red" id="stop" onclick="playground.stop();">{{.i18n.stop}}</button>
2015-02-13 19:00:38 +03:00
</li>
<li>
2015-02-15 08:53:02 +03:00
<button class="btn-white btn" id="share" onclick="playground.share();">{{.i18n.share}}</button>
2015-02-13 19:00:38 +03:00
</li>
</ul>
<div class="fn-right">
2015-02-14 15:38:33 +03:00
<span class="font-ico ico-about" onclick='$("#dialogAbout").dialog("open");'></span> &nbsp;
2015-02-13 19:00:38 +03:00
<span class="font-ico ico-share"></span> &nbsp;
<span onclick="window.open('https://github.com/b3log/wide')"
class="font-ico ico-github"></span>&nbsp;
2015-02-14 12:49:21 +03:00
<div class="share-panel frame" style="display: none;">
2015-02-13 19:00:38 +03:00
<span title="Email" class="font-ico ico-email"></span>
<span title="Twitter" class="font-ico ico-twitter"></span>
<span title="Facebook" class="font-ico ico-facebook"></span>
<span title="G+" class="font-ico ico-googleplus"></span>
<span title="微博" class="font-ico ico-weibo"></span>
2018-10-05 16:04:40 +03:00
<span title="QQ空间" class="font-ico ico-qqz"></span>
2015-02-13 19:00:38 +03:00
</div>
</div>
2015-02-13 04:59:51 +03:00
</div>
2015-02-13 19:00:38 +03:00
<div class="fn-clear">
2016-10-29 18:30:09 +03:00
<div class="fn-left" id="editorDivWrap">
<div id="editorDiv">
<textarea rows="20" id='editor' class="fn-none">{{.code}}</textarea>
</div>
<textarea id="output" rows="20" readonly="readonly" ></textarea>
2015-02-13 19:00:38 +03:00
</div>
2016-10-29 18:30:09 +03:00
<div class="fn-right" id="goNews"></div>
2015-02-13 19:00:38 +03:00
</div>
<div class="footer">
2015-03-23 12:55:15 +03:00
<span class="wrapper">
2018-03-12 07:28:33 +03:00
Ver {{.ver}}, &copy; {{.year}} <a rel="copyright" href="https://b3log.org" target="_blank">B3LOG.ORG</a>, <a href="https://github.com/b3log/wide/blob/master/TERMS.md" target="_blank">{{.i18n.terms}}</a>
2015-03-23 12:55:15 +03:00
</span>
2015-03-23 16:15:21 +03:00
<div class="github-btns">
<iframe src="https://ghbtns.com/github-btn.html?user=b3log&repo=wide&type=star&count=true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
</div>
2015-02-13 04:59:51 +03:00
</div>
2015-02-14 15:38:33 +03:00
<div id="dialogAbout" class="fn-none"></div>
2015-02-16 09:24:33 +03:00
<div id="dialogShare" class="fn-none"></div>
2015-02-14 15:38:33 +03:00
<script>
2019-05-17 08:04:56 +03:00
var channelScheme = -1 < window.location.protocol.indexOf("https") ? "wss":"ws";
2019-05-17 06:25:44 +03:00
var channel = channelScheme + "://" + window.location.hostname + ":" + window.location.port;
2015-02-14 15:38:33 +03:00
var config = {
2019-05-17 04:27:22 +03:00
"channel": channel,
2015-09-27 02:36:34 +03:00
"wideSessionId": "{{.sid}}",
2015-02-20 04:42:05 +03:00
"label": {{.i18n}},
2016-10-29 18:30:09 +03:00
"autocomplete": {{.conf.Autocomplete}}
2015-02-14 15:38:33 +03:00
};
function newWideRequest() {
2016-10-29 18:30:09 +03:00
var ret = {
sid: config.wideSessionId
};
2015-02-14 15:38:33 +03:00
return ret;
}
2015-02-13 04:59:51 +03:00
</script>
2019-05-17 05:25:11 +03:00
<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>
2015-02-13 04:59:51 +03:00
2019-05-17 05:25:11 +03:00
<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" src="/static/js/overwrite/codemirror/addon/hint/show-hint.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/display/rulers.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/matchbrackets.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/searchcursor.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/dialog/dialog.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/fold/foldcode.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/fold/brace-fold.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/mode/loadmode.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>
2015-02-13 04:59:51 +03:00
2019-05-17 05:25:11 +03:00
<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/playground.js?{{.conf.StaticResourceVersion}}"></script>
2015-02-13 04:59:51 +03:00
</body>
</html>