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
| $colors: $blue, $red, $accent | |
| @for $i from 1 through length($colors) | |
| .carousel-services .owl-item:nth-child(#{length($colors)}n+#{$i}) | |
| background-color: nth($colors, $i) |
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 heightDetect(){ | |
| $(".main-head").css("height", $(window).height()); | |
| } | |
| heightDetect(); | |
| $(window).resize(function(){ | |
| heightDetect(); | |
| }); |
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
| $("#formAjax").submit(function() { | |
| var data = $(this).serialize(); | |
| $.ajax({ | |
| type: "POST", | |
| url: "mail.php", | |
| data: data | |
| }).done(function() { | |
| $(this).find("input").val(""); | |
| alert("Спасибо за заявку! Скоро мы с вами свяжемся."); |
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
| $(window).scroll(function() { | |
| if ($(this).scrollTop() > 1){ | |
| $('header').addClass("sticky"); | |
| } | |
| else{ | |
| $('header').removeClass("sticky"); | |
| } | |
| }); |
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
| .video | |
| position: relative | |
| padding-bottom: 56.25% | |
| padding-top: 25px | |
| height: 0 | |
| iframe | |
| border: none | |
| position: absolute | |
| top: 0 | |
| left: 0 |
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
| $('.rotate-h2 .lang-block').eq(0).addClass('active').fadeIn(1000); | |
| setInterval( function () { | |
| var length = $('.rotate-h2 .lang-block').length - 1; | |
| $('.rotate-h2 .lang-block').each(function(index) { | |
| if($(this).hasClass('active') && index != length) { | |
| $(this).removeClass('active').fadeOut(1000).next('.lang-block').addClass('active').delay(1000).fadeIn(1000); |
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
| <div id="unique-id" style="display:none;"> | |
| <div class="popover-heading">This is a heading</div> | |
| <div class="popover-body">This is HTML content that will be loaded inside a </div> | |
| </div> | |
| <span tabindex="0" role="button" data-toggle="popover" data-placement="bottom" data-popover-content="#unique-id"> | |
| Click me to load a popover | |
| </span> |
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 | |
| $idObj = get_category_by_slug('c_edu'); | |
| $id = $idObj->term_id; | |
| echo get_cat_name($id) ?> | |
| <?php if ( have_posts() ) : query_posts('cat=' . $id); | |
| while (have_posts()) : the_post(); ?> | |
| <?php $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' ); | |
| echo $large_image_url[0]; ?> |
OlderNewer