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YֆImADobpb5C է?\I%JF๑RA4ҧ  &URM@,3%13Ki>1EXAEҸӘڋӉ$)sR[h{#@}5J.#:H?d@bul68Wj.e"W1 ;ЯA$>F h^(9mTG|L@)z^نI |qPk&*sh"W8/Tqd"hO ⲃg]J+2"В.%nm @pWp/ErI(dӔyRnP;1&(2Qaȥ]:kn` bGx L2ՓS&6nGxU)=RD. $si?Y\\y,`(.FRIRrI!1ҨPC da:t-4I^(PN7ٮ̐ 3!ӾL0@l[MSR1X4^{]j)(le˄`AȱSWŅO qI q{@,KHf *2A!mB^ Cо$=@qe (Re+kMjv&9nXS%Zj9z$YFW2Q{d=L ~g"8@^طU?֡AGf!1Ot=V2;etXo O(*?PThu~e#/..mB+bu}rl.I@b*="E,v)[0~:aٶi"HM0QS{/(i:fkREM5=sǸc<9Б<4J7In>P۶ou!mGvr4H%=܁89)4f㈭BBL`FBv{.Z'l4,t܌ "k3U*#-:x8J^;m"R;L1Fm d ~P7$|`T}$a]6YddH@ n5wrcauitfD _ var isHelpPage = $('body.current-page_help').length; $(document).ready(function() { $('body.current-page_help .target-content__inside').prepend($('.js-head-notification')); // fix notification var HIDDEN = '_hide'; var CLOSED = '_closed'; var ACTIVE = 'help-menu__active'; function isNodeNameEqual(node, nodeName) { return node.nodeName.toLowerCase() === nodeName; } function toggleNode($elem) { $elem.toggleClass(CLOSED).next('ul').toggleClass(HIDDEN); } // help layout $('body.current-page_help').removeClass('has-cms-menu_true has-cms-menu_false'); $('.current-page_help .target-content__cms-inside-text img').each(function (key, imgItem) { var ignoredNodes = ['td', 'th']; var imgParent = $(imgItem).parent(); if (ignoredNodes.indexOf(imgParent[0].nodeName.toLowerCase()) === -1) { imgParent.css({ display: 'block', overflow: 'auto' }); } }); $('.js-cms-help-menu-arr').click(function (e) { e.preventDefault(); e.stopImmediatePropagation(); toggleNode($(e.target).closest('a')); }); //collapse all menu items $('.navlist-menu-level-1 .help-menu__item__link').each(function (key, elem) { toggleNode($(elem)); }); // expand all list for active $('.' + ACTIVE).parentsUntil('.help-menu', 'ul').each(function (key, elem) { $(elem).removeClass(HIDDEN).prev('a').removeClass(CLOSED); }); toggleNode($('.' + ACTIVE + ' > a')); // help highlight code $('.code.panel .syntaxhighlighter.cpp').removeClass('cpp').addClass('objectivec').find('.cpp').removeClass('cpp'); $('.code.panel .syntaxhighlighter:not(.hljs)').each(function(i, block) { hljs.highlightBlock(block); }); }); $(document).ready(function() { $('.js-help-expand-block-toggle').each(function () { var $currTitle = $(this); var btnText = $currTitle.data('expand') || 'подробнее'; var $btn = $('
' + btnText +'
'); var $block = $currTitle.next(); var $newTitle = $('
'); $newTitle.append($currTitle.html()); $newTitle.append($btn); $currTitle.html($newTitle); $btn.click(function () { $btn.toggleClass('_expanded'); $block.toggleClass('_expanded'); }); }); }); //init toggle menu actions $(document).ready(function() { var lang = 'ru' || 'ru'; var currentBtnType = 'show'; var texts = { 'ru': { 'show': 'Показать меню', 'hide': 'Спрятать меню' }, 'en': { 'show': 'Show menu', 'hide': 'Hide menu' } }; var $TOGGLE_BTN = $('.js-target-help-menu-toggle-btn'); var $HELP_MENU = $('.help-menu'); var $HELP_CONTENT = $('.target-content__inside'); var $CONTENT_WRAP = $('.js-target-content'); function setToggleBtnText(type) { var text = texts[lang][type]; $TOGGLE_BTN.html('' + text + ''); currentBtnType = type; $HELP_CONTENT.toggleClass('_show-help-menu', type === 'hide'); } setToggleBtnText('show'); function closeMenu() { setToggleBtnText('show'); } $TOGGLE_BTN.click(function (e) { if (currentBtnType === 'show') { //if ($CONTENT_WRAP.scrollTop() > 0) { if ($(window).scrollTop() > 0) { /*$CONTENT_WRAP.stop().animate({ scrollTop: 0 }, 200, function () { setToggleBtnText('hide'); });*/ $('html,body').stop().animate({ scrollTop: 0 }, 200, function () { setToggleBtnText('hide'); }); } else { setToggleBtnText('hide'); } } else { setToggleBtnText('show'); } }); $HELP_CONTENT.click(function (e) { if (!$(e.target).hasClass('_show-help-menu')) { return; } closeMenu(); }); //$($CONTENT_WRAP).scroll(function () { $(window).scroll(function () { if (currentBtnType === 'show') { return; } //if ($CONTENT_WRAP.scrollTop() > $HELP_MENU.height() - 20) { // 20 - отступ if ($(window).scrollTop() > $HELP_MENU.height() - 20) { // 20 - отступ closeMenu(); } }); });