1 2const rcit_agreement = { 3 4 block: null, 5 6 init( opt ) { 7 rcit_agreement.opt_text = opt.text; 8 rcit_agreement.opt_text_btn = opt.text_btn; 9 rcit_agreement.opt_color_bg = opt.color_bg; 10 rcit_agreement.opt_color_btn = opt.color_btn; 11 }, 12 13 show_block() { 14 if (BX.getCookie("rcit_agreement") === 'Y') { 15 return false; 16 } 17 rcit_agreement.block = BX.create( 18 'div', { 19 props: {className: 'cms-cookieAccept'}, 20 style: { 'background-color': rcit_agreement.opt_color_bg }, 21 children: [ 22 BX.create( 23 'div', { 24 props: {className: 'container'}, 25 children: [ 26 BX.create( 27 'div', { 28 props: {className: 'cookieAccept-panel'}, 29 children: [ 30 BX.create( 31 'div', { 32 props: {className: 'accept-button'}, 33 style: { 'background-color': rcit_agreement.opt_color_btn }, 34 html: ('ÐодÑобнее'), 35 events: { 36 click: function(e) { 37 e.preventDefault(); 38 rcit_agreement.hide_block_no(); 39 return false; 40 } 41 } 42 } 43 ), 44 BX.create( 45 'div', { 46 props: {className: 'accept-button'}, 47 style: { 'background-color': rcit_agreement.opt_color_btn }, 48 html: (rcit_agreement.opt_text_btn), 49 events: { 50 click: function(e) { 51 e.preventDefault(); 52 rcit_agreement.hide_block(); 53 return false; 54 } 55 } 56 } 57 ) 58 ] 59 } 60 ), 61 BX.create( 62 'div', { 63 props: {className: 'cookieAccept-content'}, 64 html: (rcit_agreement.opt_text) 65 } 66 ) 67 ] 68 } 69 ) 70 ] 71 } 72 ); 73 74 BX.append(rcit_agreement.block, document.body); 75 var _easing = new BX.easing( { 76 duration: 500, 77 start: { opacity : 0 }, 78 finish: { opacity: 100 }, 79 transition: BX.easing.transitions.linear, 80 step: function(state) { 81 rcit_agreement.block.style.height = state.height + "px"; 82 rcit_agreement.block.style.opacity = state.opacity/100; 83 }, 84 // complete : function() { } 85 } ); 86 _easing.animate(); 87 }, 88 89 hide_block() { 90 BX.hide(rcit_agreement.block); 91 BX.setCookie("rcit_agreement", 'Y', {expires: 86400 * 365, path: '/'}); // 365 дней 92 }, 93 hide_block_no() { 94 BX.hide(rcit_agreement.block); 95 window.location = '/cookies/'; 96 }, 97 98}
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.