Skip to content

Commit

Permalink
chore: fix js error on other pages
Browse files Browse the repository at this point in the history
chore: make the playlist indicator responsive
  • Loading branch information
zachdaniel committed Feb 2, 2025
1 parent a5cadd0 commit 78d2412
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,15 @@ function addTooltip(id, content) {
});
}

let appName = document.getElementById("app-name").value;
let appNameComponent = document.getElementById("app-name")

document.addEventListener('DOMContentLoaded', function() {
document.getElementById('quickstart-live_view-inactive').click();
});
let appName = (appName || {}).value;

if(appNameComponent) {
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('quickstart-live_view-inactive').click();
});
}

function setUrl() {
var button = document.getElementById('copy-url-button');
Expand Down
6 changes: 4 additions & 2 deletions lib/ash_hq_web/templates/home/media.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
/>
<span class="absolute top-4 -right-32 text-xs text-primary-dark-500 italic w-28">
<span class="hero-arrow-left size-4" /><br />(this is a whole playlist of videos!)
<span class="absolute pt-4 pb-4 sm:pt-0 bottom:-32 right-0 sm:top-4 sm:-right-32 text-xs text-primary-dark-500 italic w-28">
<span class="hero-arrow-left size-4 hidden sm:block" />
<span class="hero-arrow-up size-4 sm:hidden" />
<br />(this is a whole playlist of videos!)
</span>
</div>
</div>
Expand Down

0 comments on commit 78d2412

Please sign in to comment.