mirror of https://github.com/tildeclub/site.git
tilde.club is back. sign up related update.
This commit is contained in:
parent
b34feb3994
commit
3ad9fe1b09
21
footer.php
21
footer.php
|
@ -1,3 +1,24 @@
|
||||||
|
<script>
|
||||||
|
// When the user scrolls the page, execute myFunction
|
||||||
|
window.onscroll = function() {myFunction()};
|
||||||
|
|
||||||
|
// Get the navbar
|
||||||
|
var navbar = document.getElementById("navbar");
|
||||||
|
|
||||||
|
// Get the offset position of the navbar
|
||||||
|
var sticky = navbar.offsetTop;
|
||||||
|
|
||||||
|
// Add the sticky class to the navbar when you reach its scroll position. Remove "sticky" when you leave the scroll position
|
||||||
|
function myFunction() {
|
||||||
|
if (window.pageYOffset >= sticky) {
|
||||||
|
navbar.classList.add("sticky")
|
||||||
|
} else {
|
||||||
|
navbar.classList.remove("sticky");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<br>
|
||||||
|
<p>Thanks to the OG tilde.club team! </p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
10
header.php
10
header.php
|
@ -4,6 +4,12 @@
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?=isset($title) ? $title : "Welcome to ~tilde.club~"?></title>
|
<title><?=isset($title) ? $title : "Welcome to ~tilde.club~"?></title>
|
||||||
<link rel="stylesheet" href="/style.css">
|
<link rel="stylesheet" href="https://yourtilde.com/~deepend/tcnew/style.css">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="navbar">
|
||||||
|
<a href="https://tilde.club/">HOME</a>
|
||||||
|
<a href="https://tilde.club/wiki">WIKI</a>
|
||||||
|
<a href="https://tilde.club/signup">SIGN-UP</a>
|
||||||
|
</div>
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
in their shared quest to build awesome web pages
|
in their shared quest to build awesome web pages
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>Public sign-ups will re-open on September 20th 2019!</h2>
|
|
||||||
<p>
|
<p>
|
||||||
If you would like a list of <a href="http://tilde.club/~delfuego/tilde.24h.html">
|
If you would like a list of <a href="http://tilde.club/~delfuego/tilde.24h.html">
|
||||||
RECENTLY CHANGED PAGES</a> you can see that too
|
RECENTLY CHANGED PAGES</a> you can see that too
|
||||||
|
|
33
style.css
33
style.css
|
@ -53,6 +53,39 @@ h1 {
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Style the navbar */
|
||||||
|
#navbar {
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: darkorange;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navbar links */
|
||||||
|
#navbar a {
|
||||||
|
float: left;
|
||||||
|
display: block;
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
padding: 14px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Page content */
|
||||||
|
.content {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The sticky class is added to the navbar with JS when it reaches its scroll position */
|
||||||
|
.sticky {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
|
||||||
|
.sticky + .content {
|
||||||
|
padding-top: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="text"],
|
input[type="text"],
|
||||||
textarea {
|
textarea {
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
|
|
Loading…
Reference in New Issue