endy.run(endy.footer);
var endy = endy || {};
endy.form = {
send: function(e) {
var t = this,
i = $(e),
a = {},
s = i.attr("method").toLowerCase(),
n = i.attr("action");
i.find("input:not([type=button]):not([type=submit]), textarea").each(function(e, t) {
("radio" == $(t).attr("type") && "checked" == $(t).attr("checked") || "radio" != $(t).attr("type")) && (a[$(t).attr("name")] = $(t).val())
}), s && "post" != s ? "get" == s && $.get(n, a, function(e) {
t.test(i, e)
}) : $.post(n, a, function(e) {
t.test(i, e)
})
},
test: function(e, t) {
var i = this;
try {
t = $.parseJSON(t)
} catch (a) {
a && console.log(a), i.error(e, t)
} finally {
switch (t.type) {
case "success":
i.success(e, t);
break;
default:
i.error(e, t)
}
}
},
success: function(e, t) {
endy.popup.openAction("send-form");
var i = endy.popup.el.blank.filter("[data-popup-id=send-form]");
t.title && i.find(".popup-blank__title").html(t.title), t.descr && i.find(".popup-blank__descr").html(t.descr);
var a = $(e).attr("data-ya_type");
a && _yaCounter.reachGoal(a);
_gaq.push(['_trackEvent', 'Forms', a]);
},
error: function(e, t) {
t.title ? alert(t.title) : console.log(t)
},
init: function() {
var e = this;
$(document).on("submit", "form.form", function() {
return e.send(this), !1
}), expromptum(), $("input[type=tel]").mask("+7 999 999-99-99")
}
}, endy.run(endy.form), endy.formTime = {
itemClass: "form-item__time-change-item",
activeClass: "form-item__time-change-item_active",
init: function() {
var e = this;
$(document).on("click", "." + this.itemClass, function(t) {
if (!$(this).hasClass(e.activeClass)) {
$("." + e.activeClass).removeClass(e.activeClass), $(this).addClass(e.activeClass);
var i = $(this).parent().parent().next();
i.css("display", "show" == $(this).attr("data-type") ? "table" : "none"), $(this).parent().next().val("show" == $(this).attr("data-type") ? "0" : "1"), t.preventDefault()
}
})
}
}
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
А у меня от 9 до 15 фотографий.