31.07.2023, 09:07
Add this to Custom JavaScript:
If you set iframe URL to /scada-vis/trends#cls-test then the body element will get an additional class named test
Code:
$(function() {
var hash = window.location.hash;
if (hash.indexOf('#cls-') == 0) {
var cls = hash.split('-')[1];
document.body.classList.add(cls);
}
});
If you set iframe URL to /scada-vis/trends#cls-test then the body element will get an additional class named test