This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function maskify(cc) { | |
return cc.slice(0, -4).replace(/./g, '#') + cc.slice(-4); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.timer { | |
padding: 10px; | |
text-align: center; | |
} | |
.timer-text { | |
font-size: 20px; | |
} | |
.timer-time { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Timer</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function decOfNum (number, titles) { | |
if(!decCache[number]) decCache[number] = number % 100 > 4 && number < 20 ? 2 : decCases[Math.min(number % 10, 5)]; | |
return titles[decCache[number]]; | |
} | |
function timerLeft() { | |
setInterval(function() { | |
var hoursLeft = document.getElementById('timer-v-hours'), | |
hoursText = document.getElementById('timer-v-hours_text'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function heightDetect() { | |
$(".main-head").css("height", $(window).height()); | |
}; | |
heightDetect(); | |
$(window).resize(function() { | |
heightDetect(); | |
}); |