{
const playerElement = document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA' || document.activeElement.isContentEditable;
if (playerElement) return; // Ignore key events when input or textarea is focused
const shiftNotAllowedShortcuts = ['Space', 'KeyK', 'KeyM', 'ArrowLeft', 'ArrowRight', 'KeyJ', 'KeyL', 'KeyS', 'ArrowUp', 'ArrowDown'];
if (shiftNotAllowedShortcuts.includes(event.code) && event.shiftKey) {
// If shift is pressed and the shortcut should not allow shift, return
return;
}
switch (event.code) {
case 'Space':
case 'KeyK':
event.preventDefault();
this.togglePlay();
break;
case 'KeyM':
event.preventDefault();
this.player.muted = !this.player.muted;
break;
case 'ArrowLeft':
event.preventDefault();
this.updateTime(this.time - 5);
break;
case 'ArrowRight':
event.preventDefault();
this.updateTime(this.time + 5);
break;
case 'KeyJ':
event.preventDefault();
this.updateTime(this.time - 10);
break;
case 'KeyL':
event.preventDefault();
this.updateTime(this.time + 10);
break;
case 'KeyS':
event.preventDefault();
this.addPlayerStar();
break;
case 'Period': // >
event.preventDefault();
if (event.shiftKey) {
this.speed = Math.min(Math.max(parseFloat(this.speed) + 0.1, 0.5), 4.0);
this.speed = parseFloat(this.speed);
this.applyPlaybackRate();
}
break;
case 'Comma': // <
event.preventDefault();
if (event.shiftKey) {
this.speed = Math.min(Math.max(parseFloat(this.speed) - 0.1, 0.5), 4.0);
this.speed = parseFloat(this.speed);
this.applyPlaybackRate();
}
break;
case 'ArrowUp':
event.preventDefault();
this.changeVolume(parseFloat(this.volume) + 0.05);
break;
case 'ArrowDown':
event.preventDefault();
this.changeVolume(parseFloat(this.volume) - 0.05);
break;
default:
break;
}
});
},
changeVolume(volume) {
if (this.player && (volume >= 0 && volume <= 1)) {
this.volume = volume;
this.player.volume = this.volume;
}
}
}" x-init="
window.addEventListener('notify', event => {
showNotification(event.detail.message);
});
window.addEventListener('replace-text', event => {
replaceText(event.detail.searchString, event.detail.replacementString);
});
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
if (mediaQuery.matches) {
document.documentElement.classList.add('dark');
}
setupKeyboardShortcuts();
$watch('relatedAutoplayEnabled', value => window.relatedEpisodeAutoplay.saveRelatedAutoplayPreference(value));
">
On this episode of the MeidasTouch Podcast: World leaders openly mock Trump and post it on social media; Trump pledges to put billionaires first; The GOP’s fake FBI Biden informant is completely exposed; President Biden’s accomplishments; and more. Ben and Brett break it down!
Subscribe to Meidas+ at https://meidasplus.com
Deals from our sponsors!
Bookshop.org: Use code MEIDAS to get 10 percent off your next order at https://bookshop.org
Qualia: To boost YOUR NAD+ levels up to 74%, Go to https://qualialife.com/JORDY for up to 50% off and use code JORDY at checkout for an additional 15% off.
Prize Picks: Download the PrizePicks app today https://prizepicks.onelink.me/LME0/MEIDAS and use code MEIDAS and get $50 instantly when you play $5!
ZBiotics: Head to https://zbiotics.com/MEIDAS to get 15% off your first order when you use MEIDAS at checkout.
Henson: Visit https://HensonShaving.com/MEIDAS to pick the razor for you and use code MEIDAS for 2 years worth of free blades!
Remember to subscribe to ALL the MeidasTouch Network Podcasts:
MeidasTouch: https://www.meidastouch.com/tag/meidastouch-podcast
Legal AF: https://www.meidastouch.com/tag/legal-af
MissTrial: https://meidasnews.com/tag/miss-trial
The PoliticsGirl Podcast: https://www.meidastouch.com/tag/the-politicsgirl-podcast
The Influence Continuum: https://www.meidastouch.com/tag/the-influence-continuum-with-dr-steven-hassan
Mea Culpa with Michael Cohen: https://www.meidastouch.com/tag/mea-culpa-with-michael-cohen
The Weekend Show: https://www.meidastouch.com/tag/the-weekend-show
Burn the Boats: https://www.meidastouch.com/tag/burn-the-boats
Majority 54: https://www.meidastouch.com/tag/majority-54
Political Beatdown: https://www.meidastouch.com/tag/political-beatdown
On Democracy with FP Wellman: https://www.meidastouch.com/tag/on-democracy-with-fpwellman
Uncovered: https://www.meidastouch.com/tag/maga-uncovered
Coalition of the Sane: https://meidasnews.com/tag/coalition-of-the-sane
Learn more about your ad choices. Visit megaphone.fm/adchoices
Subscribe to Meidas+ at https://meidasplus.com
Deals from our sponsors!
Bookshop.org: Use code MEIDAS to get 10 percent off your next order at https://bookshop.org
Qualia: To boost YOUR NAD+ levels up to 74%, Go to https://qualialife.com/JORDY for up to 50% off and use code JORDY at checkout for an additional 15% off.
Prize Picks: Download the PrizePicks app today https://prizepicks.onelink.me/LME0/MEIDAS and use code MEIDAS and get $50 instantly when you play $5!
ZBiotics: Head to https://zbiotics.com/MEIDAS to get 15% off your first order when you use MEIDAS at checkout.
Henson: Visit https://HensonShaving.com/MEIDAS to pick the razor for you and use code MEIDAS for 2 years worth of free blades!
Remember to subscribe to ALL the MeidasTouch Network Podcasts:
MeidasTouch: https://www.meidastouch.com/tag/meidastouch-podcast
Legal AF: https://www.meidastouch.com/tag/legal-af
MissTrial: https://meidasnews.com/tag/miss-trial
The PoliticsGirl Podcast: https://www.meidastouch.com/tag/the-politicsgirl-podcast
The Influence Continuum: https://www.meidastouch.com/tag/the-influence-continuum-with-dr-steven-hassan
Mea Culpa with Michael Cohen: https://www.meidastouch.com/tag/mea-culpa-with-michael-cohen
The Weekend Show: https://www.meidastouch.com/tag/the-weekend-show
Burn the Boats: https://www.meidastouch.com/tag/burn-the-boats
Majority 54: https://www.meidastouch.com/tag/majority-54
Political Beatdown: https://www.meidastouch.com/tag/political-beatdown
On Democracy with FP Wellman: https://www.meidastouch.com/tag/on-democracy-with-fpwellman
Uncovered: https://www.meidastouch.com/tag/maga-uncovered
Coalition of the Sane: https://meidasnews.com/tag/coalition-of-the-sane
Learn more about your ad choices. Visit megaphone.fm/adchoices
感想
まだ感想はありません。最初の1件を書きましょう!
スクロール