Различия
Здесь показаны различия между двумя версиями данной страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
doc:jroboplc:changes [2021/10/03 09:53] denis |
doc:jroboplc:changes [2024/01/16 09:23] (текущий) denis |
||
|---|---|---|---|
| Строка 2: | Строка 2: | ||
| <html> | <html> | ||
| - | <pre class="code" id="changes-main"></pre> | + | <pre class="code" id="content"></pre> |
| <script> | <script> | ||
| - | const url = 'http://prom-auto.ru/download/jroboplc/changes'; | + | const url = 'https://prom-auto.ru/download/jroboplc/changes'; |
| + | |||
| + | | ||
| fetch(url) | fetch(url) | ||
| - | .then((response)=>{ | + | .then(response => response.text()) |
| - | response.text().then((text)=>{ | + | .then(text => { |
| - | document.getElementById("changes-main").innerHTML = text; | + | document.getElementById("content").innerHTML = text; |
| - | }) | + | |
| }) | }) | ||
| + | | ||
| </script> | </script> | ||