Skip to content

Commit

Permalink
fixed issue gwt-plugins#430
Browse files Browse the repository at this point in the history
  • Loading branch information
keinhaar committed Nov 18, 2024
1 parent 955bf65 commit d30fbaa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 358 deletions.
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.

0 comments on commit d30fbaa

Please sign in to comment.