summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/demos/index.html
blob: 13f8d48e871a7dea09cbf1ef50649306a33f0163 (plain)
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
	<meta charset="UTF-8">
	<title>OOjs UI Demos</title>
	<!-- Prevent scaling on mobile devices which cause problems with dialog sizing -->
	<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body>
	<script src="node_modules/jquery/dist/jquery.js"></script>
	<script src="node_modules/es5-shim/es5-shim.js"></script>
	<script src="node_modules/oojs/dist/oojs.jquery.js"></script>
	<script src="dist/oojs-ui.js"></script>
	<script src="dist/oojs-ui-apex.js"></script>
	<script src="dist/oojs-ui-mediawiki.js"></script>
	<script src="demo.js"></script>
	<script src="pages/dialogs.js"></script>
	<script src="pages/icons.js"></script>
	<script src="pages/widgets.js"></script>
	<script src="pages/toolbars.js"></script>
	<script>
		$( function () {
			var demo;

			function setup() {
				if ( demo ) {
					demo.destroy();
				}
				demo = new OO.ui.Demo();
				$( 'body' ).append( demo.$element );
				demo.initialize();
			}

			setup();

			$( window ).on( 'hashchange', setup );
		} )
	</script>
</body>
</html>