mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-31 23:25:39 +02:00
Annual
This commit is contained in:
parent
b3136e5738
commit
fe2443ec0c
@ -1,7 +1,9 @@
|
|||||||
// temp christmas hack, courtesy: https://pajasevi.github.io/CSSnowflakes/
|
// christmas hack, courtesy: https://pajasevi.github.io/CSSnowflakes/
|
||||||
|
|
||||||
;(function(){
|
;(function(){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
function makeItSnow() {
|
||||||
const styleSheet = document.createElement("style")
|
const styleSheet = document.createElement("style")
|
||||||
styleSheet.textContent = `
|
styleSheet.textContent = `
|
||||||
/* customizable snowflake styling */
|
/* customizable snowflake styling */
|
||||||
@ -69,4 +71,10 @@
|
|||||||
})
|
})
|
||||||
`
|
`
|
||||||
document.body.appendChild(script)
|
document.body.appendChild(script)
|
||||||
|
}
|
||||||
|
|
||||||
|
let date = new Date()
|
||||||
|
if (date.getMonth() === 11 && date.getDate() >= 12) {
|
||||||
|
makeItSnow()
|
||||||
|
}
|
||||||
})()
|
})()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user