Added prettier to master (#662)
* Bump dev to 2.031.6 * Added prettier (#661) * Added prettier * Added prettier * Added prettier
This commit is contained in:
@@ -5,16 +5,21 @@ import PopAllNormalWrinklers from '../HelperFunctions/PopWrinklers';
|
||||
* This function creates two objects at the bottom of the left column that allowing popping of wrinklers
|
||||
*/
|
||||
export default function CreateWrinklerButtons() {
|
||||
const popAllA = document.createElement('a');
|
||||
popAllA.id = 'PopAllNormalWrinklerButton';
|
||||
popAllA.textContent = 'Pop All Normal';
|
||||
popAllA.className = 'option';
|
||||
popAllA.onclick = function () { PopAllNormalWrinklers(); };
|
||||
l('sectionLeftExtra').children[0].append(popAllA);
|
||||
const popFattestA = document.createElement('a');
|
||||
popFattestA.id = 'PopFattestWrinklerButton';
|
||||
popFattestA.textContent = 'Pop Single Fattest';
|
||||
popFattestA.className = 'option';
|
||||
popFattestA.onclick = function () { if (CacheWrinklersFattest[1] !== null) Game.wrinklers[CacheWrinklersFattest[1]].hp = 0; };
|
||||
l('sectionLeftExtra').children[0].append(popFattestA);
|
||||
const popAllA = document.createElement('a');
|
||||
popAllA.id = 'PopAllNormalWrinklerButton';
|
||||
popAllA.textContent = 'Pop All Normal';
|
||||
popAllA.className = 'option';
|
||||
popAllA.onclick = function () {
|
||||
PopAllNormalWrinklers();
|
||||
};
|
||||
l('sectionLeftExtra').children[0].append(popAllA);
|
||||
const popFattestA = document.createElement('a');
|
||||
popFattestA.id = 'PopFattestWrinklerButton';
|
||||
popFattestA.textContent = 'Pop Single Fattest';
|
||||
popFattestA.className = 'option';
|
||||
popFattestA.onclick = function () {
|
||||
if (CacheWrinklersFattest[1] !== null)
|
||||
Game.wrinklers[CacheWrinklersFattest[1]].hp = 0;
|
||||
};
|
||||
l('sectionLeftExtra').children[0].append(popFattestA);
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ import { DispCSS } from '../VariablesAndData';
|
||||
|
||||
*/
|
||||
export default function CreateCssArea() {
|
||||
DispCSS = document.createElement('style');
|
||||
DispCSS.type = 'text/css';
|
||||
DispCSS.id = 'CMCSS';
|
||||
DispCSS = document.createElement('style');
|
||||
DispCSS.type = 'text/css';
|
||||
DispCSS.id = 'CMCSS';
|
||||
|
||||
document.head.appendChild(DispCSS);
|
||||
document.head.appendChild(DispCSS);
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
* This function updates the style of the building and upgrade sections to make these sortable
|
||||
*/
|
||||
export default function UpdateBuildingUpgradeStyle() {
|
||||
l('products').style.display = 'grid';
|
||||
l('storeBulk').style.gridRow = '1/1';
|
||||
l('products').style.display = 'grid';
|
||||
l('storeBulk').style.gridRow = '1/1';
|
||||
|
||||
l('upgrades').style.display = 'flex';
|
||||
l('upgrades').style['flex-wrap'] = 'wrap';
|
||||
l('upgrades').style.display = 'flex';
|
||||
l('upgrades').style['flex-wrap'] = 'wrap';
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
* This function creates a white square over the full screen and appends it to l('wrapper')
|
||||
*/
|
||||
export default function CreateWhiteScreen() {
|
||||
const WhiteScreen = document.createElement('div');
|
||||
WhiteScreen.id = 'CMWhiteScreen';
|
||||
WhiteScreen.style.width = '100%';
|
||||
WhiteScreen.style.height = '100%';
|
||||
WhiteScreen.style.backgroundColor = 'white';
|
||||
WhiteScreen.style.display = 'none';
|
||||
WhiteScreen.style.zIndex = '9999999999';
|
||||
WhiteScreen.style.position = 'absolute';
|
||||
l('wrapper').appendChild(WhiteScreen);
|
||||
const WhiteScreen = document.createElement('div');
|
||||
WhiteScreen.id = 'CMWhiteScreen';
|
||||
WhiteScreen.style.width = '100%';
|
||||
WhiteScreen.style.height = '100%';
|
||||
WhiteScreen.style.backgroundColor = 'white';
|
||||
WhiteScreen.style.display = 'none';
|
||||
WhiteScreen.style.zIndex = '9999999999';
|
||||
WhiteScreen.style.position = 'absolute';
|
||||
l('wrapper').appendChild(WhiteScreen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user