Diferencia entre revisiones de «MediaWiki:Common.js»

De CNB
Ir a la navegación Ir a la búsqueda
Busca en cnbGuatemala con Google

Línea 1: Línea 1:
 
/*ask users to register*/
 
/*ask users to register*/
if (mw.user.isAnon()){
+
if (mw.cookie.get('inicio') && mw.user.isAnon()){
 
alert('Want to learn how to create a username?');
 
alert('Want to learn how to create a username?');
 
}
 
}

Revisión del 21:02 16 oct 2016

/*ask users to register*/
if (mw.cookie.get('inicio') && mw.user.isAnon()){
alert('Want to learn how to create a username?');
}


/*the first tour
mw.guidedTour.setTourCookie('inicio');
*/

/*
var conf = mw.config.get([
    'wgNamespaceNumber',
    'wgTitle',
    'wgPageName'
]);
// Only do the following on the Project:Sandbox page.
if ( conf.wgNamespaceNumber === 0  ) {
    // Add a link to the actions menu to Special:Log for this page.
    mw.loader.using( 'mediawiki.util', function () {
        mw.util.addPortletLink(
            'p-cactions',
            mw.util.getUrl( 'Special:Log', { page : conf.wgPageName } ),
            'Logs'
        );
    } );
}
*/

/* Cualquier código JavaScript escrito aquí se cargará para todos los usuarios en cada carga de página */

/* Activa instrumento para definir coordenadas de imágenes como vínculos bajo ImageMap
/*importScriptURI('//tools.wmflabs.org/imagemapedit/ime.js');*/