This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsperf.com/check-jquery-getelementbyid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img{% if image.title | kebab != image.slug %} alt="{{ image.title }}"{% endif %} src="{{ image.getUrl('thumb') }}"> | |
Example Usage: | |
{% if entry.images | length %} | |
{% for image in entry.images %} | |
<img{% if image.title | kebab != image.slug %} alt="{{ image.title }}"{% endif %} src="{{ image.getUrl('thumb') }}"> | |
{% endfor %} | |
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
$(document).on( 'click', '.tab', function() { | |
$('.slick') | |
.find('.news-item') | |
.css({ height: '' }) // Remove the height calculated when hidden | |
.find('.news-item__title') | |
.css({ height: '' }); // Remove the height calculated when hidden | |
$('.slick').slick('getSlick').checkResponsive(); // Trigger same internal functions as `orientationchange` event. |