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 ajaxForm(form, urlToFile) { | |
// if (!valid) {return false;} | |
var serailizedForm = form.serialize(); | |
var result = $.ajax({ | |
url: urlToFile, | |
type: 'post', | |
// dataType: 'json', | |
data: serailizedForm, |
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
.custom-counter li::before { | |
content: '0' counter(step-counter); | |
} | |
.custom-counter li { | |
counter-increment: step-counter; | |
&:nth-child(9) ~ li:before{ | |
content: counter(step-counter); // убираем "0" у всех последующих li, кроме тех, которые до девятки | |
} | |
} |
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
<!DOCTYPE html> | |
<html lang="en" class="leave-px"> | |
<head> | |
@@include('head.html', {"title": "Заголовок"}) | |
</head> | |
<body> | |
@@include('header.html') | |
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() { | |
$('.aside-nav__item, .mob-menu__list li').each(function(indx) {//поиск нужных элементов | |
var e = $(this); | |
e.removeClass('aside-nav__item--active active-item'); | |
var href = location.pathname.split("/")[1] ; | |
if (href === '') { | |
e.find('a[href^="index.html"]') .parent(e) | |
.addClass('aside-nav__item--active'); |
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
var mymodule = (function () { | |
//// переменные //// | |
//// ----------//// | |
// Функция инициализации | |
var launchInit = function () { |