~vam-jam/vamist.dev

355404a43ee7c2ec6f2187cd58c6294fb73049e2 — Vamist 2 months ago 2ad6b4f
[dev] Change face every 5 seconds
1 files changed, 10 insertions(+), 1 deletions(-)

M src/faces.js
M src/faces.js => src/faces.js +10 -1
@@ 28,8 28,17 @@ const faces = [
	"^3^",
	"^.^",
	"•~•", // Think
	">w<",
];
document.getElementById("faces").addEventListener("mousedown", (a) => {
	change_face();
});
change_face();

const random_face_change = () => {
	change_face();
	setTimeout(() => {
		random_face_change();
	}, 1000 * 5);
};

random_face_change();