This file contains hidden or 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
| function postsCarousel() { | |
| var checkWidth = $(window).width(); | |
| var owlPost = $("#latest-posts .posts-wrapper"); | |
| if (checkWidth > 767) { | |
| if(typeof owlPost.data('owl.carousel') != 'undefined'){ | |
| owlPost.data('owl.carousel').destroy(); | |
| } | |
| owlPost.removeClass('owl-carousel'); | |
| } else if (checkWidth < 768) { |
This file contains hidden or 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
| <?php if ( have_posts() ) : query_posts('p=1'); | |
| while (have_posts()) : the_post(); ?> | |
| <?php the_title(); ?> | |
| <?php the_content(); ?> | |
| <?php the_post_thumbnail(array(100, 100)); ?> | |
| <?php endwhile; endif; wp_reset_query(); ?> |
This file contains hidden or 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
| function heightAdapt() { | |
| $('.header').css('height', $(window).height()); | |
| } | |
| heightAdapt(); | |
| $(window).resize(function() { | |
| heightAdapt(); | |
| }); |