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

hide left nav in iframe

parent e123c8e2
...@@ -11,10 +11,12 @@ ...@@ -11,10 +11,12 @@
*/ */
;(function () { ;(function () {
window.onload = function () {
var to_hide = [ 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++) { for (var i = 0; i < to_hide.length; i++) {
document.querySelector(to_hide[i]).setAttribute('class', 'none-hidden'); document.querySelector(to_hide[i]).setAttribute('class', 'none-hidden');
...@@ -25,6 +27,8 @@ ...@@ -25,6 +27,8 @@
document.querySelector('#page-content').setAttribute('class', 'no-margin-l-r'); document.querySelector('#page-content').setAttribute('class', 'no-margin-l-r');
document.querySelector('#region-main-box').style.padding = 0; document.querySelector('#region-main-box').style.padding = 0;
document.querySelector('#region-main>.card').style.minHeight = 0; document.querySelector('#region-main>.card').style.minHeight = 0;
document.body.style.marginLeft = 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