Advent Calendar
Open a new link every day!
by DerpMarine
HTML
<!DOCTYPE html>
<!--[if lte IE 6]><html class="preIE7 preIE8 preIE9"><![endif]-->
<!--[if IE 7]><html class="preIE8 preIE9"><![endif]-->
<!--[if IE 8]><html class="preIE9"><![endif]-->
<!--[if gte IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Advent Calendar</title>
<meta name="author" content="name">
<meta name="description" content="description here">
<meta name="keywords" content="Christmas,Calendar,advent,Advent Calendar">
</head>
<body>
<h1>Advent Calendar</h1>
<h3>By DerpMarine</h3>
<p>Open a new link every day!</p>
<a href="https://codepen.io/loktar00/full/CHpGo">Day 1</a>
<a href="">Day 2</a>
</body>
</html>
CSS
html,
body {
background-color: #010101
}
h1 {
font-family: Tahoma, Verdana, Segoe, sans-serif;
font-size: 24px;
font-style: normal;
font-variant: normal;
font-weight: 700;
line-height: 26.4px;
color: #F1F1F1;
}
h3 {
font-family: Tahoma, Verdana, Segoe, sans-serif;
font-size: 14px;
font-style: normal;
font-variant: normal;
font-weight: 700;
line-height: 15.4px;
color: #E1E1E1;
}
p {
font-family: Tahoma, Verdana, Segoe, sans-serif;
font-size: 14px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 20px;
color: #F1F1F1;
}
blockquote {
font-family: Tahoma, Verdana, Segoe, sans-serif;
font-size: 21px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 30px;
color: #B1B1B1;
}
pre,
code {
font-family: monospace;
font-size: 13px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 18.5714px;
background-color: #111111;
border-radius: .5em;
}
JavaScript
function autorun() {
}
if (document.addEventListener) document.addEventListener("DOMContentLoaded", autorun, false);
else if (document.attachEvent) document.attachEvent("onreadystatechange", autorun);
else window.onload = autorun;
if (!Date.now)
Date.now = function() { return new Date().getTime(); };
(function() {
'use strict';
var vendors = ['webkit', 'moz'];
for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) {
var vp = vendors[i];
window.requestAnimationFrame = window[vp+'RequestAnimationFrame'];
window.cancelAnimationFrame = (window[vp+'CancelAnimationFrame']
|| window[vp+'CancelRequestAnimationFrame']);
}
if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent) // iOS6 is buggy
|| !window.requestAnimationFrame || !window.cancelAnimationFrame) {
var lastTime = 0;
window.requestAnimationFrame = function(callback) {
var now = Date.now();
var nextTime = Math.max(lastTime + 16, now);
return setTimeout(function() { callback(lastTime = nextTime); },
nextTime - now);
};
window.cancelAnimationFrame = clearTimeout;
}
}());
var snowFall = (function(){
function jSnow(){
// local methods
var defaults = {
flakeCount : 35,
flakeColor : '#ffffff',
flakeIndex: 999999,
flakePosition: 'absolute',
minSize : 1,
maxSize : 2,
minSpeed : 1,
maxSpeed : 5,
round : false,
shadow : false,
collection : false,
image : false,
collectionHeight : 40
},
flakes = [],
element = {},
elHeight = 0,
elWidth = 0,
widthOffset = 0,
snowTimeout = 0,
// For...