diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index ac76541162..6679b890ea 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -1328,7 +1328,7 @@ if (is_ajax()) { - + logo diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js index df9ee447dd..3ac30e5e83 100644 --- a/pandora_console/include/javascript/pandora.js +++ b/pandora_console/include/javascript/pandora.js @@ -2558,11 +2558,11 @@ function WarningPeriodicityModal(title, message) { }); } -function christmas_click() { +function christmas_click(flagEasternEgg) { let counter = $("#count_click").val(); counter++; $("#count_click").val(counter); - if (counter == 25) { + if (counter == 25 && flagEasternEgg == true) { $("#container-snow").removeClass("invisible"); setTimeout(() => { $("#container-snow").addClass("invisible"); diff --git a/pandora_console/index.php b/pandora_console/index.php index 63f063c02d..917448ee01 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -1682,8 +1682,10 @@ require 'include/php_to_js_values.php'; $(document).ready(function() { const date = new Date(); const today = date.toLocaleDateString(); - const christmasDay = "25-12-2023"; - if (today == christmasDay) { + const year = date.getFullYear(); + const christmasDay = "25/12/"+year; + let flagEasternEgg = $("#flagEasternEgg").val(); + if (today === christmasDay && flagEasternEgg == true) { $("#container-snow").removeClass('invisible'); setTimeout(() => { $("#container-snow").addClass('invisible');