Draft
From CODECS Dev
Leftovers from older sites.
Images
- Creating a zoomable and annotatable image map using Leaflet and IIIF
- Image mosaic grid
- Creating a zoomable image using Leaflet and IIIF
- Cropperjs tests
Forms
- contenteditable text inputs
- Remove newlines (contenteditable experiment)
- Radiobuttons
- Autogrow trick
- WSForm test/T5851 "Add class to form after it has been submitted"
- Dynamically add input elements to a form
- Textarea menu on focus (css only)
- Using BootstrapMultiselect.js (not working)
Other
- Using wiki pages with the XSL extension for XML/XSLT
- Extracting Text from Content Using HTML Slot, HTML Template and Shadow DOM
- LazyWiki using InterSectionObserver
- CharInsert JS (not working but kept for its collection of character entities)
- Read more/less with BS collapsible
- Read more/less test with overflow (not working)
- Pure CSS approach to nav tabs - see also Widget:Nav tabs alternative
- Bootstrap Collapsible/Accordeon without unique identifiers?
Legacy Common.js
Frameworks
- BS 5
- mdbootstrap (BS4)
- mdbootstrap (BS5) [1] [2]
- Semantic UI React
- Google's Material Design
- Bold, e.g. calendar
- Materialize
- BS plugins / More plugins / survey js total js
CodeMirror extension
function setupCodeMirrorXML() { $.getScript("/dev/extensions/CodeMirror/resources/lib/codemirror/mode/javascript/javascript.js"), $.getScript("/dev/extensions/CodeMirror/resources/lib/codemirror/mode/xml/xml.js").done(function() { var codeMirror = $(".CodeMirrorXML")[0]; var editor = CodeMirror.fromTextArea(codeMirror, { lineNumbers: true, mode: "xml", autoCloseTags: true, lineWrapping:true }); }); }
Settings and extensions
$wgCrossSiteAJAXdomains = [ 'gallica.bnf.fr', 'evil-manifests.davidnewbury.com' ]; // $egChameleonLayoutFile = "$IP/custom/layout-dev.xml"; // wfLoadExtension( 'CodeMirror' ); $wgDefaultUserOptions['usecodemirror'] = 1; wfLoadExtension( 'ExternalData' ); $edgExternalValueVerbose = false; wfLoadExtension( 'Gadgets' ); $wgGroupPermissions['sysop']['gadgets-edit'] = true; $wgGroupPermissions['sysop']['gadgets-definition-edit'] = true; wfLoadExtension( 'TinyMCE' ); $wgTinyMCEPreservedTags = array( 'em', 'i', 'ol', 'ul', 'li', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'table', 'td', 'tr', 'div' ); wfLoadExtension( 'WikiEditor' ); $wgDefaultUserOptions['usebetatoolbar'] = 1; wfLoadExtension( 'XSL' ); ## Plain define("DEV_NS_PLAIN", 3054); $wgExtraNamespaces[DEV_NS_PLAIN] = "Plain"; $wgCapitalLinkOverrides[DEV_NS_PLAIN] = false; $wgNamespacesWithSubpages[DEV_NS_PLAIN] = true; $wgNamespaceContentModels[DEV_NS_PLAIN] = CONTENT_MODEL_TEXT;