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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
21 changes: 21 additions & 0 deletions function/function.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Adding Two Numbers</title>
<script type="text/javascript">
function addNumbers(num1, num2) {
return num1 + num2;
}
</script>
</head>
<body>
<h1>Adding Two Numbers</h1>
<p>The sum of 10 and 10 is: <span id="result"></span></p>
<script type="text/javascript">
var num1 = 10;
var num2 = 10;
var result = addNumbers(num1, num2);
document.getElementById("result").innerHTML = result;
</script>
</body>
</html>
4 changes: 4 additions & 0 deletions function/function.jss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function addNumbers(num1, num2) {
return num1 + num2;
}

9 changes: 7 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
body{
background-image: url("285674.jpg");
background-image: url("./the_avengers.jpg");
width: 100vw;
height: 100vh;
}
s
.center {
margin: auto;
width: 50%;
border: 3px solid green;
padding: 10px;
}
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@
<title>Document</title>
<link rel="stylesheet" href="./index.css">
</head>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
}

li {
display: inline;
}
</style>
<body>
<ul class="center">
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#about">About</a></li>
</ul>
<script src="./index.js"></script>
</body>
</html>
Binary file added the_avengers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.