-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy pathindex.html
383 lines (354 loc) · 16.7 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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
---
layout: single
elementName: area
---
<section id="area" class="element">
<header class="element-header">
<nav class="element-links">
<span>
Type: <strong>inline</strong>
</span>
<span>
Self-closing:
<strong>
No
</strong>
</span>
<a class="element-links-direct" href="{{site.url}}/element/area/" data-element-name="area" data-tooltip="Single page for this element">Permalink</a>
<a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="area">Share</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/area" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="element-name">
<a href="#area">
<span>#</span>
area
</a>
</h2>
<div class="element-description">
<p>Defines an interactive area within a <code>map</code>.</p>
</div>
</header>
<div id="area-example-0" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#area-example-0-code">Copy</a>
</p>
<article class="example-preview">
<div class="example-output"><img src="/images/world-continents.png" width="320" height="160" orgwidth="320" orgheight="160" usemap="#world-continents">
<map name="world-continents">
<area title="North America" href="https://en.wikipedia.org/wiki/North_America" shape="poly" coords="48,89,67,69,77,49,140,0,68,0,6,10,4,31,16,69">
<area title="South America" href="https://en.wikipedia.org/wiki/South_America" shape="poly" coords="48,88,61,74,119,99,95,160,66,159">
<area title="Europe" href="https://en.wikipedia.org/wiki/Europe" shape="poly" coords="124,49,145,46,158,50,187,43,198,6,146,1,115,21">
<area title="Africa" href="https://en.wikipedia.org/wiki/Africa" shape="poly" coords="121,53,140,47,169,51,186,77,196,80,188,137,156,136,138,97,118,86">
<area title="Asia" href="https://en.wikipedia.org/wiki/Asia" shape="poly" coords="166,50,184,77,201,74,215,91,258,108,263,87,283,74,297,8,192,3,191,29,187,46,170,42">
<area title="Australia" href="https://en.wikipedia.org/wiki/Australia_(continent)" shape="poly" coords="257,107,263,85,314,89,316,137,294,151,249,132,248,114">
</map>
</div>
<div id="area-example-0-code" class="example-code">{% highlight html %}<img src="/images/world-continents.png" width="320" height="160" orgwidth="320" orgheight="160" usemap="#world-continents">
<map name="world-continents">
<area title="North America" href="https://en.wikipedia.org/wiki/North_America" shape="poly" coords="48,89,67,69,77,49,140,0,68,0,6,10,4,31,16,69">
<area title="South America" href="https://en.wikipedia.org/wiki/South_America" shape="poly" coords="48,88,61,74,119,99,95,160,66,159">
<area title="Europe" href="https://en.wikipedia.org/wiki/Europe" shape="poly" coords="124,49,145,46,158,50,187,43,198,6,146,1,115,21">
<area title="Africa" href="https://en.wikipedia.org/wiki/Africa" shape="poly" coords="121,53,140,47,169,51,186,77,196,80,188,137,156,136,138,97,118,86">
<area title="Asia" href="https://en.wikipedia.org/wiki/Asia" shape="poly" coords="166,50,184,77,201,74,215,91,258,108,263,87,283,74,297,8,192,3,191,29,187,46,170,42">
<area title="Australia" href="https://en.wikipedia.org/wiki/Australia_(continent)" shape="poly" coords="257,107,263,85,314,89,316,137,294,151,249,132,248,114">
</map>
{% endhighlight %}</div>
</article>
</div>
<article id="area-title" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="title">
title
</code>
</h3>
<div class="attribute-description">
<p>Defines the title of the area.</p>
</div>
</header>
<div class="attribute-values">
<article id="area-title-north-america" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy title="North America"" data-clipboard-text="title="North America"">
"North America"
</code>
</h4>
<div class="value-description">
<p>The title will appear when hovering the area.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area title="North America"></area></div>
</aside>
</article>
</div>
</article>
<article id="area-shape" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="shape">
shape
</code>
</h3>
<div class="attribute-description">
<p>Defines the shape of the area.</p>
</div>
</header>
<div class="attribute-values">
<article id="area-shape-rect" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy shape="rect"" data-clipboard-text="shape="rect"">
"rect"
</code>
</h4>
<div class="value-description">
<p>The shape is a rectangle and requires 4 coordinates.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area shape="rect"></area></div>
</aside>
</article>
<article id="area-shape-circle" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy shape="circle"" data-clipboard-text="shape="circle"">
"circle"
</code>
</h4>
<div class="value-description">
<p>The shape is a circle and requires 2 coordinates and 1 radius.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area shape="circle"></area></div>
</aside>
</article>
<article id="area-shape-polygon" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy shape="polygon"" data-clipboard-text="shape="polygon"">
"polygon"
</code>
</h4>
<div class="value-description">
<p>The shape is a polygon with unlimited points.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area shape="polygon"></area></div>
</aside>
</article>
</div>
</article>
<article id="area-coords" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="coords">
coords
</code>
</h3>
<div class="attribute-description">
<p>Defines the coordinates related to the shape.</p>
</div>
</header>
<div class="attribute-values">
<article id="area-coords-116104234154" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy coords="116,104,234,154"" data-clipboard-text="coords="116,104,234,154"">
"116,104,234,154"
</code>
</h4>
<div class="value-description">
<p>A <code>rect</code> requires two pairs <code>x1,y1,x2,y2</code>, where the first one defines the <strong>top left</strong> corner, and the second one the <strong>bottom right</strong> corner.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area coords="116,104,234,154"></area></div>
</aside>
</article>
<article id="area-coords-508020" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy coords="50,80,20"" data-clipboard-text="coords="50,80,20"">
"50,80,20"
</code>
</h4>
<div class="value-description">
<p>A <code>circle</code> requires a pair and a radius <code>x,y,r</code>. The pair defines the <strong>center</strong> of the circle.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area coords="50,80,20"></area></div>
</aside>
</article>
<article id="area-coords-198374243303428387361624296624" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy coords="198,374,243,303,428,387,361,624,296,624"" data-clipboard-text="coords="198,374,243,303,428,387,361,624,296,624"">
"198,374,243,303,428,387,361,624,296,624"
</code>
</h4>
<div class="value-description">
<p>A <code>polygon</code> requires a collection of <code>x,y</code> pairs.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area coords="198,374,243,303,428,387,361,624,296,624"></area></div>
</aside>
</article>
</div>
</article>
<article id="area-href" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="href">
href
</code>
</h3>
<div class="attribute-description">
<p>Defines the target of the area.</p>
</div>
</header>
<div class="attribute-values">
<article id="area-href-httphtmlreferenceio" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy href="http://htmlreference.io"" data-clipboard-text="href="http://htmlreference.io"">
"http://htmlreference.io"
</code>
</h4>
<div class="value-description">
<p>You can pass an <strong>absolute</strong> URL.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area href="http://htmlreference.io"></area></div>
</aside>
</article>
<article id="area-href-elementdiv" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy href="/element/div"" data-clipboard-text="href="/element/div"">
"/element/div"
</code>
</h4>
<div class="value-description">
<p>You can pass a URL <strong>relative</strong> to the root domain.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area href="/element/div"></area></div>
</aside>
</article>
<article id="area-href-footer" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy href="#footer"" data-clipboard-text="href="#footer"">
"#footer"
</code>
</h4>
<div class="value-description">
<p>You can target an element within the <em>same</em> page. Here, we target the element <code><div id="footer"></code></p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area href="#footer">Footer</area></div>
</aside>
</article>
<article id="area-href-mailtoalexsmithcom" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy href="mailto:[email protected]"" data-clipboard-text="href="mailto:[email protected]"">
"mailto:[email protected]"
</code>
</h4>
<div class="value-description">
<p>You can use the <code>mailto</code> protocol. Clicking the area will open the user's email client.</p>
</div>
</header>
<aside class="value-preview">
</aside>
</article>
</div>
</article>
<article id="area-target" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="target">
target
</code>
</h3>
<div class="attribute-description">
<p>Defines in which tab or window the clicked area will show up.</p>
</div>
</header>
<div class="attribute-values">
<article id="area-target-_blank" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_blank"" data-clipboard-text="target="_blank"">
"_blank"
</code>
</h4>
<div class="value-description">
<p>Opens in a new browsing context, which is usually a <strong>new tab</strong>.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area href="http://htmlreference.io" target="_blank"></area></div>
</aside>
</article>
<article id="area-target-_self" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_self"" data-clipboard-text="target="_self"">
"_self"
</code>
</h4>
<div class="value-description">
<p>Opens in the current tab.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area href="http://htmlreference.io" target="_self"></area></div>
</aside>
</article>
<article id="area-target-_parent" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_parent"" data-clipboard-text="target="_parent"">
"_parent"
</code>
</h4>
<div class="value-description">
<p>Opens in the parent browsing context, or <code>_self</code> if there is none.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area href="http://htmlreference.io" target="_parent"></area></div>
</aside>
</article>
<article id="area-target-_top" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_top"" data-clipboard-text="target="_top"">
"_top"
</code>
</h4>
<div class="value-description">
<p>Opens in the top browsing context, or <code>_self</code> if there is none.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><area href="http://htmlreference.io" target="_top"></area></div>
</aside>
</article>
</div>
</article>
</section>