This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
executable file
·142 lines (126 loc) · 4.9 KB
/
index2.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>OSGeo.nl - De Nederlandstalige Afdeling van OSGeo</title>
<meta name="generator" content="gedit-ubuntu">
<script src="script/dojo.js"></script>
<script src="script/wiky.js"></script>
<script>
var osgeoclick;
dojo.require("dojo.io.script");
dojo.io.script.get({
url: "http://wiki.osgeo.org/api.php",
content: {action:"query", prop:"revisions",rvprop:"content", format: "json",titles: "Nederlands", indexpageids:""},
callbackParamName: "callback"
}).then(function(data){
var pages=[];
dojo.forEach(data.query.pageids,function(pageid){
pages.push(data.query.pages[pageid].revisions[0]["*"]);
});
dojo.byId("page").innerHTML =wiky.process(pages.join(''));
});
dojo.ready(function(){
osgeoclick = {
onClick: function(evt){
dojo.io.script.get({
url: "http://wiki.osgeo.org/api.php",
content: {action:"query", prop:"revisions",rvprop:"content", format: "json",titles: dojo.attr(this,"osgeo_item_title"), indexpageids:""},
callbackParamName: "callback"
}).then(function(data){
var pages=[];
dojo.forEach(data.query.pageids,function(pageid){
pages.push(data.query.pages[pageid].revisions[0]["*"]);
});
dojo.byId("page").innerHTML =wiky.process(pages.join(''));
});
}
};
dojo.byId("footer").innerHTML = 'powered by <a href="http://dojotoolkit.org"> dojo toolkit</a> ' + dojo.version + ' de content van deze website wordt geaggregeerd uit de <a href="http://wiki.osgeo.org/wiki/Nederlands">osgeo.org wiki</a>';
dojo.io.script.get({
url: "http://wiki.osgeo.org/api.php",
content: {action: "query", prop:"links", titles:"Nederlands/bijeenkomsten",format:"json", indexpageids:""},
callbackParamName: "callback"
}).then(function(data){
//Loop through the data results and create an array containing
//each tweet's text wrapped in an LI
var bijeenkomstenDiv = dojo.byId("bijeenkomsten");
var ul =dojo.create('ul',null,bijeenkomstenDiv);
var osgeoLink = dojo.create("li", {
"class": "osgeolink",
innerHTML: "Home"
}, ul);
dojo.attr(osgeoLink,"osgeo_item_title", "Nederlands");
dojo.forEach(data.query.pageids,function(pageid){
dojo.forEach(data.query.pages[pageid].links, function(item,idx){
var titleArr = item.title.split("/");
var osgeoLink = dojo.create("li", {
"class": "osgeolink",
innerHTML: titleArr[titleArr.length -1]
}, ul);
dojo.attr(osgeoLink,"osgeo_item_title", item.title);
//bijeenkomsten.push('<li class="osgeolink" id="p'+pageid+ '_' + idx + '">' + item.title + '</li>');
//.data("updated", new Date())
});
});
//join the array of LIs together and make them the
//innerHTML of the content holding node.
dojo.query(".osgeolink").connect("onclick", osgeoclick.onClick);
});
});
</script>
<style type="text/css">
body {
color: #49a942;
font-size: 10.5pt;
font-family: Arial, Helvetica, sans-serif;
}
h1 {
font-size: 14pt;
}
a:link, a:visited, a:active, a:hover {
color: #00AA00;
}
a:hover {
color: #CC0000;
}
#page {
font-size: 10.5pt;
padding: 10px;
color: #444444;
background-color: #ffffff;
}
#footer {
margin-top: 20px;
color: #444444;
}
#bijeenkomsten {
left: 307px;
position: absolute;
top: 92px;
}
#bijeenkomsten li {
display: inline;
border-right:1px solid #cccccc;
list-style-type: none;
padding-left: 5px;
padding-right: 5px;
cursor:pointer;
}
#bijeenkomsten ul {
margin: 0;
border-left:1px solid #cccccc;
padding-left: 6px;
padding-top: 3px;
}
</style>
</head>
<body>
<div id="content">
<a href="http://wiki.osgeo.org/wiki/Nederlands"><img border="0" src="media/osgeonl-logo.png" alt="OSGeoNL logo"></a>
</div>
<div id="bijeenkomsten"></div>
<div id="page"></div>
<div id="footer"></div>
</body>
</html>