1var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; 2if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } 3{ 4 let window = _____WB$wombat$assign$function_____("window"); 5 let self = _____WB$wombat$assign$function_____("self"); 6 let document = _____WB$wombat$assign$function_____("document"); 7 let location = _____WB$wombat$assign$function_____("location"); 8 let top = _____WB$wombat$assign$function_____("top"); 9 let parent = _____WB$wombat$assign$function_____("parent"); 10 let frames = _____WB$wombat$assign$function_____("frames"); 11 let opener = _____WB$wombat$assign$function_____("opener"); 12 13function add_to_cart(product_id) { 14 $.post( "/adm-ekb/backend/add_to_cart.php", {product_id: product_id}, update_cart); 15 $.post( "/adm-ekb/backend/up_cart.php", {product_id: product_id}); 16} 17function update_cart() { 18 $.post( "/adm-ekb/backend/cart_interface.php", {}, on_success); 19 function on_success(data) 20 { 21 $('#cart_interface').html(data); 22 $.post( "/adm-ekb/backend/update_cart.php", {}, on_success); 23 function on_success(data) 24 { 25 $('#small_cart').html(data); 26 $.post( "/adm-ekb/backend/close.php", {}, on_success); 27 function on_success(data) 28 { 29 $('#product_detail').html(data); 30 } 31 } 32 } 33} 34function remove_from_cart(product_id) { 35 $.post( "/adm-ekb/backend/remove_from_cart.php", {product_id:product_id}, update_cart_interface); 36} 37function clear_cart() { 38 $.post("/adm-ekb/backend/clear_cart.php",{}, update_cart_interface); 39} 40function update_product_count(product_id, count) { 41 $.post( "/adm-ekb/backend/update_product_count.php", {product_id:product_id, count:count}, update_cart_interface); 42} 43function update_cart_interface() { 44 $.post( "/adm-ekb/backend/cart_interface.php", {}, on_success); 45 function on_success(data) 46 { 47 $('#cart_interface').html(data); 48 $.post( "/adm-ekb/backend/update_cart.php", {}, on_success3); 49 function on_success3(data3) 50 { 51 $('#small_cart').html(data3); 52 } 53 } 54} 55function go_page(page) { 56 $.post( "/catalog/cat.php", {stranica: page}, reload_catalog); 57 function reload_catalog(data) { 58 $('#catalog').html(data); 59 } 60} 61function go_page_next(page) { 62 $.post( "/catalog/next/cat.php", {stranica: page}, reload_catalog); 63 function reload_catalog(data) { 64 $('#subWrapper').html(data); 65 } 66} 67function go_page_next2(page) { 68 $.post( "/catalog/next_2/cat.php", {stranica: page}, reload_catalog); 69 function reload_catalog(data) { 70 $('#subWrapper').html(data); 71 } 72} 73function go_page_next3(page) { 74 $.post( "/catalog/next_3/cat.php", {stranica: page}, reload_catalog); 75 function reload_catalog(data) { 76 $('#subWrapper').html(data); 77 } 78} 79function go_w_page(page) { 80 $.post( "/catalog/wellness/catalog.php", {stranica: page}, reload_catalog); 81 function reload_catalog(data) { 82 $('#subWrapper').html(data); 83 } 84} 85function show_product(product_id) { 86 $.post( "/adm-ekb/backend/product_detail.php", {product_id:product_id}, on_success); 87 function on_success(data) 88 { 89 $('#myModal').html(data); 90 $.post( "/adm-ekb/backend/product_desc.php", {product_id:product_id}, on_success2); 91 function on_success2(data2) 92 { 93 $('#product_desc').html(data2); 94 } 95 } 96 97} 98function product_desc(product_id) { 99 $.post( "/adm-ekb/backend/product_desc.php", {product_id:product_id}, on_success); 100 function on_success(data) 101 { 102 $('#product_desc').html(data); 103 } 104 105} 106function show_basket() { 107 $.post( "/adm-ekb/backend/zakaz_detail.php", {}, on_success); 108 function on_success(data) 109 { 110 $('#zakaz_detail').html(data); 111 } 112} 113function close_product() { 114 $.post( "/adm-ekb/backend/close.php", {}, on_success); 115 function on_success(data) 116 { 117 $('#product_detail').html(data); 118 } 119} 120function close_zakaz() { 121 $.post( "/adm-ekb/backend/close.php", {}, on_success); 122 function on_success(data) 123 { 124 $('#zakaz_detail').html(data); 125 } 126} 127function go_picture() { 128 var products = document.getElementsByClassName('products'); 129 var success = 0; 130 var danger = 0; 131 var i = 0; 132 get_product(products,i,success,danger); 133 function get_product(products,i,success,danger) { 134 var id = products[i].value; 135 post_pic(products,i,id,success,danger); 136 } 137 function post_pic(products,i,id,success,danger) { 138 $.post( "/adm-ekb/catalogs/picture.php", {id:id}, function (data) { 139 if (data == 'ok') { 140 success += 100/products.length; 141 $('.progress-bar-success').attr("style","width: "+success+"%;"); 142 $('.progress-bar-success').html(Math.round(success)+"%"); 143 } else { 144 danger += 100/products.length; 145 $('.progress-bar-danger').attr("style","width: "+danger+"%;"); 146 $('.progress-bar-danger').html(Math.round(danger)+"%"); 147 } 148 if (++i<products.length) { get_product(products,i,success,danger);} 149 }); 150 } 151} 152 153function go_cat_pages() { 154 var success = 0; 155 var danger = 0; 156 var i = 1; 157 get_pages_img(i,success,danger); 158 function get_pages_img(i,success,danger) { 159 console.log(i); 160 $.post( "/adm-ekb/catalogs/pages.php", {id:i}, function (data) { 161 if (data == 'fail') { 162 danger += 100/200; 163 $('.pprogress-bar-danger').attr("style","width: "+danger+"%;"); 164 $('.pprogress-bar-danger').html(Math.round(danger)+"%"); 165 } else { 166 success += 100/200; 167 $('#current_catalog').attr('src', data); 168 $('.pprogress-bar-success').attr("style","width: "+success+"%;"); 169 $('.pprogress-bar-success').html(Math.round(success)+"%"); 170 } 171 if (++i<200) { get_pages_img(i,success,danger);} 172 }); 173 } 174} 175 176function go_cat_pages_next() { 177 var success = 0; 178 var danger = 0; 179 var i = 1; 180 get_pages_img(i,success,danger); 181 function get_pages_img(i,success,danger) { 182 console.log(i); 183 $.post( "/adm-ekb/catalogs/pages_next.php", {id:i}, function (data) { 184 if (data == 'fail') { 185 danger += 100/200; 186 $('.nprogress-bar-danger').attr("style","width: "+danger+"%;"); 187 $('.nprogress-bar-danger').html(Math.round(danger)+"%"); 188 } else { 189 success += 100/200; 190 $('#next_catalog').attr('src', data); 191 $('.nprogress-bar-success').attr("style","width: "+success+"%;"); 192 $('.nprogress-bar-success').html(Math.round(success)+"%"); 193 } 194 if (++i<200) { get_pages_img(i,success,danger);} 195 }); 196 } 197} 198 199function translit() { 200 var rusChars = new Array('а','б','в','г','д','е','Ñ','ж','з','и','й','к','л','м','н','о','п','Ñ','Ñ','Ñ','Ñ','Ñ','Ñ ','Ñ','Ñ','Ñ','Ñ','Ñ','Ñ','\Ñ','Ñ','Ñ','Ñ', ' ', '\'', '\"', '\#', '\$', '\%', '\&', '\*', '\,', '\:', '\;', '\<', '\>', '\?', '\[', '\]', '\^', '\{', '\}', '\|', '\!', '\@', '\(', '\)', '\-', '\=', '\+', '\/', '\\'); 201 var transChars = new Array('a','b','v','g','d','e','jo','zh','z','i','j','k','l','m','n','o','p','r','s','t','u','f','h','ch','c','sh','csh','e','ju','ja','y','', '', '_', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''); 202 var from = ""; 203 from = document.getElementById("title").value; 204 from = from.toLowerCase(); 205 var to = ""; 206 var len = from.length; 207 var character, isRus; 208 for(var i=0; i < len; i++) { 209 character = from.charAt(i,1); 210 isRus = false; 211 for(var j=0;
211 j < rusChars.length; j++) { 212 if(character == rusChars[j]) { 213 isRus = true; 214 break; 215 } 216 } 217 to += (isRus) ? transChars[j] : character; 218 } 219 document.edit.alias.value = to; 220} 221 222function check_em() { 223 $('#check_email').html('<img width="17" src="/images-ekb/loading.gif">'); 224 var email = $('#email').val(); 225 console.log(email); 226 $.post( "/adm-ekb/check_email.php", {email:email}, function (data) { 227 if (data == 'true') { 228 $('#check_email').html('<span class="glyphicon glyphicon-thumbs-up green"></span>'); 229 } else { 230 $('#check_email').html('<span class="glyphicon glyphicon-thumbs-down red"></span>'); 231 } 232 }); 233} 234 235function go_link() { 236 var tags = document.getElementsByClassName('tags'); 237 var success = 0; 238 var danger = 0; 239 var i = 0; 240 get_page(tags,i,success,danger); 241 function get_page(tags,i,success,danger) { 242 var val = tags[i].value.split('::'); 243 var tag = val[0]; 244 var link = val[1]; 245 relink(tags,i,tag,link,success,danger); 246 } 247 function relink(tags,i,tag,link,success,danger) { 248 $.post( "/adm-ekb/link.php", {tag:tag,link:link}, function (data) { 249 if (data == 'ok+') { 250 success += 100/tags.length; 251 $('.progress-bar-success').attr("style","width: "+success+"%;"); 252 $('.progress-bar-success').html(Math.round(success)+"%"); 253 $('#'+tag).removeClass('label-default').addClass('label-success'); 254 } else if (data == 'ok') { 255 success += 100/tags.length; 256 $('.progress-bar-success').attr("style","width: "+success+"%;"); 257 $('.progress-bar-success').html(Math.round(success)+"%"); 258 $('#'+tag).removeClass('label-default').addClass('label-info'); 259 } else { 260 danger += 100/tags.length; 261 $('.progress-bar-danger').attr("style","width: "+danger+"%;"); 262 $('.progress-bar-danger').html(Math.round(danger)+"%"); 263 $('#'+tag).removeClass('label-default').addClass('label-warning'); 264 } 265 if (++i<tags.length) { get_page(tags,i,success,danger);} 266 }); 267 } 268} 269 270function add_subscriber() { 271 var name = $('#name').val(); 272 var email = $('#email').val(); 273 $.post( "/adm-ekb/sendmail/sendmail.php", {name:name,email:email,active:'active',user:3}); 274} 275 276} 277/* 278 */ 279/* 280*/
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.