-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
268 changed files
with
1,146 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+1015 Bytes
demo/image/worldFlag/South-Georgia-and-the-South-Sandwich-Islands.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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,197 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | ||
<title>Demo For AutoComplete.js</title> | ||
<script type="text/javascript" src="../lib/jquery-1.7.1.min.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../src/jquery.autocomplete.css"></link> | ||
<script type="text/javascript" src="../src/jquery.autocomplete.js"></script> | ||
<script src="../test/test.js"></script> | ||
<style type="text/css"> | ||
body { | ||
margin: 0px; | ||
background: #f4f4f4; | ||
font-family: Helvetica Neue, Helvetica, Arial; | ||
} | ||
</style> | ||
<script type="text/javascript"> | ||
$(document).ready(function(){ | ||
$('#down').AutoComplete({ | ||
'data': ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve'], | ||
'itemHeight': 20, | ||
'width': 280 | ||
}).AutoComplete('show'); | ||
|
||
$('#up').AutoComplete({ | ||
'data': ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve'], | ||
'itemHeight': 20, | ||
'listDirection': 'up', | ||
'width': 280 | ||
}).AutoComplete('show'); | ||
|
||
alltest.testIconList('#iconlist'); | ||
$('#iconlist').AutoComplete('show'); | ||
|
||
var teams = [{ | ||
'label': '江苏舜天队', | ||
'value': '江苏舜天队', | ||
'win': 14, | ||
'tie': 9, | ||
'lose': 3, | ||
'score': 51 | ||
},{ | ||
'label': '广州恒大队', | ||
'value': '广州恒大队', | ||
'win': 15, | ||
'tie': 6, | ||
'lose': 5, | ||
'score': 51 | ||
},{ | ||
'label': '广州富力队', | ||
'value': '广州富力队', | ||
'win': 13, | ||
'tie': 2, | ||
'lose': 11, | ||
'score': 41 | ||
},{ | ||
'label': '北京国安队', | ||
'value': '北京国安队', | ||
'win': 12, | ||
'tie': 5, | ||
'lose': 9, | ||
'score': 41 | ||
},{ | ||
'label': '贵州人和队', | ||
'value': '贵州人和队', | ||
'win': 10, | ||
'tie': 7, | ||
'lose': 9, | ||
'score': 37 | ||
},{ | ||
'label': '天津泰达队', | ||
'value': '天津泰达队', | ||
'win': 9, | ||
'tie': 8, | ||
'lose': 9, | ||
'score': 35 | ||
},{ | ||
'label': '长春亚泰队', | ||
'value': '长春亚泰队', | ||
'win': 9, | ||
'tie': 8, | ||
'lose': 9, | ||
'score': 35 | ||
},{ | ||
'label': '上海申花队', | ||
'value': '上海申花队', | ||
'win': 7, | ||
'tie': 13, | ||
'lose': 6, | ||
'score': 34 | ||
},{ | ||
'label': '大连阿尔滨队', | ||
'value': '大连阿尔滨队', | ||
'win': 8, | ||
'tie': 10, | ||
'lose': 8, | ||
'score': 34 | ||
},{ | ||
'label': '山东鲁能队', | ||
'value': '山东鲁能队', | ||
'win': 7, | ||
'tie': 10, | ||
'lose': 9, | ||
'score': 31 | ||
},{ | ||
'label': '大连实德队', | ||
'value': '大连实德队', | ||
'win': 7, | ||
'tie': 10, | ||
'lose': 9, | ||
'score': 31 | ||
},{ | ||
'label': '青岛中能队', | ||
'value': '青岛中能队', | ||
'win': 8, | ||
'tie': 6, | ||
'lose': 12, | ||
'score': 30 | ||
},{ | ||
'label': '辽宁宏运队', | ||
'value': '辽宁宏运队', | ||
'win': 6, | ||
'tie': 11, | ||
'lose': 9, | ||
'score': 29 | ||
},{ | ||
'label': '杭州绿城队', | ||
'value': '杭州绿城队', | ||
'win': 7, | ||
'tie': 8, | ||
'lose': 11, | ||
'score': 29 | ||
},{ | ||
'label': '上海申鑫队', | ||
'value': '上海申鑫队', | ||
'win': 5, | ||
'tie': 11, | ||
'lose': 10, | ||
'score': 26 | ||
},{ | ||
'label': '河南建业队', | ||
'value': '河南建业队', | ||
'win': 7, | ||
'tie': 4, | ||
'lose': 15, | ||
'score': 25 | ||
}]; | ||
|
||
$.each(teams, function(index, data){ | ||
new Image().src = '../demo/image/2012中超/' + data['value'] + '.jpg'; // 预加载图片 | ||
data['image'] = '../demo/image/2012中超/' + data['value'] + '.jpg'; | ||
}); | ||
|
||
$('#custom').AutoComplete({ | ||
'data': teams, | ||
'width':280, | ||
'listStyle': 'custom', | ||
'maxHeight': 480, | ||
'createItemHandler': function(index, data){ | ||
var div = $("<div></div>") | ||
var cell1 = $("<div style='display:table-cell;vertical-align:top;'></div>").appendTo(div); | ||
var cell1_1 = $("<img style='width:32px;height:32px;'></img>").attr('src', data.image).appendTo(cell1); | ||
var cell2 = $("<div style='display:table-cell;vertical-align:top;'></div>").appendTo(div); | ||
var cell2_1 = $("<div></div>").append(data.label).appendTo(cell2); | ||
var cell2_2 = $("<div style='vertical-align:top;'></div>") | ||
.append("<div style='display:table-cell;width:40px;'>胜:"+data.win+"</span>") | ||
.append("<div style='display:table-cell;width:40px;'>平:"+data.tie+"</span>") | ||
.append("<div style='display:table-cell;width:40px;'>负:"+data.lose+"</span>") | ||
.append("<div style='display:table-cell;width:40px;'>积:"+data.score+"</span>") | ||
.appendTo(cell2); | ||
return div; | ||
} | ||
}).AutoComplete('show'); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div style="background-color:black;height:40px;margin-bottom:10px;"> | ||
<div style="width:1000px;margin:auto;height:100%;color:white;"><span style="font-size:20px;line-height:40px;">jQuery.AutoComplete</span><a href="../doc/index.html" style="float:right;line-height:40px;color:white;font-size:12px;">API文档</a></div> | ||
</div> | ||
<div style="width:1000px;margin:auto;"> | ||
<div style="display:table-cell;"> | ||
<div style="height:503px;width:330px;"> | ||
<input type="text" id="down" value="e"></input><span style="font-weight:bold;">补全列表在下方</span> | ||
</div> | ||
<div> | ||
<input type="text" id="up" value="e"></input>补全列表在上方 | ||
</div> | ||
</div> | ||
<div style="display:table-cell;width:330px;"> | ||
<input type="text" id="iconlist" value="c"></input>图标文本样式 | ||
</div> | ||
<div style="display:table-cell;width:330px;"> | ||
<input type="text" id="custom" value="队"></input>自定义样式 | ||
</div> | ||
</div> | ||
</body> |
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,164 @@ | ||
body { | ||
font-size: 14px; | ||
line-height: 22px; | ||
background: #f4f4f4; | ||
color: #000; | ||
font-family: Helvetica Neue, Helvetica, Arial; | ||
} | ||
|
||
.interface { | ||
font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif !important; | ||
} | ||
|
||
div#sidebar { | ||
background: #fff; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
width: 200px; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
-webkit-overflow-scrolling: touch; | ||
padding: 15px 0 30px 30px; | ||
border-right: 1px solid #bbb; | ||
box-shadow: 0 0 20px #ccc; | ||
-webkit-box-shadow: 0 0 20px #ccc; | ||
-moz-box-shadow: 0 0 20px #ccc; | ||
} | ||
|
||
a.toc_title, a.toc_title:visited { | ||
display: block; | ||
color: black; | ||
font-weight: bold; | ||
margin-top: 15px; | ||
} | ||
|
||
a.toc_title:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
#sidebar .version { | ||
font-size: 10px; | ||
font-weight: normal; | ||
} | ||
|
||
ul.toc_section { | ||
font-size: 11px; | ||
line-height: 14px; | ||
margin: 5px 0 0 0; | ||
padding-left: 0px; | ||
list-style-type: none; | ||
font-family: Lucida Grande; | ||
} | ||
|
||
.toc_section li { | ||
cursor: pointer; | ||
margin: 0 0 3px 0; | ||
} | ||
|
||
.toc_section li a { | ||
text-decoration: none; | ||
color: black; | ||
} | ||
|
||
.toc_section li a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
div.container { | ||
width: 650px; | ||
margin: 40px 0 50px 260px; | ||
} | ||
|
||
img#logo { | ||
width: 396px; | ||
height: 69px; | ||
} | ||
|
||
div.warning { | ||
margin-top: 15px; | ||
font: bold 11px Arial; | ||
color: #770000; | ||
} | ||
|
||
p { | ||
margin: 20px 0; | ||
width: 650px; | ||
} | ||
|
||
a, a:visited { | ||
color: #444; | ||
} | ||
|
||
a:active, a:hover { | ||
color: #000; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
padding-top: 20px; | ||
} | ||
|
||
h2 { | ||
font-size: 20px; | ||
} | ||
|
||
b.header { | ||
font-size: 16px; | ||
line-height: 30px; | ||
} | ||
|
||
span.alias { | ||
font-size: 14px; | ||
font-style: italic; | ||
margin-left: 20px; | ||
} | ||
|
||
span.title { | ||
margin-left: 30px; | ||
} | ||
|
||
span.default { | ||
|
||
} | ||
|
||
table, tr, td { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
td { | ||
padding: 2px 12px 2px 0; | ||
} | ||
|
||
table .rule { | ||
height: 1px; | ||
background: #ccc; | ||
margin: 5px 0; | ||
} | ||
|
||
code, pre, tt { | ||
font-family: Monaco, Consolas, "Lucida Console", monospace; | ||
font-size: 12px; | ||
line-height: 18px; | ||
font-style: normal; | ||
} | ||
|
||
tt { | ||
padding: 0px 3px; | ||
background: #fff; | ||
border: 1px solid #ddd; | ||
zoom: 1; | ||
margin-right: 7px; | ||
} | ||
|
||
code { | ||
margin-left: 20px; | ||
} | ||
|
||
pre { | ||
font-size: 12px; | ||
padding: 2px 0 2px 15px; | ||
border-left: 5px solid #bbb; | ||
margin: 0px 0 30px; | ||
} |
Oops, something went wrong.