Open main menu
Home
Random
Log in
Settings
About wiki
Terms and conditions of use
wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 21:27, 18 April 2018
87 bytes removed
,
21:27, 18 April 2018
no edit summary
Line 7:
Line 7:
var lang = getCookie('lang');
var lang = getCookie('lang');
−
var apiURL = 'https://wiki.gccollab.ca/api.php';
$.ajax({
$.ajax({
Line 22:
Line 21:
dataType: 'json'
dataType: 'json'
}).done(function (data){
}).done(function (data){
−
console.log(data.query.userinfo);
var userid = data.query.userinfo.id;
var userid = data.query.userinfo.id;
var currentLang = data.query.userinfo.options.language;
var currentLang = data.query.userinfo.options.language;
Mark.wooff
Bureaucrats
,
Administrators
55
edits