summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/demos/index.html
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-06-04 07:31:04 +0200
committerPierre Schmitz <pierre@archlinux.de>2015-06-04 07:58:39 +0200
commitf6d65e533c62f6deb21342d4901ece24497b433e (patch)
treef28adf0362d14bcd448f7b65a7aaf38650f923aa /vendor/oojs/oojs-ui/demos/index.html
parentc27b2e832fe25651ef2410fae85b41072aae7519 (diff)
Update to MediaWiki 1.25.1
Diffstat (limited to 'vendor/oojs/oojs-ui/demos/index.html')
-rw-r--r--vendor/oojs/oojs-ui/demos/index.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/oojs/oojs-ui/demos/index.html b/vendor/oojs/oojs-ui/demos/index.html
new file mode 100644
index 00000000..35ccc69a
--- /dev/null
+++ b/vendor/oojs/oojs-ui/demos/index.html
@@ -0,0 +1,39 @@
+<!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/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>