Last active
April 10, 2017 04:36
-
-
Save hoalongntc/ea979307d0e44155231652b77e0bec98 to your computer and use it in GitHub Desktop.
Gianh ve dsvn
This file contains hidden or 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
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