Skip to content

Commit

Permalink
feat(shs-5693): attached files in accordion, heros, spotlights and te…
Browse files Browse the repository at this point in the history
…xt area
  • Loading branch information
Mari Nez committed Nov 28, 2024
1 parent 4e02ad3 commit 75a5bfa
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
accordion:
js:
dist/js/accordion.js: {}

mainmenu:
js:
dist/js/mainmenutoggle.js: {}
dist/js/mainmenunestedtoggler.js: {}
dist/js/collapsemainmenu.js: {}

pagescrollanimations:
js:
dist/js/pagescrollanimations.js: {}

search:
js:
dist/js/search.js: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ attach_library('humsci_basic/pagescrollanimations') }}

{% include '@humsci_basic/components/paragraph.html.twig' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ attach_library('humsci_basic/accordion') }}

{% include '@hs_layouts/accordion/accordion.html.twig' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ attach_library('humsci_basic/pagescrollanimations') }}

{% include '@hs_layouts/gradient-hero/gradient-hero.html.twig' %}

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

{% include '@hs_layouts/hero-text-overlay/hero-text-overlay.html.twig' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ attach_library('humsci_basic/pagescrollanimations') }}

{% include '@hs_layouts/spotlight/spotlight.html.twig' %}
2 changes: 1 addition & 1 deletion docroot/themes/humsci/humsci_basic/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const srcDir = path.resolve(__dirname, 'src/js/');
const shared = {
accordion: 'shared/accordion/accordion-toggle-all.js',
addtocal: 'shared/addtocal/addtocal.js',
pagescroll: 'shared/animation/page-scroll.js',
pagescrollanimations: 'shared/animation/page-scroll.js',
carouselslidesheight: 'shared/carousel-slides/carousel-slides-height.js',
editoria11y: 'shared/editoria11y/editoria11y.js',
equalheightgrid: 'shared/equal-height-grid/index.js',
Expand Down

0 comments on commit 75a5bfa

Please sign in to comment.