Skip to content

Instantly share code, notes, and snippets.

View KevinAlavik's full-sized avatar
:shipit:
0x00010F2C

Kevin Alavik KevinAlavik

:shipit:
0x00010F2C
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