update components
This commit is contained in:
parent
7ebc536076
commit
a1af156757
65 changed files with 2335 additions and 262 deletions
|
@ -123,32 +123,32 @@
|
|||
internalBackdrop(false);
|
||||
}
|
||||
|
||||
var skinContainer;
|
||||
function getSkinContainer() {
|
||||
if (!skinContainer) {
|
||||
skinContainer = document.querySelector('.skinContainer');
|
||||
var backgroundContainer;
|
||||
function getBackgroundContainer() {
|
||||
if (!backgroundContainer) {
|
||||
backgroundContainer = document.querySelector('.backgroundContainer');
|
||||
}
|
||||
return skinContainer;
|
||||
return backgroundContainer;
|
||||
}
|
||||
function setSkinContainerBackgroundEnabled() {
|
||||
function setBackgroundContainerBackgroundEnabled() {
|
||||
|
||||
if (hasInternalBackdrop || hasExternalBackdrop) {
|
||||
getSkinContainer().classList.add('withBackdrop');
|
||||
getBackgroundContainer().classList.add('withBackdrop');
|
||||
} else {
|
||||
getSkinContainer().classList.remove('withBackdrop');
|
||||
getBackgroundContainer().classList.remove('withBackdrop');
|
||||
}
|
||||
}
|
||||
|
||||
var hasInternalBackdrop;
|
||||
function internalBackdrop(enabled) {
|
||||
hasInternalBackdrop = enabled;
|
||||
setSkinContainerBackgroundEnabled();
|
||||
setBackgroundContainerBackgroundEnabled();
|
||||
}
|
||||
|
||||
var hasExternalBackdrop;
|
||||
function externalBackdrop(enabled) {
|
||||
hasExternalBackdrop = enabled;
|
||||
setSkinContainerBackgroundEnabled();
|
||||
setBackgroundContainerBackgroundEnabled();
|
||||
}
|
||||
|
||||
function getRandom(min, max) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue