crossnote 0.9.20 → 0.9.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -2
- package/out/cjs/index.cjs +270 -263
- package/out/dependencies/README.md +2 -2
- package/out/dependencies/katex/katex-swap.min.css +1 -1
- package/out/dependencies/katex/katex.min.css +1 -1
- package/out/dependencies/mermaid/mermaid.min.js +813 -537
- package/out/dependencies/reveal/css/theme/vscode.css +290 -0
- package/out/dependencies/reveal/lib/js/head.min.js +1 -1
- package/out/esm/index.mjs +279 -272
- package/out/styles/octocat-spinner-128.gif +0 -0
- package/out/styles/preview.css +1 -1
- package/out/styles/preview_theme/gothic.css +1 -1
- package/out/styles/preview_theme/vscode.css +1 -0
- package/out/styles/preview_theme/vue.css +1 -1
- package/out/styles/prism_theme/vscode.css +1 -0
- package/out/styles/prism_theme/vue.css +1 -1
- package/out/styles/style-template.css +1 -1
- package/out/types/src/converters/ebook-convert.d.ts +1 -1
- package/out/types/src/converters/markdown-convert.d.ts +2 -2
- package/out/types/src/converters/pandoc-convert.d.ts +2 -2
- package/out/types/src/converters/prince-convert.d.ts +1 -1
- package/out/types/src/custom-markdown-it-features/code-fences.d.ts +2 -0
- package/out/types/src/custom-markdown-it-features/colon-fenced-code-blocks.d.ts +3 -0
- package/out/types/src/markdown-engine/extension-helper.d.ts +1 -1
- package/out/types/src/markdown-engine/index.d.ts +24 -18
- package/out/types/src/markdown-engine/sanitize.d.ts +2 -1
- package/out/types/src/markdown-engine/transformer.d.ts +3 -2
- package/out/types/src/notebook/index.d.ts +17 -1
- package/out/types/src/notebook/note.d.ts +1 -1
- package/out/types/src/notebook/slash.d.ts +1 -1
- package/out/types/src/notebook/types.d.ts +11 -5
- package/out/types/src/prism/iele.d.ts +4 -1
- package/out/types/src/prism/k.d.ts +4 -1
- package/out/types/src/render-enhancers/code-block-styling.d.ts +2 -1
- package/out/types/src/render-enhancers/embedded-local-images.d.ts +2 -1
- package/out/types/src/render-enhancers/embedded-svgs.d.ts +2 -1
- package/out/types/src/render-enhancers/extended-table-syntax.d.ts +2 -1
- package/out/types/src/render-enhancers/fenced-code-chunks.d.ts +4 -2
- package/out/types/src/render-enhancers/fenced-diagrams.d.ts +7 -2
- package/out/types/src/render-enhancers/fenced-math.d.ts +2 -1
- package/out/types/src/render-enhancers/resolved-image-paths.d.ts +2 -1
- package/out/types/src/renderers/bitfield.d.ts +1 -1
- package/out/types/src/renderers/d2.d.ts +8 -0
- package/out/types/src/renderers/tikz.d.ts +10 -0
- package/out/types/src/renderers/vega-lite.d.ts +1 -1
- package/out/types/src/tools/image-uploader.d.ts +3 -3
- package/out/types/src/tools/mermaid.d.ts +1 -1
- package/out/types/src/utility.d.ts +5 -4
- package/out/types/src/webview/components/GraphViewComponent.d.ts +2 -0
- package/out/types/src/webview/containers/preview.d.ts +2 -1
- package/out/types/src/webview/graph-view.d.ts +1 -0
- package/out/types/src/webview/lib/utility.d.ts +1 -1
- package/out/types/test/notebook.test.d.ts +1 -0
- package/out/types/test/tikz-fenced.test.d.ts +1 -0
- package/out/types/test/tikz.test.d.ts +1 -0
- package/out/types/test/webview-sanitize.test.d.ts +1 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/out/webview/backlinks.css +1 -1
- package/out/webview/backlinks.js +5 -5
- package/out/webview/graph-view.css +1 -0
- package/out/webview/graph-view.js +43 -0
- package/out/webview/preview.css +1 -1
- package/out/webview/preview.js +221 -221
- package/package.json +47 -22
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VS Code theme for Reveal.js presentations in Markdown Preview Enhanced.
|
|
3
|
+
* Uses VS Code CSS custom properties so presentations automatically
|
|
4
|
+
* match the editor's current color theme.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
section.has-light-background,
|
|
8
|
+
section.has-light-background h1,
|
|
9
|
+
section.has-light-background h2,
|
|
10
|
+
section.has-light-background h3,
|
|
11
|
+
section.has-light-background h4,
|
|
12
|
+
section.has-light-background h5,
|
|
13
|
+
section.has-light-background h6 {
|
|
14
|
+
color: #222;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
section.has-dark-background,
|
|
18
|
+
section.has-dark-background h1,
|
|
19
|
+
section.has-dark-background h2,
|
|
20
|
+
section.has-dark-background h3,
|
|
21
|
+
section.has-dark-background h4,
|
|
22
|
+
section.has-dark-background h5,
|
|
23
|
+
section.has-dark-background h6 {
|
|
24
|
+
color: #fff;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/*********************************************
|
|
28
|
+
* GLOBAL STYLES
|
|
29
|
+
*********************************************/
|
|
30
|
+
|
|
31
|
+
:root {
|
|
32
|
+
--r-background-color: var(--vscode-editor-background, #1e1e1e);
|
|
33
|
+
--r-main-font: var(--vscode-font-family, system-ui, -apple-system, sans-serif);
|
|
34
|
+
--r-main-font-size: 40px;
|
|
35
|
+
--r-main-color: var(--vscode-editor-foreground, #d4d4d4);
|
|
36
|
+
--r-block-margin: 20px;
|
|
37
|
+
--r-heading-margin: 0 0 20px 0;
|
|
38
|
+
--r-heading-font: var(--vscode-font-family, system-ui, -apple-system, sans-serif);
|
|
39
|
+
--r-heading-color: var(--vscode-editor-foreground, #d4d4d4);
|
|
40
|
+
--r-heading-line-height: 1.2;
|
|
41
|
+
--r-heading-letter-spacing: normal;
|
|
42
|
+
--r-heading-text-transform: none;
|
|
43
|
+
--r-heading-text-shadow: none;
|
|
44
|
+
--r-heading-font-weight: 600;
|
|
45
|
+
--r-heading1-text-shadow: none;
|
|
46
|
+
--r-heading1-size: 2.5em;
|
|
47
|
+
--r-heading2-size: 1.6em;
|
|
48
|
+
--r-heading3-size: 1.3em;
|
|
49
|
+
--r-heading4-size: 1.0em;
|
|
50
|
+
--r-code-font: var(--vscode-editor-font-family, Consolas, 'Courier New', monospace);
|
|
51
|
+
--r-link-color: var(--vscode-textLink-foreground, #3794ff);
|
|
52
|
+
--r-link-color-dark: var(--vscode-textLink-activeForeground, #3794ff);
|
|
53
|
+
--r-link-color-hover: var(--vscode-textLink-activeForeground, #3794ff);
|
|
54
|
+
--r-selection-background-color: var(--vscode-editor-selectionBackground, rgba(128,128,128,0.3));
|
|
55
|
+
--r-selection-color: #fff;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.reveal-viewport {
|
|
59
|
+
background: var(--r-background-color);
|
|
60
|
+
background-color: var(--r-background-color);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.reveal {
|
|
64
|
+
font-family: var(--r-main-font);
|
|
65
|
+
font-size: var(--r-main-font-size);
|
|
66
|
+
font-weight: normal;
|
|
67
|
+
color: var(--r-main-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.reveal ::selection {
|
|
71
|
+
color: var(--r-selection-color);
|
|
72
|
+
background: var(--r-selection-background-color);
|
|
73
|
+
text-shadow: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.reveal ::-moz-selection {
|
|
77
|
+
color: var(--r-selection-color);
|
|
78
|
+
background: var(--r-selection-background-color);
|
|
79
|
+
text-shadow: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.reveal .slides section,
|
|
83
|
+
.reveal .slides section > section {
|
|
84
|
+
line-height: 1.3;
|
|
85
|
+
font-weight: inherit;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/*********************************************
|
|
89
|
+
* HEADERS
|
|
90
|
+
*********************************************/
|
|
91
|
+
|
|
92
|
+
.reveal h1,
|
|
93
|
+
.reveal h2,
|
|
94
|
+
.reveal h3,
|
|
95
|
+
.reveal h4,
|
|
96
|
+
.reveal h5,
|
|
97
|
+
.reveal h6 {
|
|
98
|
+
margin: var(--r-heading-margin);
|
|
99
|
+
color: var(--r-heading-color);
|
|
100
|
+
font-family: var(--r-heading-font);
|
|
101
|
+
font-weight: var(--r-heading-font-weight);
|
|
102
|
+
line-height: var(--r-heading-line-height);
|
|
103
|
+
letter-spacing: var(--r-heading-letter-spacing);
|
|
104
|
+
text-transform: var(--r-heading-text-transform);
|
|
105
|
+
text-shadow: var(--r-heading-text-shadow);
|
|
106
|
+
word-wrap: break-word;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.reveal h1 { font-size: var(--r-heading1-size); text-shadow: var(--r-heading1-text-shadow); }
|
|
110
|
+
.reveal h2 { font-size: var(--r-heading2-size); }
|
|
111
|
+
.reveal h3 { font-size: var(--r-heading3-size); }
|
|
112
|
+
.reveal h4 { font-size: var(--r-heading4-size); }
|
|
113
|
+
|
|
114
|
+
.reveal h1 { text-shadow: var(--r-heading1-text-shadow); }
|
|
115
|
+
|
|
116
|
+
/*********************************************
|
|
117
|
+
* OTHER
|
|
118
|
+
*********************************************/
|
|
119
|
+
|
|
120
|
+
.reveal p {
|
|
121
|
+
margin: var(--r-block-margin) 0;
|
|
122
|
+
line-height: 1.3;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.reveal strong,
|
|
126
|
+
.reveal b {
|
|
127
|
+
font-weight: bold;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.reveal em {
|
|
131
|
+
font-style: italic;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.reveal ol,
|
|
135
|
+
.reveal dl,
|
|
136
|
+
.reveal ul {
|
|
137
|
+
display: inline-block;
|
|
138
|
+
text-align: left;
|
|
139
|
+
margin: 0 0 0 1em;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.reveal ol { list-style-type: decimal; }
|
|
143
|
+
.reveal ul { list-style-type: disc; }
|
|
144
|
+
.reveal ul ul { list-style-type: square; }
|
|
145
|
+
.reveal ul ul ul { list-style-type: circle; }
|
|
146
|
+
|
|
147
|
+
.reveal ul ul,
|
|
148
|
+
.reveal ul ol,
|
|
149
|
+
.reveal ol ol,
|
|
150
|
+
.reveal ol ul {
|
|
151
|
+
display: block;
|
|
152
|
+
margin-left: 40px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.reveal dt {
|
|
156
|
+
font-weight: bold;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.reveal dd {
|
|
160
|
+
margin-left: 40px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.reveal blockquote {
|
|
164
|
+
display: block;
|
|
165
|
+
position: relative;
|
|
166
|
+
width: 70%;
|
|
167
|
+
margin: var(--r-block-margin) auto;
|
|
168
|
+
padding: 5px;
|
|
169
|
+
font-style: italic;
|
|
170
|
+
background: var(--vscode-textBlockQuote-background, rgba(128,128,128,0.1));
|
|
171
|
+
border-left: 4px solid var(--vscode-textBlockQuote-border, rgba(128,128,128,0.5));
|
|
172
|
+
box-shadow: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.reveal blockquote p:first-child,
|
|
176
|
+
.reveal blockquote p:last-child {
|
|
177
|
+
display: inline-block;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.reveal q {
|
|
181
|
+
font-style: italic;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.reveal pre {
|
|
185
|
+
display: block;
|
|
186
|
+
position: relative;
|
|
187
|
+
width: 90%;
|
|
188
|
+
margin: var(--r-block-margin) auto;
|
|
189
|
+
text-align: left;
|
|
190
|
+
font-size: 0.55em;
|
|
191
|
+
font-family: var(--r-code-font);
|
|
192
|
+
line-height: 1.2em;
|
|
193
|
+
word-wrap: break-word;
|
|
194
|
+
box-shadow: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.reveal code {
|
|
198
|
+
font-family: var(--r-code-font);
|
|
199
|
+
text-transform: none;
|
|
200
|
+
tab-size: 2;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.reveal pre code {
|
|
204
|
+
display: block;
|
|
205
|
+
padding: 5px;
|
|
206
|
+
overflow: auto;
|
|
207
|
+
max-height: 400px;
|
|
208
|
+
word-wrap: normal;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.reveal .code-wrapper code {
|
|
212
|
+
white-space: pre;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.reveal table {
|
|
216
|
+
margin: auto;
|
|
217
|
+
border-collapse: collapse;
|
|
218
|
+
border-spacing: 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.reveal table th {
|
|
222
|
+
font-weight: bold;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.reveal table th,
|
|
226
|
+
.reveal table td {
|
|
227
|
+
text-align: left;
|
|
228
|
+
padding: 0.2em 0.5em 0.2em 0.5em;
|
|
229
|
+
border-bottom: 1px solid var(--vscode-textSeparator-foreground, rgba(128,128,128,0.35));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.reveal table th[align="center"],
|
|
233
|
+
.reveal table td[align="center"] {
|
|
234
|
+
text-align: center;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.reveal table th[align="right"],
|
|
238
|
+
.reveal table td[align="right"] {
|
|
239
|
+
text-align: right;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.reveal table tbody tr:last-child th,
|
|
243
|
+
.reveal table tbody tr:last-child td {
|
|
244
|
+
border-bottom: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.reveal sup { vertical-align: super; font-size: smaller; }
|
|
248
|
+
.reveal sub { vertical-align: sub; font-size: smaller; }
|
|
249
|
+
.reveal small { display: inline-block; font-size: 0.6em; line-height: 1.2em; vertical-align: top; }
|
|
250
|
+
.reveal small * { vertical-align: top; }
|
|
251
|
+
|
|
252
|
+
.reveal img {
|
|
253
|
+
margin: var(--r-block-margin) 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/*********************************************
|
|
257
|
+
* LINKS
|
|
258
|
+
*********************************************/
|
|
259
|
+
|
|
260
|
+
.reveal a { color: var(--r-link-color); text-decoration: none; transition: color .15s ease; }
|
|
261
|
+
.reveal a:hover { color: var(--r-link-color-hover); text-shadow: none; border: none; text-decoration: underline; }
|
|
262
|
+
|
|
263
|
+
.reveal .roll span:after {
|
|
264
|
+
color: #fff;
|
|
265
|
+
background: var(--r-link-color-dark);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/*********************************************
|
|
269
|
+
* Frame helper
|
|
270
|
+
*********************************************/
|
|
271
|
+
|
|
272
|
+
.reveal .r-frame {
|
|
273
|
+
border: 4px solid var(--r-main-color);
|
|
274
|
+
box-shadow: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.reveal a .r-frame { transition: all .15s linear; }
|
|
278
|
+
.reveal a:hover .r-frame { border-color: var(--r-link-color); box-shadow: none; }
|
|
279
|
+
|
|
280
|
+
/*********************************************
|
|
281
|
+
* NAVIGATION CONTROLS
|
|
282
|
+
*********************************************/
|
|
283
|
+
|
|
284
|
+
.reveal .controls { color: var(--r-link-color); }
|
|
285
|
+
|
|
286
|
+
/*********************************************
|
|
287
|
+
* PROGRESS BAR
|
|
288
|
+
*********************************************/
|
|
289
|
+
|
|
290
|
+
.reveal .progress { background: rgba(128,128,128,0.2); color: var(--r-link-color); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! head.core - v1.0.2 */
|
|
1
|
+
/*! head.core - v1.0.2 */
|
|
2
2
|
(function(n,t){"use strict";function r(n){a[a.length]=n}function k(n){var t=new RegExp(" ?\\b"+n+"\\b");c.className=c.className.replace(t,"")}function p(n,t){for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}function tt(){var t,e,f,o;c.className=c.className.replace(/ (w-|eq-|gt-|gte-|lt-|lte-|portrait|no-portrait|landscape|no-landscape)\d+/g,"");t=n.innerWidth||c.clientWidth;e=n.outerWidth||n.screen.width;u.screen.innerWidth=t;u.screen.outerWidth=e;r("w-"+t);p(i.screens,function(n){t>n?(i.screensCss.gt&&r("gt-"+n),i.screensCss.gte&&r("gte-"+n)):t<n?(i.screensCss.lt&&r("lt-"+n),i.screensCss.lte&&r("lte-"+n)):t===n&&(i.screensCss.lte&&r("lte-"+n),i.screensCss.eq&&r("e-q"+n),i.screensCss.gte&&r("gte-"+n))});f=n.innerHeight||c.clientHeight;o=n.outerHeight||n.screen.height;u.screen.innerHeight=f;u.screen.outerHeight=o;u.feature("portrait",f>t);u.feature("landscape",f<t)}function it(){n.clearTimeout(b);b=n.setTimeout(tt,50)}var y=n.document,rt=n.navigator,ut=n.location,c=y.documentElement,a=[],i={screens:[240,320,480,640,768,800,1024,1280,1440,1680,1920],screensCss:{gt:!0,gte:!1,lt:!0,lte:!1,eq:!1},browsers:[{ie:{min:6,max:11}}],browserCss:{gt:!0,gte:!1,lt:!0,lte:!1,eq:!0},html5:!0,page:"-page",section:"-section",head:"head"},v,u,s,w,o,h,l,d,f,g,nt,e,b;if(n.head_conf)for(v in n.head_conf)n.head_conf[v]!==t&&(i[v]=n.head_conf[v]);u=n[i.head]=function(){u.ready.apply(null,arguments)};u.feature=function(n,t,i){return n?(Object.prototype.toString.call(t)==="[object Function]"&&(t=t.call()),r((t?"":"no-")+n),u[n]=!!t,i||(k("no-"+n),k(n),u.feature()),u):(c.className+=" "+a.join(" "),a=[],u)};u.feature("js",!0);s=rt.userAgent.toLowerCase();w=/mobile|android|kindle|silk|midp|phone|(windows .+arm|touch)/.test(s);u.feature("mobile",w,!0);u.feature("desktop",!w,!0);s=/(chrome|firefox)[ \/]([\w.]+)/.exec(s)||/(iphone|ipad|ipod)(?:.*version)?[ \/]([\w.]+)/.exec(s)||/(android)(?:.*version)?[ \/]([\w.]+)/.exec(s)||/(webkit|opera)(?:.*version)?[ \/]([\w.]+)/.exec(s)||/(msie) ([\w.]+)/.exec(s)||/(trident).+rv:(\w.)+/.exec(s)||[];o=s[1];h=parseFloat(s[2]);switch(o){case"msie":case"trident":o="ie";h=y.documentMode||h;break;case"firefox":o="ff";break;case"ipod":case"ipad":case"iphone":o="ios";break;case"webkit":o="safari"}for(u.browser={name:o,version:h},u.browser[o]=!0,l=0,d=i.browsers.length;l<d;l++)for(f in i.browsers[l])if(o===f)for(r(f),g=i.browsers[l][f].min,nt=i.browsers[l][f].max,e=g;e<=nt;e++)h>e?(i.browserCss.gt&&r("gt-"+f+e),i.browserCss.gte&&r("gte-"+f+e)):h<e?(i.browserCss.lt&&r("lt-"+f+e),i.browserCss.lte&&r("lte-"+f+e)):h===e&&(i.browserCss.lte&&r("lte-"+f+e),i.browserCss.eq&&r("eq-"+f+e),i.browserCss.gte&&r("gte-"+f+e));else r("no-"+f);r(o);r(o+parseInt(h,10));i.html5&&o==="ie"&&h<9&&p("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|section|summary|time|video".split("|"),function(n){y.createElement(n)});p(ut.pathname.split("/"),function(n,u){if(this.length>2&&this[u+1]!==t)u&&r(this.slice(u,u+1).join("-").toLowerCase()+i.section);else{var f=n||"index",e=f.indexOf(".");e>0&&(f=f.substring(0,e));c.id=f.toLowerCase()+i.page;u||r("root"+i.section)}});u.screen={height:n.screen.height,width:n.screen.width};tt();b=0;n.addEventListener?n.addEventListener("resize",it,!1):n.attachEvent("onresize",it)})(window);
|
|
3
3
|
/*! head.css3 - v1.0.0 */
|
|
4
4
|
(function(n,t){"use strict";function a(n){for(var r in n)if(i[n[r]]!==t)return!0;return!1}function r(n){var t=n.charAt(0).toUpperCase()+n.substr(1),i=(n+" "+c.join(t+" ")+t).split(" ");return!!a(i)}var h=n.document,o=h.createElement("i"),i=o.style,s=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),c="Webkit Moz O ms Khtml".split(" "),l=n.head_conf&&n.head_conf.head||"head",u=n[l],f={gradient:function(){var n="background-image:";return i.cssText=(n+s.join("gradient(linear,left top,right bottom,from(#9f9),to(#fff));"+n)+s.join("linear-gradient(left top,#eee,#fff);"+n)).slice(0,-n.length),!!i.backgroundImage},rgba:function(){return i.cssText="background-color:rgba(0,0,0,0.5)",!!i.backgroundColor},opacity:function(){return o.style.opacity===""},textshadow:function(){return i.textShadow===""},multiplebgs:function(){i.cssText="background:url(https://),url(https://),red url(https://)";var n=(i.background||"").match(/url/g);return Object.prototype.toString.call(n)==="[object Array]"&&n.length===3},boxshadow:function(){return r("boxShadow")},borderimage:function(){return r("borderImage")},borderradius:function(){return r("borderRadius")},cssreflections:function(){return r("boxReflect")},csstransforms:function(){return r("transform")},csstransitions:function(){return r("transition")},touch:function(){return"ontouchstart"in n},retina:function(){return n.devicePixelRatio>1},fontface:function(){var t=u.browser.name,n=u.browser.version;switch(t){case"ie":return n>=9;case"chrome":return n>=13;case"ff":return n>=6;case"ios":return n>=5;case"android":return!1;case"webkit":return n>=5.1;case"opera":return n>=10;default:return!1}}};for(var e in f)f[e]&&u.feature(e,f[e].call(),!0);u.feature()})(window);
|