Initial commit

This commit is contained in:
Joshua Killen 2020-03-31 14:16:15 +01:00
commit 8dd5e4f137
6 changed files with 200 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

BIN
head_assets/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

21
head_assets/navBar.js Normal file
View File

@ -0,0 +1,21 @@
function networkDrop() {
document.getElementById("networkDrop").classList.toggle("show");
}
function webDrop() {
document.getElementById("webDrop").classList.toggle("show");
}
window.onclick = function(e) {
if (!e.target.matches('.networkDropBtn')) {
var myDropdown = document.getElementById("networkDrop");
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove ('show');
}
}else if (!e.target.matches('.webDropBtn')) {
var myDropdown = document.getElementById("webDrop");
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove('show');
}
}
}

118
head_assets/navbar.css Normal file
View File

@ -0,0 +1,118 @@
/*color for inactive tabs*/
.navBar {
background-color: #373737;
overflow: hidden;
font-family: Arial;
}
/* Style the text*/
.navBar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 16px;
}
/* color of links being hovered over */
.navBar a:hover {
background-color: #ddd;
color: black;
}
/* color of active page */
.navBar a.active {
background-color: #0099cc;
color: white;
}
.dropDown {
float: left;
overflow: hidden;
}
.dropDown .networkDropBtn {
cursor: pointer;
font-size: 16px;
border: none;
outline: none;
color: #f2f2f2;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navBar .a:hover .dropDown .networkDropBtn {
background-color: #ddd;
color: black;
}
.networkDrop-content {
display: none;
position: absolute;
background-color: #373737;
color: #ddd;
min-width: 160px;
z-index: 1;
}
.networkDrop-content a {
float: none;
color: #ddd;
padding: 14px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.networkDrop-content a:hover {
background-color: #ddd;
color: black;
}
.dropDown .webDropBtn {
cursor: pointer;
font-size: 16px;
border: none;
outline: none;
color: #f2f2f2;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navBar .a:hover .dropDown .webDropBtn {
background-color: #ddd;
color: black;
}
.webDrop-content {
display: none;
position: absolute;
background-color: #373737;
color: #ddd;
min-width: 160px;
z-index: 1;
}
.webDrop-content a {
float: none;
color: #ddd;
padding: 14px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.webDrop-content a:hover {
background-color: #ddd;
color: black;
}
.show {
display: block;
}

56
homepage/homepage.html Normal file
View File

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<meta name="keywords" content="Internet Fundamentals, Networking, Web Design, University, Coventry, CUC, 2020, CW2">
<meta name="description" content="An accessible, online resource for learning the fundamentals of the internet, web design, and networking. This was created for coursework for unit Z14IT 2020 by Joshua Killen Student ID: 9449871">
<meta name="author" content="Joshua Killen">
<meta http-equiv="refresh" content="60">
<meta name="viewport" content="width=device-width, initial=scale=1.0">
<meta charset="utf-8">
<link rel="stylesheet" href="../head_assets/main.css" type="text/css">
<link rel="stylesheet" href="../head_assets/navbar.css" type="text/css">
<script type="text/javascript" src="../head_assets/navBar.js"></script>
<base href="homepage/assets/" target ="_blank">
<title>Z14IT-Internet Fundamentals</title>
<div class="navBar" id="navBar">
<a class="active" href="">Home</a>
<a href="">Evolution of The Internet</a>
<div class="dropDown">
<button class="networkDropBtn" onclick="networkDrop()">Networking</button>
<div class="networkDrop-content" id="networkDrop">
<a href="">OSI Model</a>
<a href="">Routing</a>
<a href="">Internet Protocols</a>
<a href="">IPv4</a>
<a href="">IPv6</a>
<a href="">TCP</a>
<a href="">UDP</a>
<a href="">Internet Name Resolution</a>
<a href="">PoP</a>
<a href="">DNS</a>
<a href="">DCHP</a>
</div>
</div>
<div class="dropDown">
<button class="webDropBtn" onclick="webDrop()">Web Design</button>
<div class="webDrop-content" id="webDrop">
<a href="">HTML</a>
<a href="">CSS</a>
<a href="">JavaScript</a>
</div>
</div>
<a href="">Contact</a>
<a href="">About</a>
</div>
</head>
<body>
<h1>Internet Fundamentals</h1>
</body>
</html>

3
main.css Normal file
View File

@ -0,0 +1,3 @@
h1 {
color: aqua
}