move objects (before?)
This commit is contained in:
parent
480e69b843
commit
31b5af1580
50 changed files with 445 additions and 362 deletions
1
archive/02-external-script/1-hello-alert-ext/alert.js
Normal file
1
archive/02-external-script/1-hello-alert-ext/alert.js
Normal file
|
@ -0,0 +1 @@
|
|||
alert("I'm JavaScript!");
|
10
archive/02-external-script/1-hello-alert-ext/index.html
Normal file
10
archive/02-external-script/1-hello-alert-ext/index.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<body>
|
||||
|
||||
<script src="alert.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
8
archive/02-external-script/1-hello-alert-ext/solution.md
Normal file
8
archive/02-external-script/1-hello-alert-ext/solution.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
The HTML code:
|
||||
|
||||
[html src="index.html"]
|
||||
|
||||
For the file `alert.js` in the same folder:
|
||||
|
||||
[js src="alert.js"]
|
||||
|
9
archive/02-external-script/1-hello-alert-ext/task.md
Normal file
9
archive/02-external-script/1-hello-alert-ext/task.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Show an alert with an external script
|
||||
|
||||
Take the solution of the previous task <info: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.
|
Loading…
Add table
Add a link
Reference in a new issue