Skip to content

Instantly share code, notes, and snippets.

View mainframe98's full-sized avatar

Klaas Skelte van der Werf mainframe98

  • Enatom
  • Fryslân
View GitHub Profile
@mainframe98
mainframe98 / SpecialTest.php
Created September 26, 2018 15:44
A special page showcasing OOUI HTMLFormFieldCloner. Use in conjunction with https://gerrit.wikimedia.org/r/c/mediawiki/core/+/421373
<?php
class SpecialTest extends FormSpecialPage {
public function __construct() {
parent::__construct( 'Test', '', false );
}
protected function getFormFields() : array {
return [
'clone' => [
@mainframe98
mainframe98 / NumberInputWidget.patch
Last active April 11, 2018 15:42
PHP NumberInputWidget for OOUI
diff --git a/demos/demos.php b/demos/demos.php
index ab8ba742..6a232d95 100644
--- a/demos/demos.php
+++ b/demos/demos.php
@@ -157,6 +157,7 @@
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/oojs/dist/oojs.jquery.js"></script>
<script src="dist/oojs-ui-core.js"></script>
+ <script src="dist/oojs-ui-widgets.js"></script>
<script src="dist/oojs-ui-<?php echo $theme; ?>.js"></script>