-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathindex.html
43 lines (41 loc) · 1.48 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery Mousewheel Unit Test</title>
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">
<script src="../node_modules/qunit/qunit/qunit.js"></script>
<script>
var scriptUrl,
verMatch = /\bjquery=(\d\.\d\.\d(?:\.slim)?(?:\.min)?)/,
jqver = ( window.location.search.match( verMatch ) || [ "", "git" ] )[ 1 ];
if ( jqver === "git" || jqver === "3.x-git" ) {
scriptUrl = "https://releases.jquery.com/git/jquery-" + jqver + ".js";
} else {
scriptUrl = "https://code.jquery.com/jquery-" + jqver + ".js";
}
document.write( "<script src=\"" + scriptUrl + "\"><" + "/script>" );
</script>
<script src="../src/jquery.mousewheel.js"></script>
<script src="unit.js"></script>
<script>
jQuery( function( $ ) {
$( ".jqversion" ).text( jqver );
} );
</script>
<style>
body { font-family: Arial, Helvetica, sans-serif }
h2.testnote { color: red }
</style>
</head>
<body>
<h1>Using jQuery <span class="jqversion">(unknown)</span></h1>
<p>Add <code>?jquery=1.8.3</code> or <code>?jquery=3.7.1.min</code> to specify a jQuery version from <code>code.jquery.com</code>.</p>
<h2 class="testnote">
In addition to unit tests, run the
<a href="manual.html">manual test</a> and <a href="scroll.html">scrolling test</a>
in all supported browsers.
</h2>
<div id="qunit"></div>
</body>
</html>