-
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
1 parent
1150f22
commit 4501f74
Showing
5 changed files
with
189 additions
and
2 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
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,34 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Javascript</title> | ||
</head> | ||
<body> | ||
<h1>My First Web Page</h1> | ||
<p>My First Paragraph</p> | ||
|
||
<p id="demo"></p> | ||
<button class="btn btn-primary" type="button" onclick="document.write(1000)"> | ||
Click here | ||
</button> | ||
<div id="animation"> | ||
<h2>helllo world</h2> | ||
</div> | ||
|
||
|
||
<script> | ||
document.getElementById("demo").innerHTML = 5 + 6; | ||
document.getElementById("demo").innerHTML = "Uganda the pearl of Africa" | ||
document.write(10); | ||
window.alert("If you trust this website, click Ok"); | ||
alert("Thanks") | ||
console.log("Uganda") | ||
const name = prompt("Type your name: "); | ||
console.log('hello, ${name}!'); | ||
|
||
|
||
</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,63 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>PHP</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
|
||
</head> | ||
<body> | ||
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> | ||
<a class="navbar-brand" href="#">Navbar</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#">About</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#">Contact</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
|
||
<body> | ||
<div id="counter" class="container text-primary my-3 h1"><B><h1>0</h1></B></div> | ||
|
||
<script> | ||
const targetNumber = 500; | ||
const duration = 5 * 500; | ||
const interval = 5; | ||
|
||
const counterElement = document.getElementById("counter"); | ||
let currentNumber = 0; | ||
const increment = Math.ceil(targetNumber / (duration / interval)); | ||
|
||
function updateCounter() { | ||
if (currentNumber < targetNumber) { | ||
currentNumber += increment; | ||
if (currentNumber > targetNumber) { | ||
currentNumber = targetNumber; | ||
} | ||
counterElement.textContent = currentNumber; | ||
setTimeout(updateCounter, interval); | ||
} | ||
} | ||
|
||
setTimeout(updateCounter, interval); | ||
</script> | ||
</body> | ||
</html> | ||
|
||
|
||
</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,31 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>PHP</title> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> | ||
<a class="navbar-brand" href="#">Navbar</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#">About</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#">Contact</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</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,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Home_boot</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
</head> | ||
<body> | ||
<nav id="main-navbar" class="main-navbar"> | ||
<div class="wrapper"> | ||
<div id="navbar-header-main" class="menu-main-mega-menu-cotainer"> | ||
<ul id="menu-main-mega-menu" class="menu"> | ||
<li id="menu-item-7252" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-7252"> | ||
<a href="index.html">Home page</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
|
||
</nav> | ||
</body> |