Skip to content

Commit

Permalink
feat(shs-5693): attached files for timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari Nez committed Nov 30, 2024
1 parent 3991f05 commit 4b0b16b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ tablescope:
tablewrap:
js:
dist/js/tablewrap.js: {}

timeline:
js:
dist/js/timeline.js: {}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Find when a timeline has been set to collapsed so that we can
// adjust the default attribute values
(function (Drupal) {
Drupal.behaviors.pageScrollBehavior = {
Drupal.behaviors.timelineCollapseBehavior = {
attach(context) {
const timelineCollapsed = context.querySelectorAll('.hb-timeline__collapsed');

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ attach_library('humsci_basic/timeline') }}

{% include '@hs_layouts/timeline/timeline.html.twig' %}

0 comments on commit 4b0b16b

Please sign in to comment.