2025-02-12 18:49:34 +00:00
|
|
|
<!DOCTYPE html>
|
2025-02-13 19:04:06 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2025-02-13 19:08:58 +00:00
|
|
|
<title> Cian O'Shaughnessy's Website </title>
|
2025-02-13 19:04:06 +00:00
|
|
|
</head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<style>
|
|
|
|
* {box-sizing: border-box}
|
|
|
|
|
|
|
|
/* Set height of body and the document to 100% */
|
|
|
|
body, html {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
font-family: Arial;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Style tab links */
|
|
|
|
.tablink {
|
|
|
|
background-color: #555;
|
|
|
|
color: white;
|
|
|
|
float: left;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 14px 16px;
|
|
|
|
font-size: 17px;
|
|
|
|
width: 25%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tablink:hover {
|
|
|
|
background-color: #777;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Style the tab content (and add height:100% for full page content) */
|
|
|
|
.tabcontent {
|
|
|
|
color: white;
|
|
|
|
display: none;
|
|
|
|
padding: 100px 20px;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#Home {background-color: red;}
|
|
|
|
#News {background-color: green;}
|
|
|
|
#Contact {background-color: blue;}
|
|
|
|
#Links {background-color: white;}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<button class="tablink" onclick="openPage('Home', this, 'red')">Home</button>
|
|
|
|
<button class="tablink" onclick="openPage('Blogs', this, 'green')" id="defaultOpen">News</button>
|
|
|
|
<button class="tablink" onclick="openPage('Contact', this, 'blue')">Contact</button>
|
|
|
|
<button class="tablink" onclick="openPage(Links, this, 'white')">Links</button>
|
|
|
|
|
|
|
|
<div id="Home" class="tabcontent">
|
|
|
|
<h3>Home</h3>
|
|
|
|
<p>Home is where the heart is..</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="Blogs" class="tabcontent">
|
|
|
|
<h3>Blogs</h3>
|
|
|
|
<p>Here is where my Blogs are, Feel free to read any of them!</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="Contact" class="tabcontent">
|
|
|
|
<h3>Contact</h3>
|
|
|
|
<p>Get in touch, via E-mail, Phone or Text</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="Links" class="tabcontent">
|
|
|
|
<h3>Links</h3>
|
|
|
|
<p>Here are the Links that helped me </p>
|
2025-02-12 21:26:50 +00:00
|
|
|
</div>
|
|
|
|
|
2025-02-13 19:04:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function openPage(pageName,elmnt,color) {
|
|
|
|
var i, tabcontent, tablinks;
|
|
|
|
tabcontent = document.getElementsByClassName("tabcontent");
|
|
|
|
for (i = 0; i < tabcontent.length; i++) {
|
|
|
|
tabcontent[i].style.display = "none";
|
|
|
|
}
|
|
|
|
tablinks = document.getElementsByClassName("tablink");
|
|
|
|
for (i = 0; i < tablinks.length; i++) {
|
|
|
|
tablinks[i].style.backgroundColor = "";
|
|
|
|
}
|
|
|
|
document.getElementById(pageName).style.display = "block";
|
|
|
|
elmnt.style.backgroundColor = color;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get the element with id="defaultOpen" and click on it
|
|
|
|
document.getElementById("defaultOpen").click();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
2025-02-12 18:49:34 +00:00
|
|
|
</html>
|