Skip to content
Snippets Groups Projects
Commit bc4dc37e authored by Thomas Fradet's avatar Thomas Fradet
Browse files

hide left nav in iframe

parent e123c8e2
No related branches found
No related tags found
No related merge requests found
......@@ -11,20 +11,24 @@
*/
;(function () {
var to_hide = [
window.onload = function () {
var to_hide = [
"#page-header",
"#page-wrapper > nav",
"#page-footer"
];
for (var i = 0; i < to_hide.length; i++) {
document.querySelector(to_hide[i]).setAttribute('class', 'none-hidden');
"#page-footer",
"#nav-drawer"
];
for (var i = 0; i < to_hide.length; i++) {
document.querySelector(to_hide[i]).setAttribute('class', 'none-hidden');
}
document.querySelector('#page').setAttribute('class', '');
document.querySelector('#page').style.margin = 0;
document.querySelector('#page-wrapper').setAttribute('class', 'no-after');
document.querySelector('#page-content').setAttribute('class', 'no-margin-l-r');
document.querySelector('#region-main-box').style.padding = 0;
document.querySelector('#region-main>.card').style.minHeight = 0;
document.body.style.marginLeft = 0;
}
document.querySelector('#page').setAttribute('class', '');
document.querySelector('#page').style.margin = 0;
document.querySelector('#page-wrapper').setAttribute('class', 'no-after');
document.querySelector('#page-content').setAttribute('class', 'no-margin-l-r');
document.querySelector('#region-main-box').style.padding = 0;
document.querySelector('#region-main>.card').style.minHeight = 0;
})()
// var elmt = document.getElementById("page-header");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment