Skip to content

Instantly share code, notes, and snippets.

View Hoax017's full-sized avatar
🦄
Working from heaven

Hoax Hoax017

🦄
Working from heaven
  • Smallable
  • Paris
View GitHub Profile
@Hoax017
Hoax017 / index.js
Last active November 22, 2023 18:08
exec function in worker without new file
// Fonction que vous souhaitez exécuter dans le Worker
function maFonctionDansWorker() {
// Code de la fonction
return "Résultat de ma fonction dans le Worker";
}
// Convertir la fonction en URL pour le Worker
const workerURL = URL.createObjectURL(new Blob([`
${maFonctionDansWorker}
.connect .form-container {
background-color: #4c5259b8;
color: white;
}
.connect .form-container header {
background-color: #313030;
color: #FFFFFF
}