init
This commit is contained in:
44
index.html
Normal file
44
index.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Is Tommy On VistaBreak?</title>
|
||||
<meta name="description" content="Is Tommy On Vistabreak?">
|
||||
|
||||
<style type="text/css">
|
||||
html, body {height: 100%;}
|
||||
body {text-align: center;}
|
||||
#answer {
|
||||
display: inline-block;
|
||||
margin-top: 200px;
|
||||
font-weight: bold;
|
||||
font-size: 120pt;
|
||||
font-family: Arial, sans-serif;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
#answer>a {
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
font-size: 120pt;
|
||||
font-family: Arial, sans-serif;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="answer" target="_blank"></div>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var now = moment(),
|
||||
start = moment("2016-08-01"),
|
||||
end = moment("2016-08-31");
|
||||
var answer = (now >= start && now <= end) ? "YES" : "NO";
|
||||
var elem = document.getElementById('answer');
|
||||
elem.innerHTML = answer;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user