Created
July 25, 2012 16:07
-
-
Save francescosimoneschi/3176977 to your computer and use it in GitHub Desktop.
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
<script type="text/javascript"> | |
$(document).ready(function () { | |
if ($("table[class='zebra-striped']>thead>tr>th").length == 4) { | |
var client = $().domainsbot({ | |
searchTextbox: "input[name='domain']", | |
parameters: { // Option parameters | |
"pageSize": 10, // Page size | |
"auth-token": "8874b228c5f1586b2efed6d3bed7ce3c" // Replace with your api token from http://developers.domainsbot.com | |
}, | |
onSuccess: function (results) { | |
$.each(results.Domains, function (i, dn) { | |
$("table[class='zebra-striped']>tbody").append($("<tr><td class='textcenter'><input type='checkbox' name='domains[]' value='"+dn.DomainName+ | |
"' checked=''/><input type='hidden' name='domainsregperiod["+dn.DomainName+ | |
"]' value=''/></td><td>"+dn.DomainName+ | |
"</td><td class='textcenter domcheckersuccess'>¡Disponible! Comprar Ahora</td><td class='textcenter'><select name='domainsregperiod["+dn.DomainName | |
+"]'><option value='1'>1 Año(s) @ 9.00€</option>"+ | |
"<option value='2'>2 Año(s) @ 18.00€</option>"+ | |
"<option value='3'>3 Año(s) @ 27.00€</option>" + | |
"<option value='4'>4 Año(s) @ 36.00€</option>" + | |
"<option value='5'>5 Año(s) @ 45.00€</option>" + | |
"<option value='6'>6 Año(s) @ 54.00€</option>" + | |
"<option value='7'>7 Año(s) @ 63.00€</option>" + | |
"<option value='8'>8 Año(s) @ 72.00€</option>" + | |
"<option value='9'>9 Año(s) @ 81.00€</option>" + | |
"<option value='10'>10 Año(s) @ 90.00€</option>" + | |
"</select></td></tr>")); | |
}); | |
} | |
}); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment