Skip to content

Commit

Permalink
clean up liquid disruption with formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnb committed Oct 4, 2024
1 parent db09909 commit cf1da3a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions _includes/transcript/js/transcript-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@


function scrollToLine(x) {
{% if site.data.theme.media - scroll == true %} upperElement.classList.add("media-scroll-wrapper"); {% endif %}
{% if site.data.theme.media-scroll == true %} upperElement.classList.add("media-scroll-wrapper"); {% endif %}
var targetElement = document.getElementById(x);
if (targetElement) {
targetElement.classList.add("border-featured");
Expand Down Expand Up @@ -241,7 +241,7 @@
});
document.getElementById('scroll-to-top').addEventListener('click', function () {
if (filtersSearch.classList.contains("retracted")) { filtersSearch.classList.remove("retracted"); }
{% if site.data.theme.media - scroll == true %}
{% if site.data.theme.media-scroll == true %}
if (upperElement.classList.contains("media-scroll-wrapper")) { setTimeout(function () { upperElement.classList.remove("media-scroll-wrapper"); }, 300); console.log('scrollstopped?'); } {% endif %}
});
});
Expand Down Expand Up @@ -276,13 +276,12 @@
// Determine if the sticky element is in its sticky state
const isSticky = stickyRect.top <= 0;



// Toggle display: none class based on status of is Sticky
filterTab.classList.toggle('d-none', !isSticky);

// Update the class of the filter tab element based on stickiness
if (isSticky) {
{% if site.data.theme.media - scroll == true %}
{% if site.data.theme.media-scroll == true %}
if (!upperElement.classList.contains("media-scroll-wrapper")) {
upperElement.classList.add("media-scroll-wrapper");
} {% endif %}
Expand All @@ -292,7 +291,7 @@
filtersSearch.classList.remove("retracted");
console.log("removing retracted");
};
{% if site.data.theme.media - scroll == true %} upperElement.classList.remove("media-scroll-wrapper"); {% endif %}
{% if site.data.theme.media-scroll == true %} upperElement.classList.remove("media-scroll-wrapper"); {% endif %}
}
}

Expand Down

0 comments on commit cf1da3a

Please sign in to comment.