Christmas Calendar 2026

by Kofod

HTML

<!-- Don't put this in VP -->
	
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>

<!-- Everything from here on in VP -->
<!-- HTML -->

<div class="layoutContainer flexBox" style="position: relative; width: 940px; height: 1232px; background: #8bc7de url(https://file.garden/au8mIPy05_Vz9t77/VP/Calendar/2026/Calendar%20layout/Background.png);">
	<!-- 
		Text box above
			rgba(255, 255, 255, 0.8) for the BG colour of the box
			#252525 for the colour of the text
	-->
	<div class="textBox">
		 Happy holidays popstars! 🌟<br><br>
		 As per tradition, a dedicated group of volunteers have joined together to bring you the Advent Calendar of 2026!<br><br>
		 Many treats and activities await, and regardless if you celebrate or not, everyone is welcome to participate! We might even have something unrelated to any specific holidays lined up 😉<br><br>
		 Each day a new door is unlocked - all the way to December 25th! Behind each door is a surprise. You'll have to click or tap them to open, then follow the instructions.<br><br>
		 You may claim all the gifts (meaning both F and M sets/items) with the help of a side account that doesn't match the base/gender of your main account.<br><br>
		 You will be able to open doors from previous days, however all codes will expire on the midnight of December 31st (CET). Make sure you get them all before they're gone!<br><br>
		 Please take a moment to extend your appreciation to all the teams and designers who made the Calendar possible again this year 💝

  </div>
	<div class="doorContainer flexBox"></div>

  
	<!-- Image for the title of the Advent Calendar -->
	<img style="position: absolute; pointer-events: none; z-index:1;" src="https://file.garden/au8mIPy05_Vz9t77/VP/Calendar/2026/Calendar%20layout/Title.png">

	<!-- The wait message you see when you click a door that you can't open yet -->
	<div class="waitMessage flexBox" style="display: none; position: fixed;...

CSS

/* ==============================
   GENERAL STYLING
   ============================== */

.layoutContainer *,
.waitMessage * {
    font-family: "Arial", sans-serif;
    font-size: 12px;
    box-sizing: border-box;
}

.flexBox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


/* ==============================
   TEXT BOX
   ============================== */

.layoutContainer .textBox {
    position: absolute;
    width: 764px;
    height: 209px;
    top: 218px;
    left: 88px;
    padding: 20px 35px;
    overflow: auto;

    background: rgba(255, 211, 95, 0.75);
    border-radius: 45px;

    text-align: justify;
    text-align-last: center;

    display: flex;
    flex-direction: column;
}

/* Text appearance */
.layoutContainer .textBox,
.layoutContainer .textBox * {
    font-size: 14px;
    color: #151515;
    line-height: 1.5;
    font-weight: 500;
    -webkit-text-stroke: 0.2px currentColor;
}

/* Bold text */
.layoutContainer .textBox b,
.layoutContainer .textBox strong {
    font-weight: 700;
}

/* Vertical centering */
.textBoxContent {
    width: 100%;
    margin: auto 0;
    flex-shrink: 0;
}

/* ==============================
   MINIGAME BUTTONS
   ============================== */

.layoutContainer .textBox .puzzle {
    background: #537a42;
    color: #ffffff;
    border: 1px solid #416332;
    border-radius: 8px;
    padding: 8px 24px;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    transition: background 0.2s ease;
}

.layoutContainer .textBox .puzzle:hover {
    background: #416332;
}


/* ==============================
   OVERVIEW THREAD BUTTON
   ============================== */

.threadButton {
    position: fixed;
    top: 195px;
    left: 790px;
    width: 100px;
    height: 100px;
    display: inline-block;

    background:...

JavaScript

// JAVASCRIPT

$('head').append('<link href="https://fonts.googleapis.com/css2?family=Patrick+Hand+SC&display=swap" rel="stylesheet">');

var adventYear  = 2026;
var adventMonth = 12; 
var maxDoor     = 25;

function getCETDate() {
    var now = new Date();
    var utcMs = now.getTime() + now.getTimezoneOffset() * 60000;
    var cetMs = utcMs + (1 * 60 * 60000);
    return new Date(cetMs);
}

function openDoor(doorID) {
   var now = getCETDate();
    var dateToday = now.getDate();
    var dateMonth = now.getMonth() + 1; 
    var dateYear  = now.getFullYear();
    var thisDoor  = '#door' + doorID;

    doorID = parseInt(doorID, 10);

    if (dateYear === adventYear && dateMonth < adventMonth) {
        $('.waitMessage').css('display', 'flex').hide().fadeIn(100);
        $('.addTitle').html('TOO EARLY!');
        $('.addMessage').html('The calendar starts on December 1st!');
        return;
    }

    if (dateYear === adventYear && dateMonth === adventMonth && dateToday == doorID) {
        $('#door' + dateToday).parent().removeClass('today');
    }

    if ((dateYear === adventYear && dateMonth === adventMonth && dateToday >= doorID) || dateYear > adventYear) {

        $(thisDoor).toggleClass('open');

        if ($(thisDoor).hasClass('open')) {
            $('.textBox').html(
    '<div class="textBoxContent">' + codeMessage[doorID] + '</div>'
);
        }

    } else if (dateYear === adventYear && dateMonth === adventMonth && dateToday == doorID - 1) {

        $('.waitMessage').css('display', 'flex').hide().fadeIn(100);
        $('.addTitle').html('ALMOST!');
        $('.addMessage').html('You only have to wait untill tomorrow!');

    } else if (dateYear === adventYear && dateMonth === adventMonth && doorID > dateToday) {

        $('.waitMessage').css('display', 'flex').hide().fadeIn(100);
        $('.addTitle').html('BE PATIENT!');
        $('.addMessage').html('You have to wait ' + (doorID - dateToday)...