forked from wikimedia/oojs-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsduck.eg-iframe.html
43 lines (43 loc) · 1.23 KB
/
jsduck.eg-iframe.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>OOUI example</title>
<!-- Prevent scaling on mobile devices which cause problems with dialog sizing -->
<meta name="viewport" content="width=device-width, user-scalable=no">
<style>
body {
font-family: sans-serif;
font-size: 0.875em;
/* Support IE 9-11, Trident cuts values 2 digits after decimal point.
`calc` enables to set correct calculation in place again. See T102364. */
font-size: calc( 1em * 0.875 );
}
</style>
<link rel="stylesheet" href="dist/oojs-ui-wikimediaui.css">
</head>
<body>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/oojs/dist/oojs.js"></script>
<script src="dist/oojs-ui.js"></script>
<script src="dist/oojs-ui-wikimediaui.js"></script>
<script>
/* eslint-env browser */
// eslint-disable-next-line no-implicit-globals, no-unused-vars
function loadInlineExample( code, options, callback ) {
try {
// eslint-disable-next-line no-eval
eval( code );
if ( callback ) {
callback( true );
}
} catch ( e ) {
document.body.appendChild( document.createTextNode( e ) );
if ( callback ) {
callback( false, e );
}
}
}
</script>
</body>
</html>