forked from h5bp/html5please-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (110 loc) · 3.35 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>caniuse api</title>
<style>
* { font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; }
html { background: #F2F2F2; color: #333; font: 100%/1 sans-serif; }
body { margin: 0 auto; width: 33em; }
h1, section { margin: 2em 0; }
h1 { font-size: 2em; font-weight: bold; }
h2 { font-size: 1.5em; font-weight: bold; margin: 0.5em 0; }
h3 { font-weight: bold; margin: 1em 0; }
p { line-height: 1.5; margin: 0.5em 0; }
em { color: #555; font-size: 75%; }
var { background: #EEE; border: 1px solid #DDD; border-radius: 0.25em; font-style: italic; padding: 0.125em 0.25em; }
code { font-family: monospace, monospace; }
strong { font-weight: bold; }
a { color: #55D; text-decoration: none; }
</style>
</head>
<body>
<h1>
caniuse api
</h1>
<p>
Powered by the services powering <a href="http://caniuse.com/">caniuse.com</a>.
</p>
<section>
<h2>
How to use
</h2>
<p>
url: <code>[ features ].[ format ][ ? [ options ] ]</code>
</p>
<h3>
features
</h3>
<p>
The features <em>(<var>+</var> delimited)</em> to be tested, like <var>apng</var> or <var>canvas+json</var>.
</p>
<h3>
format
</h3>
<p>
The format the output will be returned as, like <var>json</var> or <var>xml</var>.
</p>
<h3>
options
</h3>
<p>
The options to be applied to the data, like <var>callback=myFunction</var> or <var>nostyle</var>.
</p>
</section>
<section>
<h2>
Examples
</h2>
<p>
<code><a href="svg.html">svg.html</a></code>: displays the results of an <var>svg</var> feature test as a button in HTML.
</p>
<p>
<code><a href="canvas+json.js?callback=myFunction">canvas+json.js?callback=myFunction</a></code>: displays the results of a <var>canvas+json</var> feature test in JavaScript, wrapped in a JSONP <var>myFunction</var> callback.
</p>
<p>
<code><a href="apng.html?texticon">apng.html?texticon</a></code>: displays the results of a <var>apng</var> feature test as text with icons in HTML.
</p>
</section>
<section>
<h2>
Formats
</h2>
<p>
<code><strong>html</strong></code>: the output will be valid HTML with the mimetype of <var>text/html</var>.
</p>
<p>
<code><strong>js</strong></code>: the output will be valid JavaScript with the mimetype of <var>text/javascript</var>.
</p>
<p>
<code><strong>json</strong></code>: the output will be valid JSON with the mimetype of <var>text/json</var>.
</p>
<p>
<code><strong>xml</strong></code>: the output will be valid XML with the mimetype of <var>text/xml</var>.
</p>
</section>
<section>
<h2>
Options
</h2>
<p>
<code><strong>callback = [ functionName ]</strong></code>: the output will be JavaScript, wrapped in this function name.
</p>
<p>
<code><strong>button</strong></code>: the default, the HTML will be optimized for button output.
</p>
<p>
<code><strong>text</strong></code>: the HTML will be optimized for text output.
</p>
<p>
<code><strong>icon</strong></code>: the HTML will be optimized for icon output.
</p>
<p>
<code><strong>texticon</strong></code>: the HTML will be optimized for text and icon output.
</p>
<p>
<code><strong>nostyle</strong></code>: the HTML will not include the stylesheet.
</p>
</section>
</body>
</html>