forked from Simnation/Main
Update script.js
This commit is contained in:
parent
d66127a776
commit
7d9379fe09
1 changed files with 4 additions and 3 deletions
|
@ -1295,10 +1295,10 @@ window.addEventListener('message', function(event) {
|
||||||
switch(data.type) {
|
switch(data.type) {
|
||||||
case 'showDJInterface':
|
case 'showDJInterface':
|
||||||
if (data.center) {
|
if (data.center) {
|
||||||
// Zentriere das Interface
|
// Zentriere das Interface, aber weiter rechts und unten
|
||||||
interfacePosition = {
|
interfacePosition = {
|
||||||
x: (window.innerWidth - interfaceSize.width) / 2,
|
x: (window.innerWidth - interfaceSize.width) / 2 + 200, // 200px weiter rechts
|
||||||
y: (window.innerHeight - interfaceSize.height) / 2
|
y: (window.innerHeight - interfaceSize.height) / 2 + 150 // 150px weiter unten
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1314,6 +1314,7 @@ window.addEventListener('message', function(event) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Utility Functions
|
// Utility Functions
|
||||||
function showNotification(message, type = 'info') {
|
function showNotification(message, type = 'info') {
|
||||||
console.log(`DJ System [${type.toUpperCase()}]: ${message}`);
|
console.log(`DJ System [${type.toUpperCase()}]: ${message}`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue