update components

This commit is contained in:
Luke Pulverenti 2016-07-27 01:19:56 -04:00
parent 7ebc536076
commit a1af156757
65 changed files with 2335 additions and 262 deletions

View file

@ -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) {