Add JS behaviors
This commit is contained in:
parent
a58385247d
commit
a048c955fd
4 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
$ ->
|
||||
$("body").on "click", ".js-details-target", ->
|
||||
container = $(@).closest ".js-details-container"
|
||||
|
||||
container.toggleClass "open"
|
|
@ -0,0 +1,5 @@
|
|||
$ ->
|
||||
$("body").on "click", ".js-toggler-target", ->
|
||||
container = $(@).closest ".js-toggler-container"
|
||||
|
||||
container.toggleClass "on"
|
Loading…
Add table
Add a link
Reference in a new issue