Page MenuHomeWickedGov Phorge

jsonSchema.js
No OneTemporary

Size
591 B
Referenced Files
None
Subscribers
None

jsonSchema.js

/*!
* JavaScript enhancements of JSON Schema article pages.
*
* @module ext.eventLogging.jsonSchema
* @author Ori Livneh <ori@wikimedia.org>
*/
/* eslint-disable no-jquery/no-global-selector */
$( function () {
'use strict';
// Make the '<>' icon toggle code samples:
const $samples = $( '.mw-json-schema-code-samples' );
$( '.mw-json-schema-code-glyph' ).on( 'click', function ( e ) {
$samples.toggle();
e.stopPropagation();
} );
$( document ).on( 'click', function () {
$samples.hide();
} );
$samples.on( 'click', function ( e ) {
e.stopPropagation();
} );
} );

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 19, 07:40 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2a/ca/01cc48efcc5bfe3e4ffffb5e93bd
Default Alt Text
jsonSchema.js (591 B)

Event Timeline