diff options
Diffstat (limited to 'vendor/oojs/oojs-ui/demos/index.html')
-rw-r--r-- | vendor/oojs/oojs-ui/demos/index.html | 39 |
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> |