-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsodb.html
More file actions
executable file
·132 lines (116 loc) · 4.13 KB
/
sodb.html
File metadata and controls
executable file
·132 lines (116 loc) · 4.13 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8" />
<title>Snippet Search</title>
</head>
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<style>
.ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; }
.ui-autocomplete {
max-height: 300px;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
}
/* IE 6 doesn't support max-height
* we use height instead, but this forces the menu to always be this tall
*/
* html .ui-autocomplete {
height: 100px;
}
</style>
<script>
$(function() {
var cache1 = {};
var cache2 = {};
//alert($("input[name='type']:checked").val());
$( "#autoname" ).autocomplete({
minLength: 2,
source: function( request, response ) {
var term = request.term;
if($("input[name='type']:checked").val()=="apimethod")
{
if ( term in cache1 ) {
response( cache1[ term ] );
return;
}
$.getJSON( "getautofillcontentmethod.php", request, function( data, status, xhr ) {
cache1[ term ] = data;
response( data );
});
}
else{
if ( term in cache2 ) {
response( cache2[ term ] );
return;
}
$.getJSON( "getautofillcontenttype.php", request, function( data, status, xhr ) {
cache2[ term ] = data;
response( data );
});
}
}
});
});
$(function() {
$(".getapi").click(function() {
$("#dvloader").show();
return false;
});
});
</script>
<body>
<div class="style3"></div><div class="style_2"><span class="style3"><a href="" title="JavaBaker - Live API Documentation"><strong>JavaBaker - Live API Documentation</strong></a></span></div>
<div id="wrap">
<div id="topbar">
<h1 id="sitename"><a href="index.html">JavaBaker - Live API Documentation</a></h1>
<div id="menus">
<ul id="topmenu">
<li><a href="index.html">Home</a>
</li>
<li><a href="onlineextractor.html">Snippet Parser</a>
</li>
<li class="active"><a href="#">Snippet Search</a>
</li>
<li><a href="extract/fileupload.html">Oracle Generator</a>
</li>
<!--<li><a href="#">Others</a>
</li>-->
</ul>
</div>
</div>
<div id="header">
</div>
<div>
<form enctype="application/x-www-form-urlencoded" action="getanswers.php" method="post">
<h1><b>Instructions:</b><br></h1>
Enter the API element you want examples for, <br>
Choose if its an API class or a method,<br>
Choose the level of precision needed in finding matches(1 : exact match) <br><br>
<h2><font color="black">Sample API type queries:</font><br></h2>
<a href="getanswers.php?type=apitype&name=android.widget.ScrollView&precision=5">android.widget.ScrollView</a> <br>
<a href="getanswers.php?type=apitype&name=android.view.animation.Animation&precision=5">android.view.animation.Animation</a> <br><br>
<h2><font color="black">Sample API method queries:</font> <br></h2>
<a href="getanswers.php?type=apimethod&name=android.content.Context.getContentResolver()&precision=5">android.content.Context.getContentResolver()</a><br>
<a href="getanswers.php?type=apimethod&name=android.media.MediaPlayer.release()&precision=5">android.media.MediaPlayer.release()</a> <br><br>
<h2><font color="black">Enter:</font></h2><br>
<input type="radio" name="type" value="apitype" checked>API Type<br><br>
<input type="radio" name="type" value="apimethod">API Method<br><br>
API element name:<input type="text" name="name" id="autoname" /><br><br>
Precision:
<select name="precision">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select><br><br>
<input type="submit" value="GET EXAMPLES!" style="width: 200px; height: 30px">
</form>
</div>
</body>
</html>