Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes. edit

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to remove ads, build a reputation, and unlock more editing privileges and then visit DDO wiki's IRC Chat/Discord if you need any help!

MediaWiki:Template-MyContent.js

From DDO wiki
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes, you can click here or try one of the methods below..

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl+F5 or Ctrl+r ( Command+r on a Mac)
  • Google Chrome: Press Ctrl+ Shift+R ( Command+ Shift+R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl+F5
  • Konqueror: Click Reload or press F5
  • Opera: Clear the cache in Tools ‣ Preferences
if ( $( 'span#QuestList' ).length === 0 ) {
	console.error( 'No quest lists found on page.' );
	alert( 'No quest lists found on page.' );
} else if ( $( 'span#QuestList' ).length === 1 ){
	function checkAll() {
		$( 'input.adpackCheck' ).prop( 'checked', true );
	}
	function invertAll() {
		$( 'input.adpackCheck' ).prop( 'checked', function ( i, val ) {
			return val === true ? false : true;
		});
	}
	function uncheckAll() {
		$( 'input.adpackCheck' ).prop( 'checked', false );
	}

	$( 'span#VIP-date' ).after( '<input type="date" placeholder="' + $( 'span#VIP-date' ).html() + '"></input>&nbsp;<input type="button" value="Reset"></input>&nbsp;<input type="button" value="Test"></input>' );
	$( 'span#VIP-date' ).remove();
	$( 'td#VIP-date_cell' ).attr( 'colspan', '2' );
	$( 'td#toggle_buttons' ).attr( 'colspan', '2' ).html( '<input type="button" id="checkAll_button" value="Check All" onClick="checkAll();"></input>&nbsp;<input type="button" id="invertAll_button" value="Invert" onClick="invertAll();"></input>&nbsp;<input type="button" id="uncheckAll_button" value="Uncheck All" onClick="uncheckAll();">' ).css( 'display', 'table-cell' );
	$( 'td.adpack' ).each(function() {
		$(this).html( '<input type="checkbox" id="' + $(this).attr( 'id' ) + '" class="adpackCheck">&nbsp;' + $(this).html() );
	} );
} else if ( $( 'td#QuestList' ).length > 1 ) {
	console.error( 'You may only have one quest list on a page.' );
	$( 'span#QuestList' ).replace( '<span style="background-color: #FFEEEE; color: #220000; font-weight: bold;">ERROR:&nbsp;</span>You may only have one quest list on a page.' );
}