Changes for page AI en LLMs

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

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

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.admin
1 +XWiki.XWikiGuest
Content
... ... @@ -1,3 +1,39 @@
1 1  = AI en LLMs =
2 2  
3 3  //Deze sectie wordt nog gevuld.//
4 +
5 +{{html clean="false"}}
6 +<div id="linkding-bookmarks-aillms">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-aillms');
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-aillms').innerHTML = '<p>Kon bookmarks niet laden: ' + err.message + '</p>';
36 + });
37 +})();
38 +</script>
39 +{{/html}}