Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/jquery.scrollto/tests/test.js')
-rw-r--r--node_modules/jquery.scrollto/tests/test.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/jquery.scrollto/tests/test.js b/node_modules/jquery.scrollto/tests/test.js
new file mode 100644
index 0000000000..8c3c081c02
--- /dev/null
+++ b/node_modules/jquery.scrollto/tests/test.js
@@ -0,0 +1,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);
+};