MediaWiki:Vector.js: Difference between revisions

From Fantasipedia
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for users using the Vector skin */
/* Any JavaScript here will be loaded for users using the Vector skin */


var userlinks_data = {
var userlinks = [];
username: "",
userpage: "",
links: []
};

userlinks_data.username = $("#pt-userpage a").text();
userlinks_data.userpage = $("#pt-userpage a").attr("href");


$("#p-personal li").each(function() {
$("#p-personal li").each(function() {
userlinks_data.links.push({text: $("a", this).text(), link: $("a", this).attr("href")});
userlinks.push({text: $("a", this).text(), link: $("a", this).attr("href")});
});
});



Revision as of 21:03, 26 December 2019

/* Any JavaScript here will be loaded for users using the Vector skin */

var userlinks = [];

$("#p-personal li").each(function() {
	userlinks.push({text: $("a", this).text(), link: $("a", this).attr("href")});
});

$("#mw-page-base").before("<div id='stripe'> <div id='scf-stripe-logo'><a href='http://forum.songcontests.eu/'><img src='https://i.imgur.com/9vQQq6v.png'></a></div> <ul id='scf-navigation'> <li> <a href='http://forum.songcontests.eu/' title='Forum'>Forum</a> </li> <li> <a class='active' href='http://wiki.songcontests.eu/' title='Wikis'>Wikis</a> </li> </ul> </div><div id='local-stripe'> <ul id='local-navigation'> <li> <a href='/wiki/Main_Page'>Main page</a> </li> <li> <a href='/wiki/Special:RecentChanges'>Recent changes</a> </li> <li> <a href='/wiki/Fantasia_Contest'>Fantasia Contest</a> </li> </ul> </div><div id='scf-header'> <div id='snow'></div> <div id='scf-logo'><a id='logo' href='/'><img src='https://i.imgur.com/AyXenJz.png' alt='The Song Contest Forums' title='The Song Contest Forums'></a></div> </div>");