Skip to content

Instantly share code, notes, and snippets.

@hoalongntc
Last active April 10, 2017 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoalongntc/ea979307d0e44155231652b77e0bec98 to your computer and use it in GitHub Desktop.
Save hoalongntc/ea979307d0e44155231652b77e0bec98 to your computer and use it in GitHub Desktop.
Gianh ve dsvn
var s = angular.element('.et-car-floor-region').scope();
function buy(num) {
var seat = s.seats.Chos.filter(function(s) { return s.ChoSo == num; })[0];
if (seat) {
seat.waiting = false;
seat.Status.Status = 3;
s.buyTicket(seat, s.direct);
}
}
var inv = setInterval(function() {
// Change to seats you want to get
buy(43); buy(44); buy(45); buy(46);
$('.modal').remove();
$('.modal-backdrop').remove();
}, 100);
// Call this when you got the tickets
clearInterval(inv);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment