Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- changed version in tags/1.5.2 to 1.5.2 - merged trunk with 1.6
- Loading branch information
Paul Bakaus
committed
Jul 9, 2008
1 parent
cf48fc7
commit 4e06fa6
Showing
17 changed files
with
2,049 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html> | ||
<head> | ||
|
||
<link rel="stylesheet" href="qunit/testsuite.css" type="text/css" media="screen"> | ||
|
||
<script type="text/javascript" src="../jquery-1.2.6.js"></script> | ||
<script type="text/javascript" src="../ui/ui.core.js"></script> | ||
<script type="text/javascript" src="../ui/ui.autocomplete.js"></script> | ||
|
||
<script type="text/javascript" src="qunit/testrunner.js"></script> | ||
<script type="text/javascript" src="simulate/jquery.simulate.js"></script> | ||
|
||
<script type="text/javascript" src="autocomplete.js"></script> | ||
|
||
</head> | ||
|
||
<body> | ||
<h1>jQuery - Autocomplete Test Suite</h1> | ||
<div id="main" style="display: none"> | ||
|
||
</div> | ||
|
||
<ol id="tests"></ol> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
test("highlighter", function() { | ||
equals( jQuery.Autocompleter.defaults.highlight("Peter", "Pe"), "<strong>Pe</strong>ter" ); | ||
equals( jQuery.Autocompleter.defaults.highlight("Peter <em><Pan></em>", "Pe"), "<strong>Pe</strong>ter <em><Pan></em>" ); | ||
equals( jQuery.Autocompleter.defaults.highlight("Peter <em><Pan></em>", "a"), "Peter <em><P<strong>a</strong>n></em>" ); | ||
equals( jQuery.Autocompleter.defaults.highlight("Peter <em>(<Pan>)</em>", "(<P"), "Peter <em><strong>(<P</strong>an>)</em>" ); | ||
}); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Language" content="en" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Magnifier Demo</title> | ||
|
||
<style type="text/css"> | ||
|
||
body,html { | ||
margin: 0; | ||
padding: 0; | ||
font-family: Arial; | ||
font-size: 12px; | ||
} | ||
|
||
div.playground { | ||
height: 150px; | ||
} | ||
|
||
#example1 img, | ||
#example2 img, | ||
#example3 img, | ||
#example4 img { | ||
float:left; | ||
} | ||
|
||
</style> | ||
<script type="text/javascript" src="../../jquery-1.2.6.js"></script> | ||
<script type="text/javascript" src="../../ui/ui.core.js"></script> | ||
<script type="text/javascript" src="../../ui/ui.magnifier.js"></script> | ||
|
||
|
||
</head> | ||
<body> | ||
|
||
<h2>1. Default, no options</h2> | ||
<div class="playground"> | ||
<div id='example1' class="ui-wrapper example" style="width: 580px; padding: 20px;"> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
</div> | ||
</div> | ||
|
||
<h2>2. Magnification set to 1.5 (default: 2)</h2> | ||
<div class="playground"> | ||
<div id='example2' class="ui-wrapper example" style="width: 580px; padding: 20px;"> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
</div> | ||
</div> | ||
|
||
<h2>3. Advanced example: overlap: true, zIndex: 10, opacity: { min: 0.6, max: 1 }, baseline: -1</h2> | ||
<div class="playground"> | ||
<div id='example3' class="ui-wrapper example" style="width: 580px; padding: 20px;"> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
</div> | ||
</div> | ||
|
||
<h2>4. Advanced example: The direction doesn't have to be horizontal!</h2> | ||
<div class="playground"> | ||
<div id='example4' class="ui-wrapper example" style="width: 150px; padding: 20px; height: 150px;"> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
<img src="../images/clock.png" width="48" alt="" /> | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
if(!window.console) { | ||
window.console = { | ||
log: function() { | ||
alert(arguments[0]); | ||
} | ||
} | ||
} | ||
|
||
$(window).bind("load",function(){ | ||
|
||
$('#example1').magnifier(); | ||
$('#example2').magnifier({ magnification: 1.5 }); | ||
$('#example3').magnifier({ magnification: 1.5, overlap: true, zIndex: 10, opacity: { min: 0.6, max: 1 }, baseline: -1 }); | ||
$('#example4').magnifier({ magnification: 1.5, overlap: true, zIndex: 10, opacity: { min: 0.6, max: 1 }, distance: 30 }); | ||
|
||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.