(function () { var informers = [ { id: "film_gogol", background: "/static/images/informer/Banner_bg_12.jpg?t=1503048433000", image: "/static/images/informer/Banner_container_12.png?t=1503048433000", mobile_image: "/static/images/informer/Banner_mobile_12.png?t=1503048433000", url: "https://thequestion.ru/interview/2592/film-gogol", topicIds: [] }, { id: "yandex_dzen", background: "/static/images/informer/Banner_bg_8.jpg?t=1503048433000", image: "/static/images/informer/Banner_container_8.png?t=1503048433000", mobile_image: "/static/images/informer/Banner_mobile_8.png?t=1503048434000", url: "https://thequestion.ru/interview/2478/yandeks-dzen", topicIds: [] }, { id: "british-council", background: "/static/images/informer/Banner_bg_10.jpg?t=1503048433000", image: "/static/images/informer/Banner_container_10.png?t=1503048433000", mobile_image: "/static/images/informer/Banner_mobile_10.png?t=1503048433000", url: "https://thequestion.ru/interview/2631/british-council", topicIds: [] }, { id: "tor", background: "/static/images/informer/Banner_bg_11.jpg?t=1503048433000", image: "/static/images/informer/Banner_container_11.png?t=1503048433000", mobile_image: "/static/images/informer/Banner_mobile_11.png?t=1503048433000", url: "https://thequestion.ru/interview/2628/tor", topicIds: [] } ]; var header = document.querySelector('.header') || document.querySelector('.global-suit-header'); var headerExtension = document.querySelector('.mobile-menu-horizontal__wrapper'); var informer = document.querySelector('.informer'); var informerClose = document.querySelector('.informer__close'); var informerImage = document.querySelector('.informer__image'); var informerImageMobile = document.querySelector('.informer__image-mobile'); var informerVideo = document.querySelector('.informer__video'); var targetState = ''; var w = window, d = document, e = d.documentElement, g = d.getElementsByTagName('body')[0]; var availableInformers = informers.filter(function (informer) { var name = 'informer_' + informer.id; return !cookieGet(name); }); if (availableInformers.length < 1) { return false; } if (account && account.followedTopicIds) { var _availableInformers = availableInformers.filter(function (informer) { informer.topicIds = informer.topicIds || []; return diff(informer.topicIds, account.followedTopicIds).length > 0; }); if (_availableInformers.length > 0) { availableInformers = _availableInformers; targetState = '-target'; } } var informerIndex = randomIntFromInterval(0, availableInformers.length - 1) var selectedInformer = availableInformers[informerIndex]; informer.setAttribute('data-name', selectedInformer.id); informer.setAttribute('href', '/out?url=' + encodeURIComponent(selectedInformer.url) + encodeURIComponent('?utm_source=thequestion&utm_medium=informer&utm_campaign=' + selectedInformer.id)); informer.style.backgroundImage = 'url(' + selectedInformer.background + ')'; informer.style.display = 'flex'; informerImage.setAttribute('src', selectedInformer.image); informerImageMobile.setAttribute('src', selectedInformer.mobile_image); if (selectedInformer.video) { informerVideo.setAttribute('src', selectedInformer.video); } else { informerVideo.style.display = 'none'; } if (informer && header) { var name = 'informer_' + selectedInformer.id; var lastKnownScrollPosition = 0; var inProgress = false; var interval = null; var informerRequestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) { window.setTimeout(callback, 1000 / 60) }; function positioningHeaderWithInformer(scrollPosition) { var width = w.innerWidth || e.clientWidth || g.clientWidth; var margin = header.clientHeight + (headerExtension ? headerExtension.clientHeight + 1 : 0); if (margin === 0) { return false; } clearInterval(interval); if (width < 1025) { informer.style.marginTop = margin + 'px'; informer.style.marginBottom = '-' + margin + 'px'; } else { informer.style.marginTop = 0 + 'px'; informer.style.marginBottom = '-' + 0 + 'px'; } if (scrollPosition < informer.clientHeight && width > 1024) { header.style.marginTop = informer.clientHeight + 'px'; header.style.position = 'absolute'; } else { header.style.marginTop = '0px'; header.style.position = 'fixed'; } } function onScrollAndResize() { lastKnownScrollPosition = window.scrollY; if (!inProgress) { informerRequestAnimationFrame(function () { positioningHeaderWithInformer(lastKnownScrollPosition); inProgress = false; }); } inProgress = true; } function onCloseClick(e) { e.preventDefault(); e.stopPropagation(); cookieSet(name, 'true', { expires: 999999 * 2 }); informer.style.display = 'none'; informer.innerHTML = ''; positioningHeaderWithInformer(window.scrollY); ga('send', 'event', 'informer', name, 'close' + targetState); return false; } function onOpenClick() { ga('send', 'event', 'informer', name, 'click' + targetState); } window.addEventListener('scroll', onScrollAndResize); window.addEventListener('resize', onScrollAndResize); informer.addEventListener('click', onOpenClick); informerClose.addEventListener('click', onCloseClick); positioningHeaderWithInformer(window.scrollY); interval = setInterval(onScrollAndResize, 1000 / 60); window.addEventListener('load', function () { if (!window.isBot) { ga('send', 'event', 'informer', name, 'view' + targetState); } }); } function randomIntFromInterval(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); } function cookieGet(name) { var matches = document.cookie.match(new RegExp( '(?:^|; )' + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + '=([^;]*)' )); return matches ? decodeURIComponent(matches[1]) : false; } function cookieSet(name, value, options) { options = options || {}; var expires = options.expires; if (typeof expires === 'number' && expires) { var d = new Date(); d.setTime(d.getTime() + expires * 1000); expires = options.expires = d; } if (expires && expires.toUTCString) { options.expires = expires.toUTCString(); } console.log(expires); value = encodeURIComponent(value); var updatedCookie = name + '=' + value + '; path=/; expires=' + expires + ';'; for (var propName in options) { updatedCookie += ''; '' + propName; var propValue = options[propName]; if (propValue !== true) { updatedCookie += '=' + propValue; } } document.cookie = updatedCookie; } function diff(arr1, arr2) { var ret = []; arr1.sort(); arr2.sort(); for (var i = 0; i < arr1.length; i += 1) { if (arr2.indexOf(arr1[i]) > -1) { ret.push(arr1[i]); } } return ret; }; })();
Добро пожаловать!
Задайте любой вопрос на любую тему ЂЂЂ мы найдем эксперта, который ответит на него.
---
Например: Как стать продуктивнее?
Ваш вопрос слишком длинный
Задать вопрос
Знание создается людьми, их общими усилиями. Уже сейчас в нашей базе более 200 000 вопросов и ответов. От самых детских про то, почему небо голубое, до разбора вопросов по квантовой физики. У нас отвечают и Владимир Познер, и Bad Comedian. А также простые пользователи, которые с удовольствием делятся опытом в своей сфере. Так и получаются полезные вопросы и ответы, которые интересно читать.
bbc203.prn-nast.com \\\\\yandex328.prn-nast.com \\\\\dojki304.prn-nast.com \\\\\medvesti495.prn-nast.com \\\\\pornmult320.prn-nast.com \\\\\