File: test.js

package info (click to toggle)
libjs-jquery-scrollto 2.1.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 144 kB
  • sloc: javascript: 164; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$.fn.test = function(){
	// Hide title on iframes
	if (window.self !== window.top) {
		$('h1').hide();
	}

	if (location.search === '?notest') {
		return this;
	}

	$.scrollTo.defaults.axis = 'xy';
	
	var root = this.is('iframe') ? this.contents() : $('body');
	root.find('#ua').html(
		navigator.userAgent +
		'<br />' +
		'document.compatMode is "' + document.compatMode + '"'
	);

	return this.scrollTo('max', 1000).scrollTo(0, 1000);
};