Fix Mines.

This commit is contained in:
octospacc 2023-03-28 18:30:19 +02:00
parent 52b3a227b7
commit e5119a1344
1 changed files with 4 additions and 1 deletions

View File

@ -73,6 +73,7 @@ document.querySelectorAll('.Minesweeper').forEach(function(Container){
// Add notice to the user saying to win a game to see the content underneath // Add notice to the user saying to win a game to see the content underneath
// TODO: Maybe put it instead of the iframe, with a button, and when the user clicks that the iframe is set up? // TODO: Maybe put it instead of the iframe, with a button, and when the user clicks that the iframe is set up?
var NoticeEl = document.createElement('p'); var NoticeEl = document.createElement('p');
NoticeEl.className = 'Minesweeper-Locker-Notice';
NoticeEl.innerHTML = Notices.NoticeLocked; NoticeEl.innerHTML = Notices.NoticeLocked;
Container.before(NoticeEl); Container.before(NoticeEl);
@ -154,7 +155,9 @@ document.querySelectorAll('.Minesweeper').forEach(function(Container){
}; };
LockedEl.style['padding-left'] = ''; LockedEl.style['padding-left'] = '';
LockedEl.style['padding-right'] = ''; LockedEl.style['padding-right'] = '';
NoticeEl.remove(); document.querySelectorAll('.Minesweeper-Locker-Notice').forEach(function(El){
El.remove();
});
SetupLockGame(); SetupLockGame();
WindowWidth = window.innerWidth; WindowWidth = window.innerWidth;
}; };