-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
261 lines (232 loc) · 7.52 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Quetzal</title>
<script src="components/platform/platform.js"></script>
<link rel="import" href="demos/demo-tile.html">
<link rel="import" href="quetzal.html">
<style>
body,
button,
input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
}
body {
margin: 0.5in;
}
demo-tile {
margin-right: 1em;
}
p {
max-width: 800px;
}
quetzal-list-box {
height: 200px;
}
</style>
</head>
<body unresolved>
<div class="notVeiled">
<h1 style="color: green; vertical-align: top;">
<img style="height: 60px; width: 60px;" src="resources/quetzal.png"/>Quetzal
</h1>
<p>
Quetzal is a collection of general-purpose standards-based HTML web components.
This is not a framework, just a set of reusable HTML elements created with new
standards. You can add these elements to your own web applications.
The <a href="https://github.com/JanMiksovsky/quetzal">Quetzal source code is on GitHub</a>.
</p>
<p>
The Quetzal element collection relies on Google's <a href="http://www.polymer-project.org">Polymer</a>
project to support aspects of custom elements which are not yet supported in
all browsers.
</p>
<p>
For the time being, <b>use Google Chrome Canary</b> to view this page.
Results are also more predictable if you open chrome://flags and <b>Enable
Experimental Platform Features</b>.
</p>
</div>
<demo-tile>
<property name="classname">globalize-culture</property>
<property name="description">Programmatic or user selection of a culture.</property>
<property name="demo">
<globalize-culture></globalize-culture>
</property>
</demo-tile>
<demo-tile>
<property name="classname">lorem-pixel</property>
<property name="description">Selects a random photo from lorempixel.com.</property>
<property name="demo">
<lorem-pixel height="225" width="300"></lorem-pixel>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-auto-size-text-box</property>
<property name="description">A text area that expands to contain its text.</property>
<property name="demo">
<quetzal-auto-size-text-box minimumLines="2" placeholder="Type all you want!"></quetzal-auto-size-text-box>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-button</property>
<property name="description">Shows its content inside a simple button.</property>
<property name="demo">
<quetzal-button>Button</quetzal-button>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-calendar-month</property>
<property name="description">
A calendar showing a single month. Highly customizable.
</property>
<property name="demo">
<quetzal-calendar-month></quetzal-calendar-month>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-calendar-month-with-headings</property>
<property name="description">
A month calendar with month name, year, and day of week headings. Locale-
specific calendar preferences are automatically localized via the
<a href="https://github.com/jquery/globalize">Globalize</a>
library of 300+ cultures.
</property>
<property name="demo">
<quetzal-calendar-month-with-headings></quetzal-calendar-month-with-headings>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-combo-box</property>
<property name="description">
An input area with a dropdown arrow that invokes a popup. This is intended for
use as base class for custom combo boxes.
</property>
<property name="demo">
<quetzal-combo-box value="Hello">
<property name="popup">You can populate a popup like this with choices for the user to pick.</property>
</quetzal-combo-box>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-fixed-aspect</property>
<property name="description">
Shows its content at the largest size that maintains the aspect ratio
specified by its aspect attribute.
</property>
<property name="demo">
<quetzal-fixed-aspect aspect="0.5" style="height: 100px; width: 100%;">
<div style="background: #eee; height: 100%; position: absolute; width: 100%;">
This box has a 1:2 aspect ratio.
</div>
</quetzal-fixed-aspect>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-infinite-scroll</property>
<property name="description">
A scrolling surface that adds elements as necessary to ensure the user can
continue scrolling indefinitely. By default, simply repeats its content, but
can also be extended to load data or perform other work when new items are
added.
</property>
<property name="demo">
<quetzal-infinite-scroll style="height: 200px;">
<div>Hello!</div>
</quetzal-infinite-scroll>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-list-box</property>
<property name="description">A list of items that supports single selection and keyboard navigation
(Up/Down, Page Up/Down, Home/End).</property>
<property name="demo">
<quetzal-list-box>
<div>Blue</div>
<div>Brown</div>
<div>DarkBlue</div>
<div>DarkGreen</div>
<div>DarkRed</div>
<div>Gold</div>
<div>Goldenrod</div>
<div>Green</div>
<div>Indigo</div>
<div>LightCoral</div>
<div>LightGray</div>
<div>LightSeaGreen</div>
<div>LightSkyBlue</div>
<div>MediumPurple</div>
<div>OrangeRed</div>
<div>PaleGoldenRod</div>
<div>PaleVioletRed</div>
<div>Red</div>
<div>Sienna</div>
<div>SlateBlue</div>
<div>SteelBlue</div>
<div>Tan</div>
<div>Teal</div>
<div>Yellow</div>
<div>YellowGreen</div>
</quetzal-list-box>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-list-combo-box</property>
<property name="description">
A combo box in which choices are rendered in a dropdown list box.
</property>
<property name="demo">
<quetzal-list-combo-box>
<labeled-color-swatch>Blue</labeled-color-swatch>
<labeled-color-swatch>Brown</labeled-color-swatch>
<labeled-color-swatch>DarkBlue</labeled-color-swatch>
<labeled-color-swatch>DarkGreen</labeled-color-swatch>
<labeled-color-swatch>DarkRed</labeled-color-swatch>
<labeled-color-swatch>Green</labeled-color-swatch>
<labeled-color-swatch>LightCoral</labeled-color-swatch>
<labeled-color-swatch>LightGray</labeled-color-swatch>
<labeled-color-swatch>LightSeaGreen</labeled-color-swatch>
<labeled-color-swatch>LightSkyBlue</labeled-color-swatch>
<labeled-color-swatch>OrangeRed</labeled-color-swatch>
<labeled-color-swatch>Red</labeled-color-swatch>
<labeled-color-swatch>SlateBlue</labeled-color-swatch>
<labeled-color-swatch>SteelBlue</labeled-color-swatch>
<labeled-color-swatch>Tan</labeled-color-swatch>
<labeled-color-swatch>Yellow</labeled-color-swatch>
</quetzal-list-combo-box>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-popup-button</property>
<property name="description">A button which, when clicked, shows a popup which
is positioned above or below the button.</property>
<property name="demo">
<quetzal-popup-button>
<property name="popup">Here's the popup</property>
Click for a popup
</quetzal-popup-button>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-popup-source</property>
<property name="description">A base class for elements which produce a popup
when clicked. See also <markup-tag>popup-button</markup-tag>.</property>
<property name="demo">
<quetzal-popup-source>
<property name="popup">Here's the popup</property>
Click me
</quetzal-popup-source>
</property>
</demo-tile>
<demo-tile>
<property name="classname">quetzal-calendar-week</property>
<property name="description">
A highly-customizable week calendar. See also quetzal-calendar-month.
</property>
<property name="demo">
<quetzal-calendar-week></quetzal-calendar-week>
</property>
</demo-tile>
</body>
</html>