This commit is contained in:
Ilya Kantor 2015-08-17 12:41:38 +03:00
parent 48497f7d85
commit 8ba2c6b17c
23 changed files with 574 additions and 615 deletions

View file

@ -1,10 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script src="alert.js"></script>

View file

@ -1,10 +1,10 @@
Код для HTML-файла:
The HTML code:
```html
<!--+ src="index.html" -->
```
Для файла `alert.js` из той же директории:
For the file `alert.js` in the same folder:
```js
//+ src="alert.js"

View file

@ -1,7 +1,7 @@
# Вывести alert внешним скриптом
# Show an alert with an external script
[importance 5]
Возьмите решение предыдущей задачи [](/task/hello-alert) и вынесите скрипт во внешний файл `alert.js`, который расположите в той же директории.
Take the solution of the previous task [](/task/hello-alert). Modify it by extracting the script content into an external file `alert.js`, residing in the same folder.
Откройте страницу и проверьте, что вывод сообщения всё ещё работает.
Open the page, ensures that the alert works.