Skip to content

Commit

Permalink
tester files
Browse files Browse the repository at this point in the history
  • Loading branch information
estelle committed Mar 27, 2012
1 parent 19ae95d commit 898877e
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
27 changes: 27 additions & 0 deletions files/01_includejs.html
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>
3 changes: 3 additions & 0 deletions files/bodylinked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// JavaScript Document

alert('You successfully include another external script. Congratulations');
3 changes: 3 additions & 0 deletions files/headerlinked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// JavaScript Document

alert('Good Job! This is functional external script');
25 changes: 25 additions & 0 deletions files/tester.html
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>

0 comments on commit 898877e

Please sign in to comment.