16 lines
383 B
JavaScript
16 lines
383 B
JavaScript
(function() {
|
|
const params = new URLSearchParams(window.location.search)
|
|
|
|
if (!params.has('embed')) {
|
|
return
|
|
}
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
window.document.querySelector('body').classList.add('is-embeded')
|
|
|
|
window.document.querySelectorAll('.file-header a').forEach(function(a) {
|
|
a.setAttribute('target', '_blank')
|
|
})
|
|
})
|
|
})();
|