Repository Public
1<!doctype html>2<html><head><meta charset="utf-8"><title>Permissions</title></head>3<body><p id="geo">GEO-PENDING</p><p id="notif">NOTIF-PENDING</p><p id="clip">CLIP-PENDING</p>4<script>5navigator.geolocation.getCurrentPosition(() => { document.getElementById('geo').textContent = 'GEO-GRANTED'; },6 (e) => { document.getElementById('geo').textContent = 'GEO-REFUSED-' + e.code; }, {timeout: 1500});7try {8 Notification.requestPermission().then((p) => { document.getElementById('notif').textContent = 'NOTIF-' + p; },9 () => { document.getElementById('notif').textContent = 'NOTIF-error'; });10} catch (e) { document.getElementById('notif').textContent = 'NOTIF-unavailable'; }11try {12 navigator.clipboard.readText().then(() => { document.getElementById('clip').textContent = 'CLIP-GRANTED'; },13 () => { document.getElementById('clip').textContent = 'CLIP-REFUSED'; });14} catch (e) { document.getElementById('clip').textContent = 'CLIP-unavailable'; }15</script></body></html>16