Skip to content

Commit

Permalink
Remove custom youtube shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Mar 3, 2024
1 parent a06a805 commit b583823
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 195 deletions.
64 changes: 0 additions & 64 deletions assets/theme-css/videos.css

This file was deleted.

9 changes: 0 additions & 9 deletions doc/content/video-page.md

This file was deleted.

19 changes: 0 additions & 19 deletions layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,6 @@

<script type="text/javascript">setupShortcuts(maxLevel={{ default 2 .Page.Params.shortcutDepth }});</script>

{{- if .HasShortcode "youtube" }}
<script type="text/javascript">
var buttons = document.getElementsByClassName("video-transcript-button");
var i;

for (i = 0; i < buttons.length; i++) {
buttons[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
{{ end -}}

{{- if .Page.Store.Get "hasMermaid" }}
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10.8.0/dist/mermaid.esm.min.mjs';
Expand Down
103 changes: 0 additions & 103 deletions layouts/shortcodes/youtube.html

This file was deleted.

0 comments on commit b583823

Please sign in to comment.