Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedroxam authored Jul 11, 2020
1 parent c31317b commit e3cc959
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function concatVideos(){
.done(function(content){
setTimeout(function(){
location.reload();
}, 2000);
}, 3000);
});
}

Expand Down Expand Up @@ -142,7 +142,8 @@ $(document).ready(function(){

if(calculate !== 0 && calculate > 1){

var q = confirm('Do you want to cancat videos?');
var q = confirm('Do you want to cancat videos?');

if (q == true) {
concatVideos();
}
Expand All @@ -163,10 +164,17 @@ $(document).ready(function(){
concatVideos();
});

/**
* Remove Player
*/
$('#remove_player').click(function(){
$('#preview').remove();
});

/**
* Screenshot Generator
*/
$('.file_list button').click(function(){
$('.file_list #screenshot').click(function(){
$(this).html('Wait...');
$.ajax({
type:'POST',
Expand All @@ -183,7 +191,29 @@ $(document).ready(function(){
});

/**
* Rapid Saver TS Videos
* Delete Video
*/
$('.file_list #delete').click(function(){
var q = confirm('Are your sure to delete this video ?');
if(q === true){
$(this).html('Wait...');
$.ajax({
type:'POST',
url:'./delete.php',
data: {
video: $(this).data('file')
}
})
.done(function(content){
setTimeout(function(){
location.reload();
}, 500);
});
}
});

/**
* Rapid Chunk Video Saver
*/
$('#rapid').click(function(){
var that = this;
Expand Down

0 comments on commit e3cc959

Please sign in to comment.