Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed issue #430 #503

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 31 additions & 55 deletions repo/src/main/resources/index.html
Original file line number Diff line number Diff line change
@@ -1,60 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>GWT Eclilpse Plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>@import url("web/site.css");</style>
<script type="text/javascript">
var returnval = 0;
var stylesheet, xmlFile, cache, doc;
function init(){
// NSCP 7.1+ / Mozilla 1.4.1+ / Safari
// Use the standard DOM Level 2 technique, if it is supported
if (document.implementation && document.implementation.createDocument) {
xmlFile = document.implementation.createDocument("", "", null);
stylesheet = document.implementation.createDocument("", "", null);
if (xmlFile.load){
xmlFile.load("site.xml");
stylesheet.load("web/site.xsl");
} else {
alert("Document could not be loaded by browser.");
}
xmlFile.addEventListener("load", transform, false);
stylesheet.addEventListener("load", transform, false);
}
//IE 6.0+ solution
else if (window.ActiveXObject) {
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
xmlFile.async = false;
xmlFile.load("site.xml");
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
stylesheet.async = false;
stylesheet.load("web/site.xsl");
cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
cache.stylesheet = stylesheet;
transformData();
}
}
// separate transformation function for IE 6.0+
function transformData(){
var processor = cache.createProcessor();
processor.input = xmlFile;
processor.transform();
data.innerHTML = processor.output;
}
// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+
function transform(){
returnval+=1;
if (returnval==2){
var processor = new XSLTProcessor();
processor.importStylesheet(stylesheet);
doc = processor.transformToDocument(xmlFile);
document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
}
}
</script>
<title>GWT Eclipse Plugin</title>
<style>
* {
font-family: sans-serif;
}
a:link, a:visited , a:hover, a:active {
color: #2020c0;
}
h1 {
font-size: 1.5em;
}
h2 {
font-size: 1.3em;
margin-top: 0,5em;
}
</style>
</head>
<body onload="init();">
<!--[insert static HTML here]-->
<div id="data"><!-- this is where the transformed data goes --></div>
<body>
<h1>Welcome to the <b>GWT Eclipse Plugin</b> update site</h1>
<p>
This web page provides automatic distribution and updates for the <b>GWT Eclipse Plugin</b>.
</p>
<h2>Plugin installation</h2>
<p>
To install the plugin:
<ol>
<li> In Eclipse, click on <b> Help </b> -&gt; <b> Install New Software... </b> -&gt; <b> Add... </b>
<li> (The &quot;<b>Add Repository</b>&quot; dialog will appear)
<li> For &quot;<b>Name</b>&quot;, enter "GWT Plugin" or something similar
<li> For &quot;<b>Location</b>&quot;, fill-in the URL of this web page
</ol>
</body>
</html>
12 changes: 0 additions & 12 deletions repo/src/main/resources/web/site.css

This file was deleted.

291 changes: 0 additions & 291 deletions repo/src/main/resources/web/site.xsl

This file was deleted.

Loading