-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanual-test.html
52 lines (42 loc) · 1.14 KB
/
manual-test.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Supercal Test</title>
<link rel="stylesheet" href="lib/supercal.css">
<link rel="stylesheet" href="lib/arise.css">
<style type="text/css">
.comp {
display: flex;
margin: 2em 0;
}
input {
border: 1px solid #ccc;
font-size: 12px;
padding: 5px;
border-radius: 5px;
}
</style>
</head>
<body>
<h1>Static:</h1>
<div id="static-calendar" class="comp">
</div>
<div style="margin: 1em auto; width: 800px;">
<h1>Bare controller:</h1>
<div id="calendar-controller" class="comp">
</div>
</div>
<h1>Single Input Picker</h1>
<div id="single-input" class="comp"></div>
<script src="lib/manual-test.js"></script>
<script>
TimeDial = window.getClass('TimeDial');
renderComponent( document.querySelector('#static-calendar'),
'Calendar', { displayMonth: new TimeDial() });
renderComponent( document.querySelector('#calendar-controller'),
'SingleDatePicker', { numberOfMonths: 2 } );
renderComponent( document.querySelector('#single-input'), 'SingleDateInput');
</script>
</body>
</html>