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
$(".category-wrap span").click(function(){ | |
if($(".sub-catalog").is(":visible") == true){ | |
$(this).parent().find(".sub-catalog").slideUp(); | |
$(this).find(".fa").addClass("fa-angle-right"); | |
$(this).find(".fa").removeClass("fa-angle-down"); | |
if($(this).parent().find(".sub-catalog").is(":hidden") == true){ | |
$(".sub-catalog").slideUp(); | |
$(this).parent().find(".sub-catalog").slideDown(); | |
$(".category-wrap span").find(".fa").removeClass("fa-angle-down").addClass("fa-angle-right"); | |
$(this).find(".fa").addClass("fa-angle-down"); |
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
$('.go_to').click( function(){ // ловим клик по ссылке с классом go_to | |
var scroll_el = $(this).attr('href'); // возьмем содержимое атрибута href, должен быть селектором, т.е. например начинаться с # или . | |
if ($(scroll_el).length != 0) { // проверим существование элемента чтобы избежать ошибки | |
$('html, body').animate({ scrollTop: $(scroll_el).offset().top }, 500); // анимируем скроолинг к элементу scroll_el | |
} | |
return false; // выключаем стандартное действие | |
}); |
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
$(".scroll-top-box").hide(); | |
$(window).scroll(function (){ | |
if ($(this).scrollTop() > 500){ | |
$(".scroll-top-box").fadeIn(); | |
} else{ | |
$(".scroll-top-box").fadeOut(); | |
} | |
}); |
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
Date.prototype.getMonthName = function() { | |
var month = ['Jan','Feb','Mar','Apr','May','Jun', | |
'Jul','Aug','Sep','Oct','Nov','Dec']; | |
return month[this.getMonth()]; | |
} | |
var today = new Date(); | |
var year = today.getFullYear(); | |
var month = today.getMonthName(); | |
var day = today.getDate(); |
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
$(document).pjax(".item-link, .head-logo a", ".pjax-container", {fragment: ".pjax-container"}); | |
$(".pjax-container").on("pjax:success", function(){ | |
$.pjax({ | |
url: window.location.href, | |
container: ".main-menu", | |
fragment: ".main-menu" | |
}); | |
}); |
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
<?php | |
$to = 'example@gmail.com'; | |
$errors = array(); | |
$method = $_SERVER['REQUEST_METHOD']; | |
$c = true; | |
if ( $method === 'POST' ) { | |
$project_name = trim($_POST["project_name"]); |
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
<div class="accordion-item"> | |
<div class="accordion-title"> | |
</div> | |
<div class="accordion-content"> | |
</div> | |
</div> |
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
<ul class="tabs-item"> | |
<li class="active"></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
</ul> | |
<div class="tabs-content-wrap"> | |
<div class="tab-content-item"> | |
</div> |