Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function code() {
- var i, chars = '1234567890qertyuiopasdfghjklzxcvbnm', str = '';
- for (i = 0; i < 8; i++)
- str += chars.substr((Math.floor(Math.random() * (chars.length + 1))), 1);
- return str;
- };
- Make = function () {
- new Ajax.Request('/habblet/ajax/new_redeemvoucher/', {
- parameters: 'voucherCode=' + code(),
- onComplete: function () {
- new Make();
- }
- });
- };
- new Make();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement