Se ha creado el script
This commit is contained in:
commit
2a854d7699
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
24
PlayerHidder.js
Normal file
24
PlayerHidder.js
Normal file
@ -0,0 +1,24 @@
|
||||
(function() {
|
||||
const selector = '#map-container > div > div:nth-child(1)';
|
||||
let targetDiv = null;
|
||||
|
||||
function hideDiv() {
|
||||
targetDiv = document.querySelector(selector);
|
||||
if (targetDiv) {
|
||||
targetDiv.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function showDiv() {
|
||||
if (targetDiv) {
|
||||
targetDiv.style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
hideDiv();
|
||||
|
||||
|
||||
window['abrete-sesamo'] = showDiv;
|
||||
window['cierrate-sesamo'] = hideDiv;
|
||||
})();
|
||||
Loading…
x
Reference in New Issue
Block a user