forked from tractionsoftware/gwt-traction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemoindex.template
29 lines (28 loc) · 959 Bytes
/
demoindex.template
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
<html>
<head>
<title>gwt-traction demos</title>
<script>
function makeLink(moduleName,htmlFileName){
return moduleName + '/' + htmlFileName + '.html';
}
function writeDemoLink(moduleFilePath) {
var moduleName = moduleFilePath.substring(0, moduleFilePath.length - 8).replace(/\//g, '.');
var htmlFileName = moduleName.replace(/.*\./, '');
document.getElementById('demoList').innerHTML +=
'<p><a target="_blank" href="' + makeLink(moduleName,htmlFileName) + '">' + htmlFileName + '</a></p>'
}
</script>
<style>
html { background: #eee; padding: 20px; }
body { font-family: sans-serif; background: #fff; padding: 20px; }
div { width: 240px; }
p { margin-bottom: 0; }
a { color: #369; outline: none; text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }
</style>
</head>
<body>
<h3>gwt-traction demos</h3>
<div id="demoList"></div>
</body>
</html>