1 2; /* Start:"a:4:{s:4:"full";s:52:"/local/templates/inner/modal/modal.js?17088058295425";s:6:"source";s:37:"/local/templates/inner/modal/modal.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3//document.addEventListener("DOMContentLoaded", function(){ 4/** 5 * ÐеÑвÑй паÑамеÑÑ - ÑÑо ÑекÑÑ Ð¸Ð»Ð¸ ÑÐ»ÐµÐ¼ÐµÐ½Ñ 6 * ÐоказÑваÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð·Ð°ÐºÑÑÑÐ¸Ñ 7 * СобÑÑие пÑи закÑÑÑии 8 */ 9 function ShowModal(item = "", closeBtn = true, closeHandler = () => {}){ 10 var body = document.querySelector("body"); 11 12 var background = document.createElement("div"); 13 var container = document.createElement("div"); 14 var content = document.createElement("div"); 15 var btn_container = document.createElement("div"); 16 var btn = document.createElement("div"); 17 var imgclose = document.createElement("img"); 18 19 body.style="overflow: hidden"; 20 21 background.classList.add("stt-background"); 22 container.classList.add("stt-container"); 23 content.classList.add("stt-content"); 24 btn_container.classList.add("stt-btn_container"); 25 btn.classList.add("stt-btn"); 26 27 if (typeof item === "string" || item instanceof String || typeof item === "number" || item instanceof Number) { 28 var dupNode = item; 29 30 } else { 31 var dupNode = item.cloneNode(true); 32 33 } 34 content.append(dupNode); 35 36 container.append(content); 37 38 imgclose.setAttribute("src", "data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512.001 512.001' style='enable-background:new 0 0 512.001 512.001;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717 L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859 c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287 l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285 L284.286,256.002z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A") 39 40 //btn.innerText = "ÐакÑÑÑÑ"; 41 42 btn.append(imgclose); 43 if (closeBtn){ 44 btn_container.append(btn); 45 } 46 container.append(btn_container); 47 48 49 //modal.style = "position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: #00000024; z-index: 999; display: flex; justify-content: center; align-items: center"; 50 //background.style = "width: 100%; height: 100%"; 51 //content.style = "width: 400px; height: 300px; position: absolute; background-color: #fff"; 52 53 54 if (document.querySelector(".stt-modal")){ 55 56 var modal = document.querySelector(".stt-modal"); 57 modal.innerHTML = ""; 58 modal.append(background, container); 59 modal.style = "display:flex"; 60 btn.addEventListener("click", function(){ 61 modal.style = "display: none"; 62 body.style="overflow: auto"; 63 closeHandler(); 64 65 }); 66 background.addEventListener("click", function(){ 67 modal.style = "display: none"; 68 body.style="overflow: auto"; 69 closeHandler(); 70 71 }); 72 73 } else { 74 var modal = document.createElement("div"); 75 modal.classList.add("stt-modal"); 76 modal.append(background, container); 77 modal.style = "display:flex"; 78 btn.addEventListener("click", function(){ 79 modal.style = "display: none"; 80 body.style="overflow: auto"; 81 closeHandler(); 82 83 }); 84 background.addEventListener("click", function(){ 85 modal.style = "display: none"; 86 body.style="overflow: auto"; 87 closeHandler(); 88 89 }); 90 body.append(modal); 91 } 92 // 93 } 94 95 function LoadedModal(close = false){ 96 var body = document.querySelector("body"); 97 var background = document.createElement("div"); 98 var container = document.createElement("div"); 99 var loaded = document.createElement("img"); 100 101 background.classList.add("stt-background"); 102 container.classList.add("load-container"); 103 104 loaded.setAttribute("src", "img/loaded.gif") 105 106 container.append(loaded); 107 108 if (document.querySelector(".stt-modal")){ 109 110 var modal = document.querySelector(".stt-modal"); 111 modal.innerHTML = ""; 112 modal.append(background, container); 113 modal.style = "display:flex"; 114 if (close){ 115 modal.style = "display: none"; 116 } else { 117 modal.style = "display: flex"; 118 } 119 120 } else { 121 var modal = document.createElement("div"); 122 modal.classList.add("stt-modal"); 123 modal.append(background, container); 124 modal.style = "display:flex"; 125 if (close){ 126 modal.style = "display: none"; 127 } else { 128 modal.style = "display: flex"; 129 } 130 131 body.append(modal); 132 } 133 } 134//}); 135/* End */ 136; 137; /* Start:"a:4:{s:4:"full";
137s:96:"/local/templates/.default/components/asd/subscribe.quick.form/subscribe/script.js?17088058291751";s:6:"source";s:81:"/local/templates/.default/components/asd/subscribe.quick.form/subscribe/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 138if (typeof($) !== 'undefined') { 139 $(document).ready(function() { 140 $('#asd_subscribe_form_article').submit(function(){ 141 if (!$.trim($('#asd_subscribe_form_article input[name$="asd_email"]').val()).length) { 142 return false; 143 } 144 var arPost = {}; 145 arPost.asd_rub = []; 146 $.each($('#asd_subscribe_form_article input'), function() { 147 if ($(this).attr('type')!='checkbox') { 148 arPost[$(this).attr('name')] = $(this).val(); 149 } 150 else if ($(this).attr('type')=='checkbox' && $(this).is(':checked')) { 151 arPost.asd_rub.push($(this).val()); 152 } 153 }); 154 $('#asd_subscribe_res').hide(); 155 $('#asd_subscribe_submit_article').attr('disabled', 'disabled'); 156 157 $.post('/local/components/asd/subscribe.quick.form/action.php', arPost, 158 function(data) { 159 160 if(!$('#asd_subscribe_res').hasClass('success')) { 161 162 if (data.status == 'error') { 163 $('#asd_subscribe_res').css('margin-top', '4px'); 164 $('#asd_subscribe_res').html(data.message); 165 $('#asd_subscribe_res').show(); 166 $('#asd_subscribe_form_article').hide(); 167 } else { 168 $('#asd_subscribe_res').hide(); 169 } 170 171 if(data.status == 'error'){ 172 $('#asd_subscribe_form_article input[name$="asd_email"]').addClass('invalid'); 173 }else{ 174 $('#asd_subscribe_form_article input[name$="asd_email"]').removeClass('invalid'); 175 $('input[name=asd_email]').val(''); 176 $('#asd_subscribe_res').css('margin-top', '4px').addClass('success'); 177 $('#asd_subscribe_res').html(data.message); 178 $('#asd_subscribe_res').show(); 179 $('#asd_subscribe_form_article').hide(); 180 } 181 182 $('#asd_subscribe_submit_article').removeAttr('disabled'); 183 184 } 185 }, 'json'); 186 return false; 187 }); 188 }); 189} 190/* End */ 191;; /* /local/templates/inner/modal/modal.js?17088058295425*/ 192; /* /local/templates/.default/components/asd/subscribe.quick.form/subscribe/script.js?17088058291751*/
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.