MediaWiki

Vani suggest.js: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/*document.write('<script type="text/javascript" src="'
+ 'http://vanipedia.org/w/index.php?title=MediaWiki:Vani_suggest.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');
*/
document.write('<script type="text/javascript" src="'
document.write('<script type="text/javascript" src="'
  + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.bgiframe.min.js"></' + 'script>');
  + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.bgiframe.min.js"></' + 'script>');
Line 10: Line 5:
document.write('<script type="text/javascript" src="'
document.write('<script type="text/javascript" src="'
  + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.autocomplete.js"></' + 'script>');
  + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.autocomplete.js"></' + 'script>');
document.write('<script type="text/javascript" src="'
document.write('<script type="text/javascript" src="'
  + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.ajaxQueue.js"></' + 'script>');
  + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.ajaxQueue.js"></' + 'script>');

Revision as of 12:43, 8 April 2008

document.write('<script type="text/javascript" src="'
 + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.bgiframe.min.js"></' + 'script>');
document.write('<script type="text/javascript" src="'
 + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.dimensions.js"></' + 'script>');
document.write('<script type="text/javascript" src="'
 + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.autocomplete.js"></' + 'script>');
document.write('<script type="text/javascript" src="'
 + 'http://vanipedia.org/w/index.php?title=MediaWiki:jquery.ajaxQueue.js"></' + 'script>');
document.write('<link rel="stylesheet" type="text/css" href="http://vanipedia.org/w/index.php?title=MediaWiki:jquery.autocomplete.css" />');

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