-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·218 lines (175 loc) · 6.28 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LiteIDE X</title>
<link rel="shortcut icon" href="/assets/media/liteide.ico">
<meta name="author" content="visualfc">
<link href="/assets/twitter/stylesheets/bootstrap.min.css" type="text/css" rel="stylesheet" media="all">
<link href="/assets/twitter/stylesheets/style.css" type="text/css" rel="stylesheet" media="all">
<script src="/assets/twitter/javascripts/default.js"></script>
<script src="/assets/twitter/javascripts/jquery.min.js"></script>
<script src="/assets/twitter/javascripts/bootstrap.min.js"></script>
<link href="/assets/twitter/widgets/google_prettify/stylesheets/twitter-bootstrap-fixed.css" type="text/css" rel="stylesheet" media="all">
<script type="text/javascript">
$(document).ready(function(){
Init();
});
function Init(){
var currentPath = location.pathname;
if (currentPath.indexOf("/cn/") >= 0){
setCookie("LITEIDE_LANGUAGE", "cn", 7);
} else if (currentPath.indexOf("/en/") >= 0){
setCookie("LITEIDE_LANGUAGE", "en", 7);
}
}
function Go(obj){
var url = obj.getAttribute("url");
var lang = getCookie("LITEIDE_LANGUAGE");
if (lang == "cn"){
window.location.href = "/cn/" + url;
return;
}
window.location.href = "/en/" + url;
}
function GoHome(obj){
var url = obj.getAttribute("url");
setCookie("LITEIDE_LANGUAGE", url, 7);
location.href = "/" + url + "/";
}
</script>
</head>
<body>
<!-- navbar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<ul class="nav navbar-nav">
<li><a href="javascript:void(0);" onclick="Go(this)" url="" class="logo"></a></li>
<li><a href="javascript:void(0);" onclick="Go(this)" url="" class="brand">Home</a></li>
<li><a href="javascript:void(0);" onclick="Go(this)" url="liteide">LiteIDE X</a></li>
<li><a href="javascript:void(0);" onclick="Go(this)" url="documents">Documents</a></li>
<li><a href="javascript:void(0);" onclick="Go(this)" url="download">Download</a></li>
<li><a href="javascript:void(0);" onclick="Go(this)" url="blog">Blog</a></li>
<li><a href="javascript:void(0);" onclick="Go(this)" url="about">About</a></li>
</ul>
<ul class="nav navbar-nav right">
<li class="dropdown">
<a href="/cn" class="dropdown-toggle" data-toggle="dropdown">
Language
</a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);" onclick="GoHome(this)" url="cn">简体中文</a></li>
<li><a href="javascript:void(0);" onclick="GoHome(this)" url="en">English</a></li>
</ul>
</li>
<li><a href="https://visualfc.github.io/support/" target="_blank">Donate</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="page-header">
<h1>LiteIDE X </h1>
</div>
<div class="row">
<div class="span12">
<script type="text/javascript">
$(document).ready(function(){
Home();
});
function Home(){
var enUrl = "/en/";
var cnUrl = "/cn/";
// 优先cookie中用户设定的语言
var lang = getCookie("LITEIDE_LANGUAGE");
if (lang != null && lang != ""){
if (lang == "cn"){
window.location.href = cnUrl;
return;
} else if (lang == "en"){
window.location.href = enUrl;
return;
}
}
// 然后根据浏览器的语言跳转
var type = navigator.appName;
if (type == "Netscape"){
lang = navigator.language.toLowerCase();
} else {
lang = navigator.userLanguage.toLowerCase();
}
// 取得浏览器语言的前两个字母
lang = lang.substr(0,2);
if (lang == "zh"){
window.location.href = cnUrl;
return;
} else {
window.location.href = enUrl;
return;
}
}
</script>
<img src="/assets/media/liteide.png"/>
<p></p>
<p>LiteIDE is a simple, open source, cross-platform Go IDE. </p>
<h2>Links</h2>
<ul>
<li>LiteIDE Source code <a href="https://github.com/visualfc/liteide">https://github.com/visualfc/liteide</a></li>
<li>Gotools Source code <a href="https://github.com/visualfc/gotools">https://github.com/visualfc/gotools</a></li>
<li>Release downloads
<ul>
<li>
<a href="http://sourceforge.net/projects/liteide/files">
http://sourceforge.net/projects/liteide/files
</a>
</li>
<li>
<a href="https://github.com/visualfc/liteide/releases/latest">
https://github.com/visualfc/liteide/releases/latest
</a>
</li>
</ul>
</li>
<li>Google group <a href="https://groups.google.com/group/liteide-dev">https://groups.google.com/group/liteide-dev</a></li>
</ul>
<h2>Quick Start</h2>
<ul>
<li> <a href="/en/doc/install">How to install</a> </li>
<div class="more"> <a href="/en/Documents" class="btn">Read more</a> </div>
</ul>
</div>
</div>
</div>
<footer>
<p>
© 2011-2017 visualfc <a href="http://github.com/visualfc/liteide" target="_blank" title="LiteIDE">LiteIDE X</a>
<p>
<p>
Thanks to <a href="http://hopehook.com/" target="_blank">HopeHook</a>
</p>
</footer>
</div>
<script src="//cdnjscn.b0.upaiyun.com/libs/prettify/r298/prettify.min.js"></script>
<script>
var pres = document.getElementsByTagName("pre");
for (var i=0; i < pres.length; ++i) {
pres[i].className = "prettyprint linenums";
}
prettyPrint();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-123-12']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>