User:Chaosbringer1987/common.js

var result =''; var htmlContent ='       '; $('.fandom-community-header .fandom-community-header__image img ').css({'margin-left':'45%','top': '60px','position': 'relative'}); $('.fandom-sticky-header').css('top', '0 ').css('-webkit-transform','none'); $('.fandom-sticky-header .wiki-tools.wds-button-group').css('margin-right','56px'); $('.community-header-wrapper header.fandom-community-header').css('display','block'); $('.fandom-sticky-header .wiki-tools').html(htmlContent); $('.fandom-community-header__top-container .wiki-tools').remove; $('.fandom-community-header__top-container .fandom-community-header__community-name-wrapper').remove; $('.fandom-community-header .fandom-community-header__local-navigation').remove; $('.fandom-community-header__background').after(' '); $('#thirSearchResults').hide; $('.unified-search__input__query').keyup(function {	if ($(this).val!==""){		var query = "https://exvius.fandom.com/wikia.php?controller=UnifiedSearchSuggestionsController&method=getSuggestions&query="+$(this).val+"&format=json";		$.ajax({ url: query, success: function (result){ var innerHtml = ""; for (item in result['suggestions']) { innerHtml += innerHtml += ' '+result['suggestions'][item]+' '; //console.log(item); }				$('#thirSearchResults').html(innerHtml); }		});	$('#thirSearchResults').fadeIn('fast');	} else{	$('#thirSearchResults').fadeOut('slow');	} });