forked from Jeconias/react-calendar-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalendar.html
68 lines (63 loc) · 1.58 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
type="text/css"
media="screen"
href="./stylesheet/DefaultStyle/DefaultStyle.css"
/>
<title>Calendar JS</title>
</head>
<body>
<div class="calendar" id="calendar"></div>
</body>
<!-- This is a simple way to show how to use -->
<script src="./src/CalendarJS.js"></script>
<script type="module">
import ptBr from "./languages/ptBr.js";
const eventsDataBase = {
events: [
{
name: "Evento Chega Mais",
date: "2-9-2019",
time: "18:00",
author: "Mario"
},
{
name: "Festa 24H",
date: "10-9-2019",
time: "22:00",
author: "Mario",
link: "#test"
},
{
name: "O Evento é esse",
date: "10-9-2019",
time: "22:30",
author: "Mario",
link: "link para o evento"
},
{
name: "Edição Gamer",
date: "10-9-2019",
time: "15:30",
author: "Mario",
link: "link para o evento"
},
{
name: "DocePipoca",
date: "14-9-2019",
time: "07:15",
author: "Mario",
link: "link para o evento"
}
]
};
let calendarJS = new Calendar({ lang: ptBr });
calendarJS.render("#calendar").addEvents(eventsDataBase);
</script>
</html>