MediaWiki:Common.js/addin-mooc-config.js

Da Wikiversità, l'apprendimento libero.

Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.

  • Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Internet Explorer / Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5
  • Opera: premi Ctrl-F5.
/**
 * This JS file is part of the MOOC Addin (https://en.wikiversity.org/wiki/Mooc-Module).
 * 
 * @author Sebastian Schlicht (https://en.wikiversity.org/wiki/User:Sebschlicht)
 * @author René Pickhardt (http://www.rene-pickhardt.de/)
 * 
 * This JS code holds configuration parameters for the MOOC interface addin.
 * When ported to another MediaWiki instance this code can be changed if necessary for the addin to work correctly.
 */
/* necessary to avoid interpretation of special character sequences such as signations */
// <nowiki>
 
AddinMooc_CONFIG.set('LOG_LEVEL', 0);// -1: off, 0: debug, 1: production
AddinMooc_CONFIG.set('MW_ROOT_URL', 'https://it.wikiversity.org/w/index.php');
AddinMooc_CONFIG.set('MW_API_URL', 'https://it.wikiversity.org/w/api.php');
AddinMooc_CONFIG.set('MW_NAMESPACE_TALK', 'Talk');
AddinMooc_CONFIG.set('MW_NAMESPACE_USER', 'User');
AddinMooc_CONFIG.set('MW_PAGE_CONTRIBUTIONS', 'Special:Contributions');
AddinMooc_CONFIG.set('UI_THREAD_COLLAPSED_NUMCHARACTERS', 100);
AddinMooc_CONFIG.set('UI_SECTION_COLLAPSED_HEIGHT', 40);
AddinMooc_CONFIG.set('USER_AGENT_EMAIL', 'sebschlicht@uni-koblenz.de');
AddinMooc_CONFIG.set('USER_AGENT_NAME', 'MOOC-JS');
AddinMooc_CONFIG.set('USER_AGENT_URL', 'https://en.wikiversity.org/wiki/User:Sebschlicht');
 
AddinMooc_CONFIG.LOADED += 1;
 
// </nowiki>