Skip to content

Instantly share code, notes, and snippets.

View rayets123's full-sized avatar

Vitaliy rayets123

  • Kyiv
View GitHub Profile
@rayets123
rayets123 / scroll.js
Created February 1, 2016 17:30
scroll
// $(".arrow_down").click(function () {
// $(".online").animate( {
// scrollTop : "1000"
// } , 800 , 'easeInOutCubic' );
// return false;
// });
// $(".arrow_up").click(function () {
// $(".online").animate( {
// scrollTop : "-1000"
// } , 800 , 'easeInOutCubic' );
@rayets123
rayets123 / search.js
Created January 29, 2016 10:56
search
$(".toggle-mnu").click(function() {
$(this).toggleClass("on");
if ($(".right_sidebar").css("right") == "0px") {
$(".right_sidebar").css("right", "-185px");
}
else{
$(".right_sidebar").css("right", "0px");
}
return false;
});
@rayets123
rayets123 / form.js
Created January 17, 2016 12:32
форма Ajax
$("#form").submit(function() {
$.ajax({
type: "POST",
url: "mail.php",
data: $(this).serialize()
}).done(function() {
alert("Спасибо за заявку!");
setTimeout(function() {
$("#form").trigger("reset");