Государственное задание на 2015 год и на плановый период 2016 и 2017 годов









window.sputnikCounter = window.sputnikCounter || { };
window.sputnikCounter.events = window.sputnikCounter.events || [ ];

var $feedback = $('#feedback');
var $button = $('#button_show_form');
#feedback.hide();

$button.on('click', function(){
window.sputnikCounter.event.push({
form: "open"
});
$feedback.show();
})
$feedback.find('form').on('submit, function(event) {
event.preventDefault();
window.sputnikCounter.event.push({
form: "submit"
});
$.ajax({
url: $(this).attr('action'),
success: function(){
window.sputnikCounter.events.push({
form: "success"
});
otherYourSuccessCode.apply(this, arguments);
},
error: function() {
window.sputnikCounter.events.push({
form: "error"
});
otherYourFailureCode.apply(this, arguments);
}
});
})

(function(d, t, p) {
var j = d.createElement(t); j.async = true; j.type = "text/javascript";
j.src = ("https:" == p ? "https:" : "http:") + "//stat.sputnik.ru/cnt.js";
var s = d.getElementsByTagName(t)[0]; s.parentNode.insertBefore(j, s);
})
(document, "script", document.location.protocol);