-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (33 loc) · 1 KB
/
index.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
<!doctype html>
<html>
<head>
<title>Njordr</title>
</head>
<body>
<input type="checkbox" id="multiselect"> Multiselect
<br>
<button id="fotoweb">Browse FotoWeb</button>
<script src="/assets/plugin.js"></script>
<script>
var fotowebCheckbox = document.getElementById('multiselect');
var fotowebButton = document.getElementById('fotoweb');
function openPopup() {
window.fotoweb.open(
{
multiselect: fotowebCheckbox.checked,
apiUrl: 'https://skadi.app.dnt.no/v1',
hiddenArchives: ['Alle bilder', 'Alle mine bilder'],
promotedArchives: ['DNT Oslo og Omegn', 'DNT sentralt', 'Blinkskudd'],
},
function callback(selected) {
console.log('Look what I got!', selected);
},
function errorHandler(err, info) {
console.error('OMG, an err!', err, info);
}
);
}
fotowebButton.onclick = openPopup;
</script>
</body>
</html>