1
0
Fork 0
forked from Simnation/Main

Update script.js

This commit is contained in:
Nordi98 2025-08-03 19:05:33 +02:00
parent d66127a776
commit 7d9379fe09

View file

@ -1295,10 +1295,10 @@ window.addEventListener('message', function(event) {
switch(data.type) {
case 'showDJInterface':
if (data.center) {
// Zentriere das Interface
// Zentriere das Interface, aber weiter rechts und unten
interfacePosition = {
x: (window.innerWidth - interfaceSize.width) / 2,
y: (window.innerHeight - interfaceSize.height) / 2
x: (window.innerWidth - interfaceSize.width) / 2 + 200, // 200px weiter rechts
y: (window.innerHeight - interfaceSize.height) / 2 + 150 // 150px weiter unten
};
}
@ -1314,6 +1314,7 @@ window.addEventListener('message', function(event) {
});
// Utility Functions
function showNotification(message, type = 'info') {
console.log(`DJ System [${type.toUpperCase()}]: ${message}`);