1//ÐÐ¾Ð´Ð¼ÐµÐ½Ñ 2$('.poditem').on('click', async function () { 3 left = $(this).offset().left; 4 $('.podmenu').css({ 'display': 'none' }); 5 $(this).next().css({ 'display': 'inline-block', 'left': left }); 6}) 7 8$('.white').on('mouseleave', async function () { 9 $('.podmenu').css({ 'display': 'none' }); 10}) 11 12$('.assortment').on('click', async function () { 13 $('.podmenu').css({ 'display': 'none' }); 14}) 15 16 17//ÐнимаÑÐ¸Ñ ÐºÐ¾ÑÐ·Ð¸Ð½Ñ 18$('.animcart').on("click", async function () { 19 let starttext = $(this).offset()['left']; 20 let endtext = $(".carttext").offset()['left']; 21 let newtext = 400 - starttext / 10; 22 let sizewindow = ($(window).width()); 23 // alert($(this).attr('class').split(' ')[1]); 24 if (sizewindow > 768) { 25 $(this).clone() 26 .css({ 'position': 'absolute', 'z-index': '9999999', }) 27 .appendTo(this).animate({ 28 top: -200, 29 left: newtext, 30 opacity: 0, 31 width: 40 32 }, 1000, function () { 33 $(this).remove(); 34 }); 35 } 36 else { 37 $(this).clone() 38 .css({ 'position': 'absolute', 'z-index': '9999999', 'width': '50%' }) 39 .appendTo(this).animate({ 40 top: 200, 41 left: 200, 42 opacity: 0, 43 width: 40 44 }, 1000, function () { 45 $(this).remove(); 46 }); 47 $('.float_cart').clone() 48 .css({ 'background-color': '#21711e' }) 49 .appendTo('.float_cart').animate({ 50 'background-color': '#21711e', 51 }, 500, function () { 52 $('.float_cart:last').remove(); 53 }); 54 55 } 56}); 57 58//ÐÑпÑавка оÑзÑвов 59$('#otpravka-otzivi').on("click", async function () { 60 var name = $('#name-otzivi').val(); 61 var nomer = $('#nomer-otzivi').val(); 62 var message = $('#message-otzivi').val(); 63 var secret = $('#secret').val(); 64 var token = $('#token').val(); 65 secret = secret.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 66 name = name.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 67 nomer = nomer.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 68 nomer = nomer.replace(/\s/g, ''); 69 nomer = '+' + nomer; 70 message = message.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 71 if (secret.length > 0) { 72 } 73 else if (name.length < 1 || nomer.length < 1 || message.length < 1) { 74 $(' .info').html('ÐÐ°Ð¿Ð¾Ð»Ð½ÐµÐ½Ñ Ð½Ðµ вÑе полÑ!') 75 } else { 76 await $.ajax({ 77 type: 'POST', 78 url: 'https://ambapizza.ru/wp-content/themes/pizza/otzivi-ok.php', 79 data: { name: name, nomer: nomer, message: message, token: token }, 80 success: function (data) { 81 window.location.replace("#ok"); 82 $('#name-otzivi').val(''); 83 $('#nomer-otzivi').val(''); 84 $('#message-otzivi').val(''); 85 $('#secret').val(''); 86 } 87 }); 88 } 89 90}); 91 92//ÐÑпÑавка ÑоÑÑÑдниÑеÑÑва 93$('#otpravka-partner').on("click", async function () { 94 var name = $('#name-partner').val(); 95 var nomer = $('#nomer-partner').val(); 96 var message = $('#message-partner').val(); 97 var secret = $('#secret').val(); 98 var token = $('#token').val(); 99 secret = secret.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 100 name = name.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 101 nomer = nomer.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 102 nomer = nomer.replace(/\s/g, ''); 103 nomer = '+' + nomer; 104 message = message.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 105 if (secret.length > 0) { 106 } 107 else if (name.length < 1 || nomer.length < 1 || message.length < 1) { 108 $(' .info').html('ÐÐ°Ð¿Ð¾Ð»Ð½ÐµÐ½Ñ Ð½Ðµ вÑе полÑ!') 109 } else { 110 $(' .info').html('ÐÐ´ÐµÑ Ð·Ð°Ð³ÑÑзка ÑайлÑ. ÐодождиÑе, пожалÑйÑÑа!') 111 await $.ajax({ 112 type: 'POST', 113 url: 'https://ambapizza.ru/wp-content/themes/pizza/partner-ok.php', 114 data: { name: name, nomer: nomer, message: message, token: token }, 115 success: function (data) { 116 window.location.replace("#ok"); 117 $('#name-partner').val(''); 118 $('#nomer-partner').val(''); 119 $('#message-partner').val(''); 120 $('#secret').val(''); 121 } 122 }); 123 } 124 125}); 126 127 128//ÐÑпÑавка ÑабоÑÑ 129$('#otpravka').on("click", async function () { 130 var name = $('#name').val(); 131 var nomer = $('#nomer-dol').val(); 132 var dol = $('#dol').val(); 133 var secret = $('#secret').val(); 134 var token = $('#token').val(); 135 name = name.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 136 secret = secret.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 137 nomer = nomer.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 138 nomer = nomer.replace(/\s/g, ''); 139 nomer = '+' + nomer; 140 dol = dol.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 141 if (secret.length > 0) { 142 } 143 else if (name.length < 1 || nomer.length < 1) { 144 $(' .info').html('ÐÐ°Ð¿Ð¾Ð»Ð½ÐµÐ½Ñ Ð½Ðµ вÑе полÑ!') 145 } 146 else { 147 await $.ajax({ 148 type: 'POST', 149 url: 'https://ambapizza.ru/wp-content/themes/pizza/sotr-ok.php', 150 data: { name: name, nomer: nomer, dol: dol, token: token }, 151 success: function (data) { 152 window.location.replace("#ok"); 153 $('#name').val(''); 154 $('#nomer-dol').val(''); 155 $('#secret').val(''); 156 } 157 }); 158 } 159 160}); 161 162 163//ÐопиÑÑем пÑомокод 164$('.yaamba').on('click', function () { 165 var copyText = 'ЯÐÐÐÐ'; 166 var copytext2 = document.createElement('input'); 167 copytext2.value = copyText; 168 document.body.appendChild(copytext2); 169 copytext2.select(); 170 document.execCommand("copy"); 171 document.body.removeChild(copytext2); 172 alert('ÐÑомокод ÑкопиÑован!'); 173}); 174 175 176 177//ÐÑпÑавка клиенÑÑкий ÑеÑÐ²Ð¸Ñ 178$('#scales').on("click", async function () { 179 if ($('#scales').is(':checked')) { 180 $('#nomer2-service').val('Ð¢Ð¾Ñ Ð¶Ðµ'); 181 $('#nomer2-service').attr('disabled', 'disabled'); 182 } 183 else { 184 $('#nomer2-service').val(''); 185 $('#nomer2-service').removeAttr('disabled'); 186 } 187}); 188 189$('#otpravka-service').on("click", async function () { 190 //ÐÑиÑÑка полей 191 $(' .info').html(''); $('#otvet').html(''); $('#otvet1').html(''); $('#otvet2').html(''); 192 193 //ÐÑпÑавка даннÑÑ 194 var name = $('#name-service').val(); 195 var nomer = $('#nomer-service').val(); 196 var nomer2 = $('#nomer2-service').val(); 197 var message = $('#message-service').val(); 198 var secret = $('#secret').val(); 199 var token = $('#token').val(); 200 secret = secret.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 201 nomer = nomer.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 202 nomer = nomer.replace(/\s/g, ''); 203 nomer = '+' + nomer; 204 nomer2 = nomer2.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 205 nomer2 = nomer2.replace(/\s/g, ''); 206 nomer2 = '+' + nomer2; 207 message = message.replace(/[^a-zа-ÑÑ0-9\s]/gi, ' '); 208 209 if (secret.length > 0) { 210 } 211 else if (name.length < 1 || nomer.length < 1 || nomer2.length < 1 || message.length < 1) { 212 $(' .info').html('ÐÐ°Ð¿Ð¾Ð»Ð½ÐµÐ½Ñ Ð½Ðµ вÑе полÑ!') 213 } else { 214 var otkaz = 0 215 if (jQuery('#js-file').val() || jQuery('#js-file1').val() || jQuery('#js-file2').val()) { 216 $('#load').html('ÐÐ´ÐµÑ Ð¿ÑовеÑка и загÑÑзка ÑоÑогÑаÑий. ÐодождиÑе, пожалÑйÑÑа.<br>'); 217 } 218 219 // ÐÑовеÑка изобÑажений 220 if (jQuery('#js-file').val()) { 221 var formData1 = new FormData(); 222 formData1.append('file', $("#js-file")[0].files[0]); 223 otkaz = otkaz + 1; 224 var nomerfile1 = 'â1'; 225 await $.ajax({ 226 type: "POST", 227 url: 'https://ambapizza.ru/wp-content/themes/pizza/upload-proverka.php', 228 cache: false, 229 contentType: false, 230 processData: false, 231 data: formData1, 232 dataType: 'json', 233 success: function (msg1) { 234 if (msg1.error == '') { 235 otkaz = otkaz - 1; 236 } else { 237 $('#otvet').html(msg1.error + " " + nomerfile1); 238 } 239 } 240 }); 241 } 242 243 if (jQuery('#js-file1').val()) { 244 // ÐÑпÑавка изобÑажений 245 var formData2 = new FormData(); 246 formData2.append('file', $("#js-file1")[0].files[0]); 247 var nomerfile2 = 'â2'; 248 otkaz = otkaz + 1; 249 await $.ajax({ 250 type: "POST", 251 url: 'https://ambapizza.ru/wp-content/themes/pizza/upload-proverka.php', 252 cache: false, 253 contentType: false, 254 processData: false, 255 data: formData2, 256 dataType: 'json', 257 success: function (msg2) { 258 if (msg2.error == '') { 259 otkaz = otkaz - 1; 260 } else { 261 $('#otvet1').html(msg2.error + " " + nomerfile2); 262 } 263 } 264 }); 265 } 266 267 if (jQuery('#js-file2').val()) { 268 // ÐÑпÑавка изобÑажений 269 var formData3 = new FormData(); 270 formData3.append('file', $("#js-file2")[0].files[0]); 271 var nomerfile3 = 'â3'; 272 otkaz = otkaz + 1; 273 await $.ajax({ 274 type: "POST", 275 url: 'https://ambapizza.ru/wp-content/themes/pizza/upload-proverka.php', 276 cache: false, 277 contentType: false, 278 processData: false, 279 data: formData3, 280 dataType: 'json', 281 success: function (msg3) { 282 if (msg3.error == '') { 283 otkaz = otkaz - 1; 284 } else { 285 $('#otvet2').html(msg3.error + " " + nomerfile3); 286 287 } 288 } 289 }); 290 } 291 292 293 if (otkaz == 0) { 294 if (jQuery('#js-file').val() || jQuery('#js-file1').val() || jQuery('#js-file2').val()) { 295 $('#load').html(''); 296 } 297 //оÑпÑавка в ÑÐµÐ»ÐµÐ³Ñ 298 if (jQuery('#js-file').val()) { 299 var formData = new FormData(); 300 formData.append('file', $("#js-file")[0].files[0]); 301 $.ajax({ 302 type: "POST", 303 url: 'https://ambapizza.ru/wp-content/themes/pizza/upload.php', 304 cache: false, 305 contentType: false, 306 processData: false, 307 data: formData, 308 dataType: 'json', 309 success: function (msg) { 310 } 311 }); 312 } 313 314 if (jQuery('#js-file1').val()) { 315 var formData = new FormData(); 316 formData.append('file', $("#js-file1")[0].files[0]); 317 $.ajax({ 318 type: "POST", 319 url: 'https://ambapizza.ru/wp-content/themes/pizza/upload.php', 320 cache: false, 321 contentType: false, 322 processData: false, 323 data: formData, 324 dataType: 'json', 325 success: function (msg) { 326 } 327 }); 328 } 329 330 if (jQuery('#js-file2').val()) { 331 var formData = new FormData(); 332 formData.append('file', $("#js-file2")[0].files[0]); 333 $.ajax({ 334 type: "POST", 335 url: 'https://ambapizza.ru/wp-content/themes/pizza/upload.php', 336 cache: false, 337 contentType: false, 338 processData: false, 339 data: formData, 340 dataType: 'json', 341 success: function (msg) { 342 } 343 }); 344 } 345 346 await $.ajax({ 347 type: 'POST', 348 url: 'https://ambapizza.ru/wp-content/themes/pizza/service-ok.php', 349 data: { name: name, nomer: nomer, nomer2: nomer2, message: message, token: token }, 350 success: function (data) { 351 window.location.replace("#ok"); 352 $('#name-service').val(''); 353 $('#nomer-service').val(''); 354 $('#nomer2-service').val(''); 355 $('#message-service').val(''); 356 $('#secret').val(''); 357 } 358 }); 359 } 360 } 361 362}); 363 364//ÐÑе Ð´Ð»Ñ Ð¼ÐµÐºÑиканÑкой 365$('[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').on("click", function () { 366 if ($(this).attr('data-mod') === '4c11fb3b-0826-4982-b24f-62ef57e8bae3') { 367 var sizemek = $('[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').attr('data-size'); 368 if (sizemek == 1) { 369 $('.changesiryes[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').attr('data-mod', '025a9e7c-232d-465e-9d88-a8911bff181d'); 370 $('.changesirnot[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').attr('data-mod', '025a9e7c-232d-465e-9d88-a8911bff181d'); 371 } 372 else if (sizemek == 2) { 373 $('.changesiryes[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').attr('data-mod', '6d72cb30-c5b2-4282-8cc3-ef725957a8fb'); 374 $('.changesirnot[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').attr('data-mod', '6d72cb30-c5b2-4282-8cc3-ef725957a8fb'); 375 } 376 else { 377 $('.changesiryes[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').attr('data-mod', '51339019-694b-4c42-8f0d-95ef21e0e3d0'); 378 $('.changesirnot[data-id="c0b75661-9d98-4805-a81d-cd63cc4c7ce4"]').attr('data-mod', '51339019-694b-4c42-8f0d-95ef21e0e3d0'); 379 } 380 } 381}); 382 383$(".viborost").click(function () { 384 var id = $(this).attr('id'); 385 $(this).html('ÐобавиÑÑ ÐµÑе'); 386 $(this).css("background-color", "#23e05c"); 387 $('.dopsir').attr('style', 'display:none;'); 388 $('.ostrota').attr('style', 'display:none;'); 389 $('.ostrota.' + id).attr('style', 'display:inline-block;'); 390 $('.o1').html('ÐеоÑÑÑаÑ'); 391 $('.o2').html('СлабооÑÑÑÐ°Ñ (+10â½)'); 392 $('.o3').html('СилÑнооÑÑÑÐ°Ñ (+10â½)'); 393 $('.o4').html('СлабооÑÑÑÐ°Ñ (0â½)'); 394 $('.o5').html('СилÑнооÑÑÑÐ°Ñ (0â½)'); 395}); 396 397 398$(".viborsir").click(function () { 399 var id = $(this).attr('id'); 400 $('.ostrota').attr('style', 'display:none;'); 401 $('.dopsir').attr('style', 'display:none;'); 402 $('.dopsir#' + id).attr('style', 'display:block;'); 403 $('.sirbezostroti').attr('style', 'display:block;'); 404 $('.sirsostrotoy').attr('style', 'display:none;'); 405 $(this).html('ÐобавиÑÑ ÐµÑе'); 406 $(this).css("background-color", "#23e05c"); 407}); 408 409 410$(".ost_knopka_close").click(function () { 411 var id = $(this).attr('data-id'); 412 var mod = $(this).attr('data-mod'); 413 $('.ostrota.' + id).attr('style', 'display:none;'); 414 $('.dopsir.' + id).attr('style', 'display:block;'); 415 $('.sirbezostroti').attr('style', 'display:none;'); 416 $('.sirsostrotoy').attr('style', 'display:block;'); 417 $('.changesiryes').attr('data-mod', mod); 418 $('.changesirnot').attr('data-mod', mod); 419}); 420 421$(".yesostr").click(function () { 422 setTimeout(function () { 423 $('.dopsir').attr('style', 'display:none;'); 424 }, 600); 425}); 426 427$(".changesize").click(function () { 428 $('#o1').html('ÐеоÑÑÑаÑ'); 429 $('#o2').html('СлабооÑÑÑÐ°Ñ (+10â½)'); 430 $('#o3').html('СилÑнооÑÑÑÐ°Ñ (+10â½)'); 431 $('.o4').html('СлабооÑÑÑÐ°Ñ (0â½)'); 432 $('.o5').html('СилÑнооÑÑÑÐ°Ñ (0â½)'); 433 $('.o6').html('ÐеÑеалÑно оÑÑÑÐ°Ñ (+90â½)'); 434}); 435$(".o1").click(function () { 436 $('.o1').html('ÐеоÑÑÑаÑ'); 437 $('.o2').html('СлабооÑÑÑÐ°Ñ (+10â½)'); 438 $('.o3').html('СилÑнооÑÑÑÐ°Ñ (+10â½)'); 439 $('.o4').html('СлабооÑÑÑÐ°Ñ (0â½)'); 440 $('.o5').html('СилÑноо
440ÑÑÑÐ°Ñ (0â½)'); 441 $('.o6').html('ÐеÑеалÑно оÑÑÑÐ°Ñ (+90â½)'); 442}); 443$(".ost_close").click(function () { 444 var id = $(this).attr('id'); 445 $('.ostrota#' + id).attr('style', 'display:none;'); 446 $('.dopsir#' + id).attr('style', 'display:none;'); 447}); 448 449$(".butnotostr").click(function () { 450 setTimeout(function () { 451 $('.dopsir').attr('style', 'display:none;'); 452 }, 600); 453}); 454 455//гоÑода 456 457$('.city_button').click(function () { 458 $('.gorodspisok').attr('style', 'display:block;'); 459}); 460 461$('.city_button.citymenu').click(function () { 462 $('.gorodspisok').attr('style', 'display:block;position:fixed;margin: 450px 0 0 80px;'); 463}); 464 465function getCookie(name) { 466 var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)")); 467 return matches ? decodeURIComponent(matches[1]) : undefined; 468} 469if (getCookie('gorod') === undefined) { 470 $('.gorod').attr('style', 'display:block;'); 471} 472$('.gorodbutton.yes').click(function () { 473 $('.gorod').attr('style', 'display:none;'); 474 document.cookie = "gorod=Ðижний ÐовгоÑод;max-age=31556926"; 475}); 476$('.gorodbutton.not').click(function () { 477 $('.gorod').attr('style', 'display:none;'); 478 $('.gorodspisok').attr('style', 'display:block;'); 479}); 480 481$('.gorodspbutton.nn').click(function () { 482 document.cookie = "gorod=Ðижний ÐовгоÑод;max-age=31556926"; 483 $('.gorodspisok').attr('style', 'display:none;'); 484}); 485$('.gorodspbutton.msk').click(function () { 486 window.location.href = 'https://msk.ambapizza.ru'; 487});
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.