Skip to content

Commit d30fbaa

Browse files
committed
fixed issue #430
1 parent 955bf65 commit d30fbaa

File tree

3 files changed

+31
-358
lines changed

3 files changed

+31
-358
lines changed

repo/src/main/resources/index.html

Lines changed: 31 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,36 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
3-
<title>GWT Eclilpse Plugin</title>
4-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5-
<style>@import url("web/site.css");</style>
6-
<script type="text/javascript">
7-
var returnval = 0;
8-
var stylesheet, xmlFile, cache, doc;
9-
function init(){
10-
// NSCP 7.1+ / Mozilla 1.4.1+ / Safari
11-
// Use the standard DOM Level 2 technique, if it is supported
12-
if (document.implementation && document.implementation.createDocument) {
13-
xmlFile = document.implementation.createDocument("", "", null);
14-
stylesheet = document.implementation.createDocument("", "", null);
15-
if (xmlFile.load){
16-
xmlFile.load("site.xml");
17-
stylesheet.load("web/site.xsl");
18-
} else {
19-
alert("Document could not be loaded by browser.");
20-
}
21-
xmlFile.addEventListener("load", transform, false);
22-
stylesheet.addEventListener("load", transform, false);
23-
}
24-
//IE 6.0+ solution
25-
else if (window.ActiveXObject) {
26-
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
27-
xmlFile.async = false;
28-
xmlFile.load("site.xml");
29-
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
30-
stylesheet.async = false;
31-
stylesheet.load("web/site.xsl");
32-
cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
33-
cache.stylesheet = stylesheet;
34-
transformData();
35-
}
36-
}
37-
// separate transformation function for IE 6.0+
38-
function transformData(){
39-
var processor = cache.createProcessor();
40-
processor.input = xmlFile;
41-
processor.transform();
42-
data.innerHTML = processor.output;
43-
}
44-
// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+
45-
function transform(){
46-
returnval+=1;
47-
if (returnval==2){
48-
var processor = new XSLTProcessor();
49-
processor.importStylesheet(stylesheet);
50-
doc = processor.transformToDocument(xmlFile);
51-
document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
52-
}
53-
}
54-
</script>
4+
<title>GWT Eclipse Plugin</title>
5+
<style>
6+
* {
7+
font-family: sans-serif;
8+
}
9+
a:link, a:visited , a:hover, a:active {
10+
color: #2020c0;
11+
}
12+
h1 {
13+
font-size: 1.5em;
14+
}
15+
h2 {
16+
font-size: 1.3em;
17+
margin-top: 0,5em;
18+
}
19+
</style>
5520
</head>
56-
<body onload="init();">
57-
<!--[insert static HTML here]-->
58-
<div id="data"><!-- this is where the transformed data goes --></div>
21+
<body>
22+
<h1>Welcome to the <b>GWT Eclipse Plugin</b> update site</h1>
23+
<p>
24+
This web page provides automatic distribution and updates for the <b>GWT Eclipse Plugin</b>.
25+
</p>
26+
<h2>Plugin installation</h2>
27+
<p>
28+
To install the plugin:
29+
<ol>
30+
<li> In Eclipse, click on <b> Help </b> -&gt; <b> Install New Software... </b> -&gt; <b> Add... </b>
31+
<li> (The &quot;<b>Add Repository</b>&quot; dialog will appear)
32+
<li> For &quot;<b>Name</b>&quot;, enter "GWT Plugin" or something similar
33+
<li> For &quot;<b>Location</b>&quot;, fill-in the URL of this web page
34+
</ol>
5935
</body>
6036
</html>

repo/src/main/resources/web/site.css

Lines changed: 0 additions & 12 deletions
This file was deleted.

repo/src/main/resources/web/site.xsl

Lines changed: 0 additions & 291 deletions
This file was deleted.

0 commit comments

Comments
 (0)