Last modified by XWikiGuest on 2026/03/11 21:09

From version 2.1
edited by XWikiGuest
on 2026/03/11 19:07
Change comment: There is no comment for this version
To version 1.1
edited by Ad Min
on 2026/03/10 19:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.XWikiGuest
1 +xwiki:XWiki.admin
Content
... ... @@ -1,39 +1,3 @@
1 1  = Machine Learning en Data Science =
2 2  
3 3  //Deze sectie wordt nog gevuld.//
4 -
5 -{{html clean="false"}}
6 -<div id="linkding-bookmarks-mldatascience">Laden...</div>
7 -<script>
8 -(function() {
9 - var config = {
10 - url: 'https://bookmarks.rhebergen.org/api/bookmarks/',
11 - token: '3b7443e0f84e2b2b269adebb96d7475e4a5e653e',
12 - tag: 'AI-&-Machine-Learning',
13 - count: 10
14 - };
15 - var apiUrl = config.url + '?limit=' + config.count + '&q=%23' + encodeURIComponent(config.tag);
16 - fetch(apiUrl, {
17 - headers: { 'Authorization': 'Token ' + config.token }
18 - })
19 - .then(function(r) { return r.json(); })
20 - .then(function(data) {
21 - var container = document.getElementById('linkding-bookmarks-mldatascience');
22 - var total = data.count || 0;
23 - var html = '<h3>Bookmarks: ' + config.tag + ' (' + total + ' totaal)</h3><ul>';
24 - (data.results || []).forEach(function(bm) {
25 - var title = bm.title || bm.website_title || bm.url;
26 - html += '<li><a href="' + bm.url + '" target="_blank">' + title + '</a></li>';
27 - });
28 - html += '</ul>';
29 - if (total > config.count) {
30 - html += '<p><em>Toont ' + config.count + ' van ' + total + '. <a href="https://bookmarks.rhebergen.org/bookmarks?q=%23' + config.tag + '">Meer in Linkding</a></em></p>';
31 - }
32 - container.innerHTML = html;
33 - })
34 - .catch(function(err) {
35 - document.getElementById('linkding-bookmarks-mldatascience').innerHTML = '<p>Kon bookmarks niet laden: ' + err.message + '</p>';
36 - });
37 -})();
38 -</script>
39 -{{/html}}