Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vendetta committed May 23, 2016
1 parent bac86d4 commit a849d08
Show file tree
Hide file tree
Showing 2 changed files with 304 additions and 1 deletion.
Binary file modified db/antrian.db
Binary file not shown.
305 changes: 304 additions & 1 deletion server/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,310 @@ function mulai(urut, loket){
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else{}
}else if(urut==100){
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if (urut < 110) {
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabel2').pause();
document.getElementById('suarabel2').currentTime=0;
document.getElementById('suarabel2').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if (urut == 110) {
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('sepuluh').pause();
document.getElementById('sepuluh').currentTime=0;
document.getElementById('sepuluh').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if (urut == 111) {
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('sebelas').pause();
document.getElementById('sebelas').currentTime=0;
document.getElementById('sebelas').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if (urut < 120) {
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabel2').pause();
document.getElementById('suarabel2').currentTime=0;
document.getElementById('suarabel2').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('belas').pause();
document.getElementById('belas').currentTime=0;
document.getElementById('belas').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if (urut == 120) {
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabel1').pause();
document.getElementById('suarabel1').currentTime=0;
document.getElementById('suarabel1').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('puluh').pause();
document.getElementById('puluh').currentTime=0;
document.getElementById('puluh').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if (urut < 200) {
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabel1').pause();
document.getElementById('suarabel1').currentTime=0;
document.getElementById('suarabel1').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('puluh').pause();
document.getElementById('puluh').currentTime=0;
document.getElementById('puluh').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;

if (urut%10!=0) {
setTimeout(function() {
document.getElementById('suarabel2').pause();
document.getElementById('suarabel2').currentTime=0;
document.getElementById('suarabel2').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}

setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if (urut == 200) {
setTimeout(function() {
document.getElementById('suarabel0').pause();
document.getElementById('suarabel0').currentTime=0;
document.getElementById('suarabel0').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}else if(urut < 999){
setTimeout(function() {
document.getElementById('suarabel0').pause();
document.getElementById('suarabel0').currentTime=0;
document.getElementById('suarabel0').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
document.getElementById('seratus').pause();
document.getElementById('seratus').currentTime=0;
document.getElementById('seratus').play();
}, totalwaktu);
setTimeout(function() {
document.getElementById('loket').pause();
document.getElementById('loket').currentTime=0;
document.getElementById('loket').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;

if (urut == 300 or urut == 400 or urut == 500 or urut == 600 or urut == 700 or urut == 800 or urut == 900) {}

setTimeout(function() {
document.getElementById('suarabelloket'+loket+'').pause();
document.getElementById('suarabelloket'+loket+'').currentTime=0;
document.getElementById('suarabelloket'+loket+'').play();
}, totalwaktu);
totalwaktu=totalwaktu+1000;
setTimeout(function() {
for (var i = 0 ; i < urut.toString().length; i++) {
$("#suarabel"+i+"").remove();
};
}, totalwaktu);
totalwaktu=totalwaktu+1000;
}

setTimeout(function() {
document.getElementById('out').pause();
document.getElementById('out').currentTime=0;
Expand Down

0 comments on commit a849d08

Please sign in to comment.