Welcome to Assassin's Creed Wiki! Log in and join the community.

User:Vatsa1708/wikia.js: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Vatsa1708
m ...
imported>Vatsa1708
m It looks good enough..
Line 14: Line 14:
return '';
return '';
}
}
/**profile edit button**/
$(function() {
  $('.masthead-info hgroup h2').insertAfter('.masthead-info hgroup h1').css({display: 'inline',paddingLeft: '10px'});
  $('.UserProfileActionButton').prependTo('.masthead-info hgroup').css({float: 'right', padding: '0'});
});

Revision as of 17:24, 21 August 2011

/** remove admin link on toolbar **/
$().ready( function() {
 $('li > a[data-tracking="admindashboard/toolbar/admin"]').remove();
} );

function urlQuery(quer) {
	for(i in location.href.split('?')) {
		for(j in location.href.split('?')[i].split('&')) {
			if(location.href.split('?')[i].split('&')[j].split('=')[0] == quer) {
				return location.href.split('?')[i].split('&')[j].split('=')[1];
			}
		}
	}
	return '';
}