/* EMBED MODE - ?embed url param to embed intranet elsewhere */
.embed-transparent {
background: rgba(0,0,0,0) !important;
background-color: rgba(0,0,0,0) !important;
border: none !important;
}
/* EMBED MODE - ?embed url param to embed intranet elsewhere */
jQuery(document).ready(function() {
if (typeof(url_embed) === 'undefined')
{
url_embed = true;
function url_params(sParam)
{
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++)
{
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam)
{
return sParameterName[1];
}
}
}
if ("1" == url_params("embed"))
{
jQuery("#dokuwiki__header, #dokuwiki__pageheader, .hidden-print, nav, .docInfo").hide();
jQuery(".panel-default, body.default.dw-page-on-panel.tpl_bootstrap3, body.optional.dw-page-on-panel.tpl_bootstrap3, .docInfo").each(function() {
jQuery(this).addClass("embed-transparent");
});
}
}
});