-
Notifications
You must be signed in to change notification settings - Fork 4
/
calendar.html
50 lines (38 loc) · 1.35 KB
/
calendar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="theme-color" content="#d89f52">
<meta name="msapplication-navbutton-color" content="#d89f52">
<meta name="apple-mobile-web-app-status-bar-style" content="#d89f52">
<title>Vanilla JS Calendar</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<!-- Trick Question: Is the header color of this page the same or different from the body background color? -->
</head>
<body>
<!--
^ ---- ^ __ ^ ---- ^
|\ -- /| | \ |\ -- /|
| \ / | | | | \ / |
| \/ | |__/ | \/ |
\ / \ /
-->
<h1>Vanilla JavaScript Calendar</h1>
<hr>
<!-- Target element to render calendar inside: -->
<div id="calendarThis"> </div>
<div class="container">
<h3>How To Use:</h3>
<pre>
// Target an element ID you want to render the calendar inside of:
renderCalendar(calendarThis);
// Something like this in your HTML file:
<div id="calendarThis"> <div>
// Source code:
<a href="https://github.com/mikeumus/vanilla-js-calendar">https://github.com/mikeumus/vanilla-js-calendar</a>
</pre>
</div>
<script src="calendar.js"></script>
</body>
<!-- Trick Answer: Both the header and the body are both pure white. Tis an optical illusion. ;) -->
</html>