MediaWiki

MediaWiki:Vani suggest.js

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
document.write('<script type="text/javascript" src="'
  + '/jquery/jquery-autocomplete/lib/jquery.bgiframe.min.js"></' + 'script>');
document.write('<script type="text/javascript" src="'
+ '/jquery/jquery-autocomplete/lib/jquery.dimensions.js"></' + 'script>');
document.write('<script type="text/javascript" src="'
  + '/jquery/jquery-autocomplete/jquery.autocomplete2.js"></' + 'script>');


document.write('<script type="text/javascript" src="'
+ '/jquery/jquery-autocomplete/lib/jquery.ajaxQueue.js"></' + 'script>');
document.write('<script type="text/javascript" src="'
+ '/jquery/jquery-autocomplete/lib/thickbox-compressed.js"></' + 'script>');

document.write('<link rel="stylesheet" type="text/css" href="/jquery/jquery-autocomplete/jquery.autocomplete.css" />');
document.write('<link rel="stylesheet" type="text/css" href="/jquery/jquery-autocomplete/lib/thickbox.css" />');

$('document').ready(function () {
	$("input#q").autocomplete("/dictionary.php", {
      scroll: true,
      autofill: false,
      selectFirst: false,
      chacheLength: 45,
      maxItemsToShow: 10,
      max: 20,
      minChars: 2,
    });
});