File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,12 @@ document.querySelectorAll('a[id^="toggleButton"]').forEach(button => {
104
104
const idNumber = button . id . replace ( 'toggleButton' , '' ) ;
105
105
const correspondingDiv = document . getElementById ( `toggleDiv${ idNumber } ` ) ;
106
106
107
- console . log ( "adding listener" )
108
-
109
107
button . addEventListener ( 'click' , ( ) => {
110
- console . log ( "ping " )
111
108
correspondingDiv . classList . toggle ( 'hidden' ) ;
109
+ if ( button . textContent . includes ( "▲" ) ) {
110
+ button . textContent = "Details ▼"
111
+ } else {
112
+ button . textContent = "Details ▲"
113
+ }
112
114
} ) ;
113
115
} ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ eleventyNavigation:
21
21
<tr >
22
22
<td >
23
23
<h2 class =" mt-0 mb-2 italic font-bold" >{{ entry .title }} </h2 >
24
- <a href =" #/" id =" toggleButton{{loop.index}}" >Details & #x25BC ; </a >
24
+ <a href =" #/" id =" toggleButton{{loop.index}}" >Details ▼ </a >
25
25
<ul id =" toggleDiv{{loop.index}}" class =" hidden" >
26
26
{% if entry .details_released %}
27
27
{% for topic in entry .agenda %}
You can’t perform that action at this time.
0 commit comments