Add guides
|
@ -1,14 +1,14 @@
|
|||
// This code de-obfuscates my email and displays it on screen when the button is clicked
|
||||
// It's not a perfect solution, but it should stop be enough to stop email scraping
|
||||
// Email encoded in base64. This might be changed in the future to prevent scraping targeting base64 strings
|
||||
const email = "Y29udGFjdEBvd2Vucnlhbi51cwo=";
|
||||
var email = "Y29udGFjdEBvd2Vucnlhbi51cwo=";
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
// Get document elements
|
||||
const button = document.querySelector("#emailButton");
|
||||
const emailDiv = document.querySelector("#email");
|
||||
var button = document.querySelector("#emailButton");
|
||||
var emailDiv = document.querySelector("#email");
|
||||
// Decode the email string and insert a mailto link into the DOM, then disable the button
|
||||
button.addEventListener("click", function () {
|
||||
const decodedEmail = atob(email);
|
||||
var decodedEmail = atob(email);
|
||||
emailDiv.insertAdjacentHTML("beforeend", "<div class=\"col\"><a href=\"mailto:".concat(decodedEmail, "\"><strong>").concat(decodedEmail, "</strong></a></div>"));
|
||||
button.disabled = true;
|
||||
});
|
||||
|
|
BIN
source/assets/images/guides/pfsense/black.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
source/assets/images/guides/pfsense/cli-menu.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
source/assets/images/guides/pfsense/pfsense-login.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
source/assets/images/guides/pfsense/pfsense-package-confirm.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
source/assets/images/guides/pfsense/pfsense-package-install.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
source/assets/images/guides/pfsense/pfsense-packages.png
Normal file
After Width: | Height: | Size: 159 KiB |
BIN
source/assets/images/guides/pfsense/setup-boot.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
source/assets/images/guides/pfsense/setup-bootloader.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
source/assets/images/guides/pfsense/setup-complete.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
BIN
source/assets/images/guides/pfsense/setup-confirm.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
source/assets/images/guides/pfsense/setup-copyright.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
source/assets/images/guides/pfsense/setup-installing.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
source/assets/images/guides/pfsense/setup-partitioning.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
source/assets/images/guides/pfsense/setup-probe.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
source/assets/images/guides/pfsense/setup-welcome.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
source/assets/images/guides/pfsense/setup-zfs-drives.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
source/assets/images/guides/pfsense/setup-zfs-menu-install.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
source/assets/images/guides/pfsense/setup-zfs-menu-pool.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
source/assets/images/guides/pfsense/setup-zfs-type.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
source/assets/images/guides/pfsense/snort-alerts.png
Normal file
After Width: | Height: | Size: 134 KiB |
BIN
source/assets/images/guides/pfsense/snort-globalconfig1.png
Normal file
After Width: | Height: | Size: 156 KiB |
BIN
source/assets/images/guides/pfsense/snort-globalconfig2.png
Normal file
After Width: | Height: | Size: 172 KiB |
BIN
source/assets/images/guides/pfsense/snort-interfaces-empty.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
source/assets/images/guides/pfsense/snort-interfaces-off.png
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
source/assets/images/guides/pfsense/snort-interfaces-on.png
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
source/assets/images/guides/pfsense/topology.png
Normal file
After Width: | Height: | Size: 119 KiB |
1
source/assets/images/guides/pfsense/webp-to-png.sh
Normal file
|
@ -0,0 +1 @@
|
|||
find "." -type f -name "*.png" -exec sh -c 'convert "$0" "${0%.png}.webp"' {} \;
|
BIN
source/assets/images/guides/pfsense/wizard-general.png
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
source/assets/images/guides/pfsense/wizard-lan.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
source/assets/images/guides/pfsense/wizard-password.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
source/assets/images/guides/pfsense/wizard-timezone.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
source/assets/images/guides/pfsense/wizard-wan.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
source/assets/images/guides/pfsense/wizard-welcome.png
Normal file
After Width: | Height: | Size: 45 KiB |
|
@ -1,11 +1,10 @@
|
|||
// JS Code that rotates the gradient on the content box on the front page
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const mainBox = document.querySelector("#rotating-gradient");
|
||||
let angle = 0;
|
||||
var mainBox = document.querySelector("#rotating-gradient");
|
||||
var angle = 0;
|
||||
// Rotate the gradient 1 degree every 100ms
|
||||
setInterval(function () {
|
||||
const gradient = "linear-gradient(".concat(angle, "deg, #1E1F46, #404040)");
|
||||
mainBox.style["background"] = gradient;
|
||||
mainBox.style.background = "linear-gradient(".concat(angle, "deg, #1E1F46, #404040)");
|
||||
angle += 1;
|
||||
if (angle >= 360) {
|
||||
angle = 0;
|
||||
|
|
|
@ -6,8 +6,7 @@ document.addEventListener("DOMContentLoaded", (): void => {
|
|||
|
||||
// Rotate the gradient 1 degree every 100ms
|
||||
setInterval((): void => {
|
||||
const gradient: string = `linear-gradient(${angle}deg, #1E1F46, #404040)`;
|
||||
mainBox.style["background"] = gradient;
|
||||
mainBox.style.background = `linear-gradient(${angle}deg, #1E1F46, #404040)`;
|
||||
angle += 1;
|
||||
if (angle >= 360) {
|
||||
angle = 0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Some useful functions used throughout my code
|
||||
// Based on this SO answer https://stackoverflow.com/a/35880730/9523246
|
||||
function lazyLoadCSS(url) {
|
||||
const css = document.createElement('link');
|
||||
var css = document.createElement('link');
|
||||
css.href = url;
|
||||
css.rel = 'stylesheet';
|
||||
css.type = 'text/css';
|
||||
|
|