mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-23 05:29:58 +05:30
some improvements
Signed-off-by: Alexander J <odyssey346@disroot.org>
This commit is contained in:
parent
efb593b537
commit
4cdadb8932
@ -5,20 +5,21 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import "../assets/animation.css";
|
import "../assets/animation.css";
|
||||||
import ProjectSegfaultLogo from "../assets/images/projectsegfault1.png";
|
import ProjectSegfaultLogo from "../assets/images/projectsegfault1.png";
|
||||||
|
export let responsive;
|
||||||
function showResponsive() {
|
function showResponsive() {
|
||||||
var x = document.getElementById("navbarpieceofshitfuckihatethis");
|
let x = document.getElementById("navbarpieceofshitfuckihatethis");
|
||||||
var navbarClasses = x.classList;
|
let navbarClasses = x.classList;
|
||||||
var navbarClassesString = navbarClasses.toString();
|
let navbarClassesString = navbarClasses.toString();
|
||||||
const svelteclassthing = navbarClasses.item(2)
|
const svelteclassthing = navbarClasses.item(2)
|
||||||
console.log(navbarClasses);
|
console.log(navbarClasses);
|
||||||
if (x.className === "center navbarpieceofshitfuckihatethis", svelteclassthing) {
|
if (x.className === "center navbarpieceofshitfuckihatethis", svelteclassthing) {
|
||||||
console.log("Shit");
|
console.log("Shit");
|
||||||
navbarClasses.add("responsive");
|
responsive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (navbarClassesString.includes("responsive")){
|
if (navbarClassesString.includes("responsive")){
|
||||||
console.log("Piss");
|
console.log("Piss");
|
||||||
navbarClasses.remove("responsive");
|
responsive = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -28,7 +29,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<a href="/" class="text-flicker-in-glow" style="color: #ce1717">Project <span style="color: #00d4aa">Segfault</span></a>
|
<a href="/" class="text-flicker-in-glow" style="color: #ce1717">Project <span style="color: #00d4aa">Segfault</span></a>
|
||||||
<a href="{'#'}" class="button" id="MenuButton" on:click={showResponsive}>Menu</a>
|
<a href="{'#'}" class="button" id="MenuButton" on:click={showResponsive}>Menu</a>
|
||||||
<div class="center navbarpieceofshitfuckihatethis" id="navbarpieceofshitfuckihatethis">
|
<div class="center navbarpieceofshitfuckihatethis" id="navbarpieceofshitfuckihatethis" class:responsive={responsive}>
|
||||||
<a href="https://instances.projectsegfau.lt" class="button">Instances & Gameservers </a>
|
<a href="https://instances.projectsegfau.lt" class="button">Instances & Gameservers </a>
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ description: 4 idiots & one Sun server.
|
|||||||
|
|
||||||
<a href="https://github.com/ProjectSegfault" class="button githubcolored">GitHub</a>
|
<a href="https://github.com/ProjectSegfault" class="button githubcolored">GitHub</a>
|
||||||
|
|
||||||
|
<a href="https://blog.projectsegfau.lt" class="button">Blog</a>
|
||||||
|
|
||||||
|
|
||||||
## {description}
|
## {description}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user