Skip to content

Commit

Permalink
Update whats-new.html
Browse files Browse the repository at this point in the history
  • Loading branch information
otykier authored Oct 24, 2023
1 parent 7f6079e commit bdf97f7
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions whats-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,34 @@ <h2>Meet the team</h2>
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}

document.addEventListener('DOMContentLoaded', function () {
function applyStyle() {
var style = getParameterByName('style');
var bodyElement = document.getElementById('body-element');

if (style) {
var links = document.querySelectorAll('a');
const links = document.querySelectorAll('a');

for (var i = 0; i < links.length; i++) {
links[i].setAttribute('target', '_blank');
}
links.forEach(link => {
link.setAttribute('target', '_blank');
});

if (style === 'dark') {
bodyElement.classList.add('dark-mode');
} else if (style === 'light') {
bodyElement.classList.add('light-mode');
}
}
});
}

if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', applyStyle);
} else if (document.attachEvent) {
document.attachEvent('onreadystatechange', function() {
if (document.readyState === 'complete') {
applyStyle();
}
});
}

if (window.parent.resizeIframe) {
window.addEventListener("load", function() {
Expand Down

0 comments on commit bdf97f7

Please sign in to comment.