forked from estelle/jsintro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Basic Template</title> | ||
<!-- include the file "headerlinked.js" here --> | ||
|
||
<!-- turn the following content into a script --> | ||
|
||
<!-- | ||
alert('this is an internal script'); | ||
--> | ||
|
||
</head> | ||
|
||
<body> | ||
<p>This page might have a few annoying alerts if you code this correctly</p> | ||
|
||
<!-- include the file "bodylinked.js" here --> | ||
|
||
<!-- turn the following content into a script --> | ||
<!-- | ||
alert('this is another internal script'); | ||
--> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// JavaScript Document | ||
|
||
alert('You successfully include another external script. Congratulations'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// JavaScript Document | ||
|
||
alert('Good Job! This is functional external script'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>Untitled Document</title> | ||
<script> | ||
var answers = { | ||
color: window.prompt('Favorite Color'), | ||
tool: window.prompt('Analog Printer?'), | ||
count: window.prompt('Favorite Number?'), | ||
message: function(){ | ||
return answers.count + ' ' + answers.color + ' ' + answers.tool + 's'; | ||
}, | ||
annoy: function(){ | ||
alert('You told us: ' + answers.message()); | ||
} | ||
}; | ||
answers.annoy(); | ||
|
||
</script> | ||
</head> | ||
|
||
<body> | ||
</body> | ||
</html> |