Added easter egg (a pacman game)

This commit is contained in:
2019-01-11 16:34:43 +01:00
parent 457712cd35
commit 41354be949
32 changed files with 1463 additions and 2 deletions

View File

@ -79,7 +79,7 @@ ComunicWeb.pages.settings.sections.general = {
});
//Display user ID
createFormGroup({
var userIDInput = createFormGroup({
target: target,
label: "User ID",
type: "text",
@ -88,6 +88,18 @@ ComunicWeb.pages.settings.sections.general = {
additionalGroupClasses: "input-user-id"
});
//Easter egg : open pacman when clicking 10 times on user ID input label
var clicks = 0;
userIDInput.parentNode.parentNode.addEventListener("click", function(){
clicks++;
if(clicks >= 10) {
ComunicWeb.components.pacman.open();
clicks = 0;
}
});
//Display user email
createFormGroup({
target: target,