Inital commit
This commit is contained in:
commit
a6af7dbfcb
114 files changed
+27520
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<% const snow = [];%>
|
||||
<noscript>
|
||||
|
||||
<%
|
||||
const m = new Date().getMonth();
|
||||
snowflakes = "❅❆❃❊❉";
|
||||
if ([11,0,1].includes(m)) {
|
||||
const winter = 10;
|
||||
for (let i = 0; i < winter; i++) {
|
||||
snow.push(snowflakes[Math.floor(Math.random() * snowflakes.length)]);
|
||||
}
|
||||
}
|
||||
for(var i = 0; i < snow.length; i++) { %>
|
||||
<div class="snowflake"><%= snow[i] %> </div>
|
||||
<% } %>
|
||||
</noscript>
|
||||
<% if (snow.length) { %>
|
||||
<script src="/assets/js/snow.js"></script>
|
||||
<% } %>
|
||||
|
||||
Reference in new issue
Block a user