-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest.html
62 lines (48 loc) · 1.59 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<html>
<head>
<!-- Fetch jQuery library -->
<script src = "http://code.jquery.com/jquery-1.7.2.min.js"></script>
<!-- Fetch DomainsBot plugin -->
<script src = "https://domainsbot.blob.core.windows.net/javascript/jquery.domainsbot-1.0.min.js"></script>
<style type="text/css">
#results>div>a {color: Black;}
#results>div>a:hover {color:Black;}
</style>
</head>
<body>
<!-- Fetch DomainsBot plugin -->
<br/>
<br/>
<input type="text" id="search_box" />
<input type="button" id="search_button" value="Search"/>
<div id="loader"><img src="http://domainsbot.blob.core.windows.net/img/loading.gif" alt="Loading.."></div>
<div id="checking"><img src="http://domainsbot.blob.core.windows.net/img/checking.gif" alt="Checking.."></div>
<br/>
<br/>
<div id="results"></div>
<script>
$(document).ready(function ()
{
var client = $().domainsbot({
parameters : {
"pageSize" : 5,
"auth-token": "YOUR-TOKEN-HERE",
"tlds" : "com,co,net,me"
},
results: "#results",
loading: "#loader",
checking: "#checking",
searchTextbox : "#search_box",
searchSubmit : "#search_button",
searchParameter: "domain",
autoComplete: true,
// Events
urlCheckout: "http://domainsbot.com/d/%domain%" //Replace with your check out url!
//onCheckout: function(domain,evt){alert(domain.Domain);}
//onSuccess: function(data){alert(data)},
//onError: function(err){alert(err.message);}
});
});
</script>
</body>
</html>