Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions week-1/week1/calculator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

<!doctype html>

<html lang="en">
<head>
<meta charset="utf-8">

<title>calc</title>

<script type="text/javascript">
// data (variables)
// functions
</script>
</head>

<body>


</body>
</html>
40 changes: 40 additions & 0 deletions week-1/week1/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

<!doctype html>

<html lang="en">
<head>
<meta charset="utf-8">

<title>Week 1</title>
<link rel="stylesheet" href="home.css">

<script type="text/javascript">
// data (variables)
var a = true;
var b = false;
// functions
function print_thing(param) {
if (param) {
console.log('the argument was "a":' , param);
} else {
console.log('the argument was "b":' , param);
}
}
</script>
</head>

<body>
<h1>Hello to the week 1 Project</h1>
<p>
This is Ramzi.
</p>
<button onclick="print_thing(a);">call print_thing with "a"</button> <br>
<button onclick="print_thing(b);">call print_thing with "b"</button> <br>
<button onclick="console.log('hi!');">Click here</button> <br>
<hr>
<p>Take a look on our lovely <a href="./team.html">team</a>
<p>Also you can try our <a href="./calculator.html">calculator</a>

</p>
</body>
</html>
34 changes: 34 additions & 0 deletions week-1/week1/team.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!doctype html>

<html lang="en">
<head>
<meta charset="utf-8">

<title>team page</title>

<script type="text/javascript">
// data (variables)
var team_name = "HackYourFuture";
var team_members = ["Ramzi", "Salem", "Hasan"];
// functions
function print_thing(team_name){
console.log("Hello to our team", team_name);
}
function print_thing(team_members){
console.log("Our members are", team_members);
}

</script>
</head>

<body>
<div class="greeting">
<h1>Welcome to our team</h1>
<button onclick="print_thing(team_name);">Team Name</button> <br>
<p>your team members: <button onclick="print_thing(team_members);">Team Members</button> </p>
<button onclick="print_thing(console.log;">Introduction</button> <br>

</div>
<a href="home.html">Return back to the homepage</a>
</body>
</html>