-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiframe.html
69 lines (64 loc) · 1.5 KB
/
iframe.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
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="media/jquery.js"></script>
<script type="text/javascript" src="media/utils.js"></script>
<style>
.simpletable {
max-width: 500px;
background-color: gray;
}
.simpletable th
{
text-align: left;
border: 1px solid black;
max-width:150px;
padding: 5px;
margin: 5px;
background-color: #f0f0f0;
}
.simpletable td
{
text-align: justify;
border: 1px solid black;
padding:5px;
margin:5px;
background-color: lightgray;
}
</style>
</head>
<body>
<div id="display"></div>
<script>
if(document.URL.indexOf('?') != -1)
{
var concepticon = loadConcepticon();
var concept = document.URL.split('?')[1];
var cdata = concepticon[concept];
var header = concepticon['OMEGAWIKI'];
var text = '<table class="simpletable">';
text += '<tr>';
text += '<th>OMEGAWIKI</th>';
text += '<td><a target="_blank" href="http://www.omegawiki.org/DefinedMeaning:'+concept+'">'+concept+'</a></td>';
for(var i=0,item;item=cdata[i];i++)
{
if(item != '-')
{
text += '<tr>';
text += '<th>'+header[i]+'</th>';
if(header[i] == 'WOLD')
{
text += '<td><a target="_blank" href="http://wold.livingsources.org/meaning/'+item.replace('.','-')+'">'+item+'</a></td>';
}
else
{
text += '<td>'+item+'</td>';
}
}
}
text += '</table>';
document.getElementById('display').innerHTML = text;
}
</script>
</body>
</html>