2023-05-21 16:22:39 +02:00
|
|
|
(function() {
|
2023-05-21 16:26:41 +02:00
|
|
|
const params = new URLSearchParams(window.location.search)
|
2023-05-21 16:22:39 +02:00
|
|
|
|
2023-05-21 16:26:18 +02:00
|
|
|
if (!params.has('embed')) {
|
2023-05-21 16:22:39 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2023-05-21 16:29:00 +02:00
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
|
|
window.document.querySelector('body').classList.add('is-embeded')
|
2023-05-21 17:05:16 +02:00
|
|
|
|
|
|
|
window.document.querySelectorAll('.file-header a').forEach(function(a) {
|
|
|
|
a.setAttribute('target', '_blank')
|
|
|
|
})
|
2023-05-21 16:29:00 +02:00
|
|
|
})
|
2023-05-21 16:22:39 +02:00
|
|
|
})();
|