Commit bc4dc37e authored by Thomas Fradet's avatar Thomas Fradet
Browse files

hide left nav in iframe

parent e123c8e2
...@@ -11,20 +11,24 @@ ...@@ -11,20 +11,24 @@
*/ */
;(function () { ;(function () {
var to_hide = [ window.onload = function () {
var to_hide = [
"#page-header", "#page-header",
"#page-wrapper > nav", "#page-wrapper > nav",
"#page-footer" "#page-footer",
]; "#nav-drawer"
for (var i = 0; i < to_hide.length; i++) { ];
document.querySelector(to_hide[i]).setAttribute('class', 'none-hidden'); 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"); // var elmt = document.getElementById("page-header");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment