forked from kthornbloom/Monthly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
164 lines (154 loc) · 3.95 KB
/
index.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!doctype html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset='utf-8'>
<head>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- META ===================================================== -->
<title>Monthly - A jQuery Calendar Plugin</title>
<meta name="description" content="A method for responsive tables">
<!-- Favicon ========================================== -->
<!-- CSS ======================================================
<link rel="stylesheet" href="css/responsivetables.css">-->
<!-- Demo CSS (don't use) -->
<link href="https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" rel="stylesheet" type="text/css">
<style type="text/css">
body, html {
padding:0px;
margin:0px;
background: url('images/bg.jpg') center;
background-size:cover;
background-attachment: fixed;
text-align:center;
color:#fff;
line-height: 1.4em;
font-family: "Trebuchet MS", Helvetica, sans-serif;
}
body {
padding:10vh 0;
}
h1 {
font-family: 'Yanone Kaffeesatz', sans-serif;
text-align: center;
font-size: 77px;
text-shadow: 0 0px 30px rgba(0, 0, 0, 0.2);
}
h2 {
font-family: 'Yanone Kaffeesatz', sans-serif;
font-size:30px;
text-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
color:#fff;
}
.monthly {
box-shadow: 0 13px 40px rgba(0, 0, 0, 0.5);
}
input[type="text"] {
padding: 15px;
border-radius: 2px;
font-size: 16px;
outline: none;
border: 2px solid rgba(255, 255, 255, 0.5);
background: rgba(63, 78, 100, 0.27);
color: #fff;
width: 250px;
box-sizing: border-box;
font-family: "Trebuchet MS", Helvetica, sans-serif;
}
input[type="text"]:hover {
border: 2px solid rgba(255, 255, 255, 0.7);
}
input[type="text"]:focus {
border: 2px solid rgba(255, 255, 255, 1);
background:#eee;
color:#222;
}
.button {
display: inline-block;
padding: 15px 25px;
margin: 25px 0 75px 0;
border-radius: 3px;
color: #fff;
background: #000;
letter-spacing: .4em;
text-decoration: none;
font-size: 13px;
}
.button:hover {
background: #3b587a;
}
.desc {
max-width: 250px;
text-align: left;
font-size:14px;
padding-top:30px;
line-height: 1.4em;
}
.resize {
background: #222;
display: inline-block;
padding: 6px 15px;
border-radius: 22px;
font-size: 13px;
}
@media (max-height: 700px) {
.sticky {
position: relative;
}
}
@media (max-width: 600px) {
.resize {
display: none;
}
}
</style>
<link rel="stylesheet" href="css/monthly.css">
</head>
<body>
<div class="page">
<h1>monthly.js</h1>
<h2>Example One - Event Calendar</h2>
<div style="width:100%; max-width:600px; display:inline-block;">
<div class="monthly" id="mycalendar"></div>
</div>
<br><br>
<h2>Example Two - Date Picker</h2>
<div style="display:inline-block; width:250px;">
<input type="text" id="mytarget" value="Select Date">
<div class="monthly" id="mycalendar2"></div>
</div>
<br>
<a href="https://github.com/kthornbloom/Monthly" class="button">DOWNLOAD / DOCS</a>
</div>
<!-- JS ======================================================= -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/monthly.js"></script>
<script type="text/javascript">
$(window).load( function() {
$('#mycalendar').monthly({
mode: 'event',
xmlUrl: 'events.xml'
});
$('#mycalendar2').monthly({
mode: 'picker',
target: '#mytarget',
setWidth: '250px',
startHidden: true,
showTrigger: '#mytarget',
stylePast: true,
disablePast: true
});
switch(window.location.protocol) {
case 'http:':
case 'https:':
// running on a server, should be good.
break;
case 'file:':
alert('Just a heads-up, events will not work when run locally.');
}
});
</script>
</body>
</html>