Skip to content

Instantly share code, notes, and snippets.

View KevinAlavik's full-sized avatar
:shipit:
Checkout my website: 127.0.0.1

Kevin Alavik KevinAlavik

:shipit:
Checkout my website: 127.0.0.1
  • Sweden
  • 21:52 (UTC +01:00)
View GitHub Profile
@KevinAlavik
KevinAlavik / page-switcher.js
Last active August 6, 2023 18:23
Simple page switching function
let displayType = 'flex';
function switchPage(page) {
const pages = document.querySelectorAll('.page-container');
for (let i = 0; i < pages.length; i++) {
if (pages[i].getAttribute('page') === page) {
pages[i].style.display = displayType;
} else {
pages[i].style.display = 'none';
}
@Prakasaka
Prakasaka / bash-colors.md
Created July 25, 2020 09:14 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple