@@ -10262,17 +10262,28 @@ class FastSearchCard extends HTMLElement {
1026210262
1026310263 // Cover Actions
1026410264 } else if (action.includes('Öffnen')) {
10265- presetHTML = this.getCoverTimerPresets();
10265+ console.log('🔍 Cover Öffnen erkannt');
10266+ console.log('🔍 currentDetailItem:', this.currentDetailItem);
10267+
10268+ presetHTML = this.getCoverTimerPresets(this.currentDetailItem);
10269+ console.log('🔍 Cover PresetHTML Länge:', presetHTML.length);
10270+ console.log('🔍 Cover PresetHTML enthält open:', presetHTML.includes('data-action="open"'));
10271+
1026610272 match = presetHTML.match(/data-action="open"[^>]*>(.*?)<\/button>/s);
10273+ console.log('🔍 Cover Match gefunden:', !!match);
10274+ if (match) {
10275+ console.log('🔍 Cover Match[1]:', match[1]);
10276+ }
10277+
1026710278 } else if (action.includes('Schließen')) {
10268- presetHTML = this.getCoverTimerPresets();
10279+ console.log('🔍 Cover Schließen erkannt');
10280+ presetHTML = this.getCoverTimerPresets(this.currentDetailItem);
1026910281 match = presetHTML.match(/data-action="close"[^>]*>(.*?)<\/button>/s);
10270- } else if (action.includes('25%')) {
10271- presetHTML = this.getCoverTimerPresets();
10272- match = presetHTML.match(/data-action="set_position_25"[^>]*>(.*?)<\/button>/s);
10273- } else if (action.includes('75%')) {
10274- presetHTML = this.getCoverTimerPresets();
10275- match = presetHTML.match(/data-action="set_position_75"[^>]*>(.*?)<\/button>/s);
10282+
10283+ } else if (action.includes('50%')) {
10284+ console.log('🔍 Cover 50% erkannt');
10285+ presetHTML = this.getCoverTimerPresets(this.currentDetailItem);
10286+ match = presetHTML.match(/data-action="set_position_50"[^>]*>(.*?)<\/button>/s);
1027610287 }
1027710288
1027810289 // SVG extrahieren und anpassen
0 commit comments