feat: Added some new words to fly past the screen

master
phga 2 years ago
parent fc4d41cf73
commit 0bb88dee7b
Signed by: phga
GPG Key ID: 5249548AA705F019

@ -18,24 +18,70 @@ async function flyingText(canvas) {
async function shootText(canvas, sec, sta) {
// TODO: move to argument, load from backend
let statements = sta || ["Keyboard-Nerd", "🖤", "Emacs",
"Lives in VI", "GNU/Linux", "Arch Linux",
"Computer Science", "Design",
"Javascript", "C/C++", "Go", "Bash",
"Java", "Python", "QMK", "Vector Graphics",
"Adobe Collection", "OP-1", "Synthesizer",
"6y Work Experience", "Network Security",
"CCNA", "Cisco", "Firewalling", "Project MGMT",
"IT Specialist", "Git", "FreeBSD", "Photography",
"Emacs-Lisp", "Sophos Firewall",
"Microsoft Server", "Appgate", "Palo Alto FW",
"Linux Server", "FreeNAS", "Hardware",
"Arduino", "Electronics", "Soldering",
"Full Stack Networking", "Hotline-Manager",
"Trainer for IT-Specialists", "Matlab/Octave",
"PHP", "CSS", "HTML", "Privacy Advocate",
"Winter is coming!", "😺 Person", "Blender",
"Prusa Slicer", "3D-Printing", "Bachelor of Science"];
let statements = sta || [
"Keyboard-Nerd",
"🖤",
"Emacs",
"Lives in VI",
"GNU/Linux",
"Arch Linux",
"Computer Science",
"Design",
"Javascript",
"C/C++",
"Go",
"Bash",
"Java",
"Python",
"QMK",
"Vector Graphics",
"Adobe Collection",
"OP-1",
"Synthesizer",
"8y Work Experience",
"Network Security",
"CCNA",
"Cisco",
"Firewalling",
"Project MGMT",
"IT Specialist",
"Git",
"FreeBSD",
"Photography",
"Emacs-Lisp",
"Sophos Firewall",
"Microsoft Server",
"Appgate",
"Palo Alto FW",
"Linux Server",
"FreeNAS",
"Hardware",
"Arduino",
"Electronics",
"Soldering",
"Full Stack Networking",
"Hotline-Manager",
"Trainer for IT-Specialists",
"Matlab/Octave",
"PHP",
"CSS",
"HTML",
"Privacy Advocate",
"Winter is coming!",
"😺 Person",
"Blender",
"Prusa Slicer",
"3D-Printing",
"Bachelor of Science",
"NixOS",
"Rust",
"ReactJS",
"SolidJS",
"Teacher",
"Typescript",
"Snappy Keyboard",
"Shanty-Themes",
];
let stCount = statements.length;
let animationTime = sec;
@ -54,8 +100,8 @@ async function shootText(canvas, sec, sta) {
y = getRand(maxY * 0.45, maxY);
// Random direction and correction to not touch right border
x = (getRand(2) == 1) ? -1*x : 0.3 * x;
y = (getRand(2) == 1) ? -1*y : 0.8 * y;
x = getRand(2) == 1 ? -1 * x : 0.3 * x;
y = getRand(2) == 1 ? -1 * y : 0.8 * y;
canvas.appendChild(curr);
await sleep(1000);

Loading…
Cancel
Save