From a12ecacd7eff99f08d0cb2d9c78663a41b70cda7 Mon Sep 17 00:00:00 2001 From: Michael Kapelko Date: Mon, 2 Sep 2019 17:14:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D1=80=D0=B0=D1=82=D1=8C=20=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=BA=D0=B8=20=D1=81=20=D0=B3=D0=B8=D1=82=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- метки_1.0.0.html | 134 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 123 insertions(+), 11 deletions(-) diff --git a/метки_1.0.0.html b/метки_1.0.0.html index 8d871fc..230b35c 100644 --- a/метки_1.0.0.html +++ b/метки_1.0.0.html @@ -44,7 +44,29 @@ : match ; }); - }; + } + + function взять(адрес, откликУспеха, откликПровала) + { + var запрос = new XMLHttpRequest(); + запрос.onreadystatechange = function() + { + if (this.readyState == 4) + { + if (this.status == 200) + { + откликУспеха(this.responseText); + } + else if (откликПровала) + { + откликПровала(this.status); + } + } + } + + запрос.open("GET", адрес); + запрос.send(); + }