forked from jquerytools/www
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstatic.html
More file actions
45 lines (31 loc) · 1.18 KB
/
static.html
File metadata and controls
45 lines (31 loc) · 1.18 KB
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
<%-- :mode=jsp: --%>
<%@ include file="../header.jsf" %>
<p class="more">
You can configure the dateinput to be always visible. Now you can build applications where the calendar is a core part of the user interface.
</p>
<%@ include file="static.htm" %>
<h3>Dateinput configuration</h3>
<p>
There is no special configuration variables to make this possible. We do some simple scripting instead. The logic is simple: 1. show the dateinput when page loads and 2. disable closing of dateinput. When user clicks on a date we update our large "day display" with a custom formatted date string.
</p>
<pii:code lang="js">
${js}
</pii:code>
<h3>HTML layout</h3>
<p>
We make a separate wrapper element for the dateinput and the associative calendar and we adjust it's dimensions with CSS. The day display is a simple DIV that get's filled when a day is selected.
</p>
<pii:code lang="html">
${html}
</pii:code>
<h3>CSS coding</h3>
<p>
Here is the styling of the wrapper element and the day display.
</p>
<pii:code lang="css">
${css}
</pii:code>
<br />
<div class="box petrol">
Here is the <a href="static.htm">standalone version</a> of this demo. You can freely study and copy its source code.
</div>