Skip to content

Commit

Permalink
disable lightbox
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorpd committed Oct 31, 2023
1 parent b077675 commit 5736fd7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
8 changes: 7 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ input, select, textarea {
}

.image.thumb:hover:after {
opacity: 1.0;
opacity: 0;
}

.image.thumb:hover:before {
Expand Down Expand Up @@ -2907,6 +2907,12 @@ input, select, textarea {
z-index: 2;
}

.image.thumb:before, .image.thumb:hover:before {
background: none;
opacity: 1; /* Set to 1 to make sure the image is fully visible */
}


.poptrox-popup .closer:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
Expand Down
35 changes: 18 additions & 17 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,23 @@
// Main Sections: Two.

// Lightbox gallery.
$window.on('load', function() {

$('#two').poptrox({
caption: function($a) { return $a.next('h3').text(); },
overlayColor: '#2c2c2c',
overlayOpacity: 0.85,
popupCloserText: '',
popupLoaderText: '',
selector: '.work-item a.image',
usePopupCaption: true,
usePopupDefaultStyling: false,
usePopupEasyClose: false,
usePopupNav: true,
windowMargin: (breakpoints.active('<=small') ? 0 : 50)
});

});
// disable the lightbox gallery
// $window.on('load', function() {

// $('#two').poptrox({
// caption: function($a) { return $a.next('h3').text(); },
// overlayColor: '#2c2c2c',
// overlayOpacity: 0.85,
// popupCloserText: '',
// popupLoaderText: '',
// selector: '.work-item a.image',
// usePopupCaption: true,
// usePopupDefaultStyling: false,
// usePopupEasyClose: false,
// usePopupNav: true,
// windowMargin: (breakpoints.active('<=small') ? 0 : 50)
// });

// });

})(jQuery);
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ <h2>I'm passionate about responsible NLP, AI for social good, and promoting AI l
<h2>Recent Work</h2>
<div class="row">
<article class="col-6 col-12-xsmall work-item">
<a href="images/fulls/debiasing.png" class="image fit thumb"><img src="images/thumbs/debiasing.png" alt="" /></a>
<a href="https://arxiv.org/abs/2305.16397" target="_blank" class="image fit thumb"><img src="images/thumbs/diffusion.png" alt="" /></a>
<h3>Are Diffusion Models Vision-And-Language Reasoners?</h3>
<p><a href="https://arxiv.org/abs/2305.16397"> Accepted to NeurIPS 2023!</a></p>
</article>
<article class="col-6 col-12-xsmall work-item">
<a href="images/fulls/diffusion.png" class="image fit thumb"><img src="images/thumbs/diffusion.png" alt="" /></a>
<a href="https://aclanthology.org/2022.acl-long.132/" target="_blank" class="image fit thumb"><img src="images/thumbs/debiasing.png" alt="" /></a>
<h3>An Empirical Survey of the Effectiveness of Debiasing Techniques for Pre-trained Language Models</h3>
<p><a href="https://aclanthology.org/2022.acl-long.132/" target="_blank">Accepted to ACL 2022!</a>
</article>
Expand Down

0 comments on commit 5736fd7

Please sign in to comment.