generated from Skynet/deploy_user
This commit is contained in:
parent
2e5405e1f6
commit
a5cd899900
1 changed files with 16 additions and 76 deletions
|
@ -3,95 +3,35 @@
|
||||||
<head>
|
<head>
|
||||||
<title> Cian O'Shaughnessy's Website </title>
|
<title> Cian O'Shaughnessy's Website </title>
|
||||||
</head>
|
</head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<div class="tab">
|
||||||
<style>
|
<button class="tablinks" onclick="openCity(event, 'London')">London</button>
|
||||||
* {box-sizing: border-box}
|
<button class="tablinks" onclick="openCity(event, 'Paris')">Paris</button>
|
||||||
|
<button class="tablinks" onclick="openCity(event, 'Tokyo')">Tokyo</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
/* Set height of body and the document to 100% */
|
<h2>Tabs</h2>
|
||||||
body, html {
|
<p>Click on the buttons inside the tabbed menu:</p>
|
||||||
height: 100%;
|
|
||||||
margin: 0;
|
|
||||||
font-family: Arial;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Style tab links */
|
<div class="tab">
|
||||||
.tablink {
|
<button class="tablinks" onclick="openCity(event, 'Home')">Home</button>
|
||||||
background-color: #555;
|
<button class="tablinks" onclick="openCity(event, 'Blogs')">Blogs</button>
|
||||||
color: white;
|
<button class="tablinks" onclick="openCity(event, 'Links')">Links</button>
|
||||||
float: left;
|
</div>
|
||||||
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">
|
<div id="Home" class="tabcontent">
|
||||||
<h3>Home</h3>
|
<h3>Home</h3>
|
||||||
<p>Home is where the heart is..</p>
|
<p>Welcome to my Page</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="Blogs" class="tabcontent">
|
<div id="Blogs" class="tabcontent">
|
||||||
<h3>Blogs</h3>
|
<h3>Blogs</h3>
|
||||||
<p>Here is where my Blogs are, Feel free to read any of them!</p>
|
<p> Here are my Blogs.</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="Contact" class="tabcontent">
|
|
||||||
<h3>Contact</h3>
|
|
||||||
<p>Get in touch, via E-mail, Phone or Text</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="Links" class="tabcontent">
|
<div id="Links" class="tabcontent">
|
||||||
<h3>Links</h3>
|
<h3>Links</h3>
|
||||||
<p>Here are the Links that helped me </p>
|
<p>The links i use.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Reference in a new issue