1$(function uil_init_mo_popup_card() { 2 3 // ÐозвÑÐ°Ñ Ð½Ð° пÑедÑдÑÑÑÑ ÑÑÑаниÑÑ 4 5 var prev_url = sessionStorage.getItem('mo_popup_card_prev_url'); 6 sessionStorage.setItem('mo_popup_card_prev_url', location.href); 7 8 if ($('.uil-mo-popup-card__body').css('float') !== 'none') 9 $('.uil-mo-popup-card__panel-wrapper').stick_in_parent({ 10 parent: '.uil-mo-popup-card', 11 offset_top: 10 12 }); 13 14 $('.uil-mo-popup-card__panel__item__icon.icon__close > a').click(function () { 15 if (prev_url) { 16 var _prev_url = prev_url.split('#', 1)[0]; 17 if (_prev_url !== location.href && 18 $('.uil-mo-popup-card__breadcrumbs__list__item > a[href="' + prev_url.split(location.host)[1] + '"]').length > 0) { 19 location.href = prev_url; 20 return false; 21 } 22 } 23 var $a = $('.uil-mo-popup-card__breadcrumbs__list__item > a').last(); 24 if ($a.length === 1) { 25 $a[0].click(); 26 return false; 27 } 28 location.href = '/'; 29 }); 30 31 // ÐÑделение ÑÑÑлки Ð´Ð»Ñ ÐºÐ¾Ð¿Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ 32 33 $(document).on('inova_popup.set_html:after', function () { 34 var $input = inova_popup.content.find('.popup-card-url'), 35 $btn = inova_popup.content.find('.popup-card-url-copy'); 36 if ($.browser.safari) { 37 $btn.closest('.uil-grid-form__item__body__item').hide(); 38 } 39 if ($input.length > 0) { 40 $input.click(function () { 41 this.select(); 42 }); 43 $btn.click(function () { 44 $input.get(0).select(); 45 copy_handler = document.oncopy; 46 document.oncopy = function () { 47 return true; 48 }; 49 document.execCommand('Copy'); 50 document.oncopy = copy_handler; 51 }); 52 setTimeout(function () { 53 $input.get(0).select(); 54 }, 250); 55 } 56 }); 57 58});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.