Skip to content

Commit

Permalink
Added Santa hat to header logo
Browse files Browse the repository at this point in the history
  • Loading branch information
katniny committed Dec 2, 2024
1 parent 09ce2f9 commit b485115
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
17 changes: 17 additions & 0 deletions assets/css/mainSite.css
Original file line number Diff line number Diff line change
Expand Up @@ -3145,4 +3145,21 @@ small {
position: fixed;
transform: translateY(5px);
}
}

/* xmas hat */
.xmasHat {
position: fixed;
top: 0;
left: 0;
z-index: 9;
width: 80px;
transform: translate(-5px, -35px);
cursor: pointer;
}

@media (max-width: 1148px) {
.xmasHat {
transform: translate(40px, -35px);
}
}
Binary file added assets/imgs/xmas_hat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions assets/js/pageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,18 @@ function countdown() {
timeLeft--;
}
}

// if december, force christmas mode (merry christmas mfs)
// or happy holidays, whatever you celebrate :p
// if you celebrate, idk why im being technical as always in code comments no one will ever see lmaoo
if (currentMonth === 12) {
const hat = document.createElement("img");
hat.src = "/assets/imgs/xmas_hat.png";
hat.draggable = false;
hat.className = "xmasHat";
hat.onclick = () => {
window.location.replace("/home");
}

document.body.appendChild(hat);
}
4 changes: 2 additions & 2 deletions assets/js/ts_fas_acih.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const pathName = pageURL.pathname;
let isOnDesktopApp = null;

// TransSocial Version
let transsocialVersion = "v2024.11.17";
let transsocialUpdate = "v20241117-1";
let transsocialVersion = "v2024.12.1";
let transsocialUpdate = "v2024121-1";
let transsocialReleaseVersion = "pre-alpha";

const notices = document.getElementsByClassName("version-notice");
Expand Down
8 changes: 8 additions & 0 deletions updates.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ <h1 id="selectedFilter" style="text-decoration: underline; margin-bottom: 5px;">
<div id="prealphaVersions">
<p>Trying to find older updates? You may be interested in the InDev tab, since TransSocial is no longer in InDev!</p>

<div class="update">
<h2>v2024.12.1_pre-alpha</h2>
<h3 style="color: var(--text-semi-transparent);">Released: December 1, 2024</h3>
<li>Added Santa hat to header (it's December, I have to)</li>
</div>

<br />

<div class="update">
<h2>v2024.11.17_pre-alpha</h2>
<h3 style="color: var(--text-semi-transparent);">Released: November 17, 2024</h3>
Expand Down

0 comments on commit b485115

Please sign in to comment.