add sponsor

This commit is contained in:
Van 2019-07-17 18:15:59 +08:00
parent 3cf3063e76
commit dd949ae6a3
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
8 changed files with 148 additions and 121 deletions

View File

@ -166,5 +166,6 @@
"download": "Download", "download": "Download",
"decompress": "Decompress", "decompress": "Decompress",
"keymap": "Keymap", "keymap": "Keymap",
"resize": "Resize" "resize": "Resize",
"sponsor": "Sponsor"
} }

View File

@ -166,5 +166,6 @@
"download": "ダウンロード", "download": "ダウンロード",
"decompress": "解凍する", "decompress": "解凍する",
"keymap": "キーマップ", "keymap": "キーマップ",
"resize": "サイズ変更" "resize": "サイズ変更",
"sponsor": "スポンサー"
} }

View File

@ -166,5 +166,6 @@
"download": "다운로드", "download": "다운로드",
"decompress": "압축풀기", "decompress": "압축풀기",
"keymap": "단축키", "keymap": "단축키",
"resize": "크기조절" "resize": "크기조절",
"sponsor": "후원사"
} }

View File

@ -166,5 +166,6 @@
"download": "下载", "download": "下载",
"decompress": "解压缩", "decompress": "解压缩",
"keymap": "快捷键", "keymap": "快捷键",
"resize": "调整大小" "resize": "调整大小",
"sponsor": "赞助"
} }

View File

@ -166,5 +166,6 @@
"download": "下載", "download": "下載",
"decompress": "解壓縮", "decompress": "解壓縮",
"keymap": "快速鍵", "keymap": "快速鍵",
"resize": "調整大小" "resize": "調整大小",
"sponsor": "贊助"
} }

View File

@ -127,6 +127,14 @@ body {
box-shadow: 0 0 0 0.2em rgba(40, 167, 69, .3); box-shadow: 0 0 0 0.2em rgba(40, 167, 69, .3);
} }
.btn-blue {
background-color: #4285f4;
}
.btn-blue:hover {
background-color: #2a75f3;
}
.btn.btn-white, .btn.btn-white,
.btn.btn-red { .btn.btn-red {
color: #333; color: #333;

View File

@ -325,6 +325,10 @@
<span class="font-ico ico-about"></span> <span class="font-ico ico-about"></span>
<span>{{.i18n.about}}</span> <span>{{.i18n.about}}</span>
</li> </li>
<li onclick="window.open('https://hacpai.com/sponsor')">
<span class="space"></span>
<span>{{.i18n.sponsor}}</span>
</li>
</ul> </ul>
</div> </div>
</li> </li>

View File

@ -1,130 +1,140 @@
<!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>
<meta name="keywords" content="Wide, Golang, IDE, Cloud, B3log, Playground"/> <meta name="keywords" content="Wide, Golang, IDE, Cloud, B3log, Playground"/>
<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"
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/hint/show-hint.css"> href="/static/js/lib/codemirror-{{.codeMirrorVer}}/codemirror.css?{{.conf.StaticResourceVersion}}">
<link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldgutter.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/dialog/dialog.css"> <link rel="stylesheet" href="/static/js/lib/codemirror-{{.codeMirrorVer}}/addon/fold/foldgutter.css">
<link rel="stylesheet" href="{{$.conf.Server}}/static/js/overwrite/codemirror/theme/wide.css?{{.conf.StaticResourceVersion}}"> <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="/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}}">
<link rel="stylesheet" href="/static/css/wide.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/about.css?{{.conf.StaticResourceVersion}}">
<link rel="stylesheet" href="/static/css/themes/default.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/sign.css?{{.conf.StaticResourceVersion}}">
<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">
<img title="A Web-based Go IDE" src="/static/images/wide-logo.png" class="logo"/></a> <img title="A Web-based Go IDE" src="/static/images/wide-logo.png" class="logo"/></a>
</li> </li>
<li> <li>
<button class="btn" id="run" onclick="playground.run();">{{.i18n.run}}</button> <button class="btn" id="run" onclick="playground.run();">{{.i18n.run}}</button>
</li> </li>
<li> <li>
<button class="btn btn-red" id="Format" onclick="playground.format();">{{.i18n.format}}</button> <button class="btn btn-red" id="Format" onclick="playground.format();">{{.i18n.format}}</button>
</li> </li>
<li> <li>
<button class="btn btn-red" id="stop" onclick="playground.stop();">{{.i18n.stop}}</button> <button class="btn btn-red" id="stop" onclick="playground.stop();">{{.i18n.stop}}</button>
</li> </li>
<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>
</ul> <li>
<div class="fn-right"> <button class="btn btn-blue" onclick="window.open('https://hacpai.com/sponsor')">
<span class="font-ico ico-about" onclick='$("#dialogAbout").dialog("open");'></span> &nbsp; {{.i18n.sponsor}}
<span class="font-ico ico-share"></span> &nbsp; </button>
<span onclick="window.open('https://github.com/b3log/wide')" </li>
class="font-ico ico-github"></span>&nbsp; </ul>
<div class="share-panel frame" style="display: none;"> <div class="fn-right">
<span title="Email" class="font-ico ico-email"></span> <span class="font-ico ico-about" onclick='$("#dialogAbout").dialog("open");'></span> &nbsp;
<span title="Twitter" class="font-ico ico-twitter"></span> <span class="font-ico ico-share"></span> &nbsp;
<span title="Facebook" class="font-ico ico-facebook"></span> <span onclick="window.open('https://github.com/b3log/wide')"
<span title="微博" class="font-ico ico-weibo"></span> class="font-ico ico-github"></span>&nbsp;
<span title="QQ空间" class="font-ico ico-qqz"></span> <div class="share-panel frame" style="display: none;">
</div> <span title="Email" class="font-ico ico-email"></span>
</div> <span title="Twitter" class="font-ico ico-twitter"></span>
<span title="Facebook" class="font-ico ico-facebook"></span>
<span title="微博" class="font-ico ico-weibo"></span>
<span title="QQ空间" class="font-ico ico-qqz"></span>
</div> </div>
<div class="fn-clear"> </div>
<div class="fn-left" id="editorDivWrap"> </div>
<div id="editorDiv"> <div class="fn-clear">
<textarea rows="20" id='editor' class="fn-none">{{.code}}</textarea> <div class="fn-left" id="editorDivWrap">
</div> <div id="editorDiv">
<div class="bottom-window-group"> <textarea rows="20" id='editor' class="fn-none">{{.code}}</textarea>
<div id="output" class="output"></div>
</div>
</div>
<div class="fn-right" id="goNews"></div>
</div> </div>
<div class="footer"> <div class="bottom-window-group">
<span class="wrapper"> <div id="output" class="output"></div>
Ver {{.ver}}, &copy; {{.year}}&nbsp;<a rel="copyright" href="https://b3log.org" target="_blank">B3log 开源</a>
</span>
</div> </div>
</div>
<div class="fn-right" id="goNews"></div>
</div>
<div class="footer">
<span class="wrapper">
Ver {{.ver}}, &copy; {{.year}}&nbsp;<a rel="copyright" href="https://b3log.org"
target="_blank">B3log 开源</a>
</span>
</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 = {
"channel": channel, "channel": channel,
"wideSessionId": "{{.sid}}", "wideSessionId": "{{.sid}}",
"label": {{.i18n}}, "label": {{.i18n}},
"autocomplete": {{.conf.Autocomplete}} "autocomplete": {{.conf.Autocomplete}}
}; };
function newWideRequest() { function newWideRequest() {
var ret = { var ret = {
sid: config.wideSessionId sid: config.wideSessionId
}; };
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>