Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ <h4 class="text-xs font-bold uppercase tracking-widest mb-3 text-primary">Live A
<div class="flex items-center justify-between mb-6">
<h3 class="font-display text-xl">Active Projects</h3>
<div class="flex bg-black/20 p-1 rounded-lg">
<button id="listViewBtn" class="p-2 rounded-md active"><i class="fas fa-list"></i></button>
<button id="kanbanViewBtn" class="p-2 rounded-md"><i class="fas fa-th-large"></i></button>
<button id="listViewBtn" class="p-2 rounded-md active" aria-label="List View" title="List View"><i class="fas fa-list"></i></button>
<button id="kanbanViewBtn" class="p-2 rounded-md" aria-label="Kanban View" title="Kanban View"><i class="fas fa-th-large"></i></button>
</div>
</div>
<div id="studioProjectsList" class="studio-projects-grid">
Expand All @@ -365,7 +365,7 @@ <h3 class="font-display text-xl">Active Projects</h3>
<!-- Active Project Detail View -->
<div id="active-project-view" class="studio-view hidden">
<div class="flex items-center gap-4 mb-6">
<button id="backToProjectsBtn" class="action-btn"><i class="fas fa-arrow-left"></i></button>
<button id="backToProjectsBtn" class="action-btn" aria-label="Back to Projects" title="Back to Projects"><i class="fas fa-arrow-left"></i></button>
<h3 id="current-project-title" class="font-display text-xl">New Project</h3>
</div>

Expand Down Expand Up @@ -430,15 +430,15 @@ <h2 id="video-title" class="modal-title">Episode Title</h2>
</div>

<div class="modal-actions">
<button id="shareEpisode" class="modal-action-btn" title="Share">
<button id="shareEpisode" class="modal-action-btn" title="Share (S)" title="Share (S)" title="Share (S)">
<i class="fas fa-share-alt"></i>
<span>Share</span>
</button>
<button id="modalSaveBtn" class="modal-action-btn" title="Save (B)">
<i class="fas fa-bookmark"></i>
<span>Save</span>
</button>
<button id="toggleTranscript" class="modal-action-btn" title="Transcript">
<button id="toggleTranscript" class="modal-action-btn" title="Notes (N)" title="Notes (N)" title="Notes (N)">
<i class="fas fa-closed-captioning"></i>
<span>Notes</span>
</button>
Expand Down
8 changes: 8 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,12 @@ function bindEvents() {
} else if (key === 'b') {
e.preventDefault();
toggleWatchLater(AppState.current);
} else if (key === 's') {
e.preventDefault();
openShare();
} else if (key === 'n') {
e.preventDefault();
openTranscript();
}
}

Expand Down Expand Up @@ -1516,6 +1522,7 @@ if (document.readyState === 'loading') {

function openShare() {
if (!DOM.sharePanel) return;
if ('vibrate' in navigator) navigator.vibrate(10);
const shareLink = document.getElementById("shareLink");
if (shareLink && AppState.current) {
shareLink.value = "https://www.youtube.com/watch?v=" + AppState.current.id;
Expand All @@ -1529,6 +1536,7 @@ function openShare() {

function openTranscript() {
if (!DOM.transcriptPanel) return;
if ('vibrate' in navigator) navigator.vibrate(10);
DOM.transcriptPanel.style.display = "block";
DOM.transcriptPanel.setAttribute("aria-hidden", "false");
DOM.body.style.overflow = "hidden";
Expand Down
Loading