Skip to content

Commit

Permalink
improve past seminars collapsing div
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadia DAOUDI committed Oct 19, 2023
1 parent 2d89957 commit 681b2ae
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
23 changes: 23 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ a:focus {
/*******************************/
/******* Events *******/
/*******************************/

.speech-list {
list-style: none;
padding: 0;
Expand All @@ -837,6 +838,26 @@ a:focus {
position: relative;
}

.speech-header:after {
content: '\002B';
color: black;
float: right;
}

.speech-header.active:after {
content: "\2212";
}

.speech-header.active {
background-color: #BDD8E1;
}







.details {
display: none;
padding: 5px;
Expand Down Expand Up @@ -1374,3 +1395,5 @@ a:focus {
font-size: 18px; /* Adjust the font size as needed */
}



7 changes: 2 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ <h3>ITER: Iterative Neural Repair for Multi-Location Patches</h3>

<!-- Upcoming Events End -->



<!-- Past Events Start -->
<div class="pastevent wow zoomIn" data-wow-delay="0.1s">
<div class="container">
Expand All @@ -219,8 +217,8 @@ <h2>Past Seminars<h2>
<ul class="speech-list">
<li>
<div class="speech-header">
<span class="title"><b>Rete: Learning Namespace Representation for Program Repair</b>, Monday, October 9th, 2023, by <b>Nikhil Parasaram</b> from <b>UCL</b></span>
<span class="chevron">&#8810;</span>
<b>Rete: Learning Namespace Representation for Program Repair</b>, Monday, October 9th, 2023, by <b>Nikhil Parasaram</b> from <b>UCL</b>

</div>

<div class="details">
Expand All @@ -240,7 +238,6 @@ <h3>Rete: Learning Namespace Representation for Program Repair</h3>
</div>
</div>
</li>


<!-- Add more speech items as needed -->
</ul>
Expand Down
6 changes: 5 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ speechHeaders.forEach(header => {
header.addEventListener('click', () => {
const details = header.nextElementSibling;
details.style.display = details.style.display === 'none' || details.style.display === '' ? 'block' : 'none';
header.classList.toggle('active');
});
});
});



0 comments on commit 681b2ae

Please sign in to comment.