1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Res: Add resources from xowa_app_windows_64_v4.5.26.1810

This commit is contained in:
gnosygnu
2018-11-02 09:58:55 -04:00
parent a672fd8340
commit 5721913241
6057 changed files with 1156950 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
( function ( $, mw ) {
// mw.hook( 'wikipage.content' ).add( function ( $content ) {
var specs = {} // mw.config.get( 'wgGraphSpecs' );
vg.data.load.sanitizeUrl = function () {
// mw.log.warn( 'Vega 1.x does not allow external URLs. Switch to Vega 2.' );
return false;
};
if ( specs ) {
var $content = $('#content'); // XOWA
$content.find( '.mw-graph.mw-graph-always' ).each( function () {
var graphId = $( this ).data( 'graph-id' ),
el = this;
if ( !specs[ graphId ] ) {
// mw.log.warn( graphId );
} else {
vg.parse.spec( specs[ graphId ], function ( chart ) {
if ( chart ) {
chart( { el: el } ).update();
}
} );
}
} );
}
// } );
}( jQuery, null ) );