Files
PF-Monitoring/js/alert.js

23 lines
575 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function($) {
$(function() {
// Проверим, есть ли запись в куках о посещении посетителя
// Если запись есть - ничего не делаем
if (!$.cookie('was')) {
// Покажем всплывающее окно
$('#boxUserFirstInfo').arcticmodal({
closeOnOverlayClick: false,
closeOnEsc: true
});
}
// Запомним в куках, что посетитель к нам уже заходил
$.cookie('was', true, {
expires: 365,
path: '/'
});
})
})(jQuery)