Архив
Апрель 2024
ПнВтСрЧтПтСбВс
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     

Алло, мы ищем таланты!

481 19 февраля 2021 | Общество

Алло, мы ищем таланты!

Идет прием заявок на онлайн-фестиваль "Алло, мы ищем таланты!", проводимый Администрацией Аскизского района РХ.
Регистрация и подача заявки по ссылке: https://myrosmol.ru/admin/event/59298
По окончании мероприятия вы получите баллы, которые вам в будущем могут очень пригодиться.
Чтобы их получить, нужно после подачи заявки получить одобрение, потом вновь подтвердить своё участие.
Конкурсные материалы можно отправить на электронную почту: obytotova@mail.ru до 24 февраля.
И если материалы будут получены у вас появиться галочка об участии и баллы ваши.

На самом деле это не сложно)))
    
    
    
<script>
//var recaptchaLoaded = false; // this is in <head> now

var needRecaptcha = true;
var recaptchaWidgetId = null;
var recaptchaSiteKey = '6LdSFzQUAAAAAJUAAZcWekpBkjU83J1N7jsYlXqY';

function isElementInViewport (el) {
    //special bonus for those using jQuery
    if (typeof jQuery === = 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */ rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */ ); } // this is in now /*function recaptchaApiLoaded() { recaptchaLoaded = true; }*/ var user = { name: Cookies.get('name'), email: Cookies.get('email') }; var newsId = 5265; function hideForm() { $('#comment-form').hide('normal'); $('#comment-form-origin').append($('#comment-form')); $('#comment-to').val(''); $('#comment-action').val(''); } $(function() { $('#existing-comments').load('/comments.php?news='+newsId); $('#reload-comments').click(function(e) { e.preventDefault(); hideForm(); $('#existing-comments').empty().append($('<'+'div style="text-align: center"><'+'img src="/images/spinner.gif"><'+'/div>')); $('#existing-comments').load('/comments.php?news='+newsId); }); $('body').on('click', '.js-comment', function(e) { e.preventDefault(); var commentTo = $(this).data('commentTo'); if ($('#comment-to').val() == commentTo && $('#comment-action').val() == 'insert') { return; } $('#comment-action').val('insert'); $('#comment-to').val(commentTo); $('#comment-name').val(user.name); $('#comment-email').val(user.email); $('#comment-text').val(''); if (recaptchaLoaded && needRecaptcha && recaptchaWidgetId === null) { recaptchaWidgetId = grecaptcha.render( 'recaptcha-container', { sitekey: recaptchaSiteKey }); } $('#'+commentTo+'-forms').append($('#comment-form')); $('#comment-form').show('normal'); if ($('#comment-name').val() == '') { $('#comment-name').focus(); } else { $('#comment-text').focus(); } }); $('body').on('click', '.js-edit', function(e) { e.preventDefault(); var commentTo = $(this).data('commentTo'); if ($('#comment-to').val() == commentTo && $('#comment-action').val() == 'edit') { return; } var commentId = $(this).data('commentId'); $('#comment-action').val('edit'); $('#comment-to').val(commentTo); $('#comment-name').val($(this).data('name')); $('#comment-email').val($(this).data('email')); $('#comment-text').val($('#comment-'+commentId+'-raw').val()); $('#'+commentTo+'-forms').append($('#comment-form')); $('#comment-form').show(); $('#comment-text').focus(); }); $('body').on('click', '.js-delete', function(e) { e.preventDefault(); var confirmed = confirm('Удалить комменатарий?'); if (!confirmed) { return; } var id = $(this).data('commentId'); $.post('/comments-ajax.php', { action: 'delete', id: id }, function(response) { if (response.success) { $('#comment-'+id+'-text').html('<'+'div class="comment-deleted-message">Комментарий удален<'+'/div>'); } else if (response.msg) { alert(response.msg); } else { alert('Ошибка отправки'); } }); }); $('body').on('click', '.js-block-ip', function(e) { e.preventDefault(); var confirmed = confirm('Заблокировать IP?'); if (!confirmed) { return; } var id = $(this).data('commentId'); $.post('/comments-ajax.php', { action: 'block-ip', id: id }, function(response) { if (response.success) { alert('IP заблокирован'); } else if (response.msg) { alert(response.msg); } else { alert('Ошибка отправки'); } }); }); $('#cancel-button').click(function() { hideForm(); }); $('#send-button').click(function() { var action = $('#comment-action').val(); var commentTo = $('#comment-to').val(); // 'news-3', 'comment-345' var name = $('#comment-name').val(); var email = $('#comment-email').val(); var text = $('#comment-text').val(); if (name == '') { alert('Не заполнено поле "Имя"'); return; } if(text == '') { alert('Не заполнено поле "Сообещение"'); return; } if (action == 'insert') { user.name = name; user.email = email; Cookies.set('name', name, {expires: 30}); Cookies.set('email', email, {expires: 30}); } var request = { action: action, commentTo: commentTo, name: name, email: email, text: text }; if (needRecaptcha && recaptchaWidgetId !== null) { request['g-recaptcha-response'] = grecaptcha.getResponse(recaptchaWidgetId); } $.post('/comments-ajax.php', request) .then(function(response) { if (response.success) { $('#recaptcha-container').hide(); needRecaptcha = false; hideForm(); if (action == 'insert') { if (commentTo.substr(0,5) == 'news-') { $('#existing-comments').prepend(response.newComment); } else { var commentId = commentTo.substr('comment-'.length); var $commentBody = $('#comment-'+commentId+'-body'); var $commentsBlock; var $next = $commentBody.next(); if ($next.size() == 0 || !$next.hasClass('comments-block')) { $commentsBlock = $('<'+'div class="comments-block"><'+'/div>'); $commentsBlock.insertAfter($commentBody); } else { $commentsBlock = $next; } var $newComment = $(response.newComment); $commentsBlock.append($newComment); if (!isElementInViewport($newComment)) { $('html, body').animate({ scrollTop: $newComment.offset().top }, 1000); } } } else { var commentId = commentTo.substr('comment-'.length); $('#comment-'+commentId+'-body').replaceWith(response.newComment); } } else if (response.msg) { alert(response.msg); } else { alert('Ошибка отправки'); } }); }); })

Фотогалерея