alert("Пожалуйста, введите пароль");return;
}
var id = $('#download_id').val();
var type = $('#download_type').val();
$.ajax({
url: '/get_file_path?id='+ id +'&type=' + type + '&file_pass=' + file_pass,
type:"get",
success:function(res){
console.log(res);
if (res.code == 200) {
$(".transparent").hide();
$(".video-popup").hide();
$('#file_password').val('');
window.location.href = '/download_file?path=' + res.data.path + '&file_name=' + res.data.file_name ;
} else {
alert(res.msg);
}
}
});
}
function showpop(id,type,sutaus) {
if (sutaus == '1') {
$('#download_id').val(id);
$('#download_type').val(type);
$(".video-popup").show();
$(".transparent").show();
return;
}else{
$.ajax({
url: '/get_file_path?id='+ id +'&type=' + type,
type:"get",
success:function(res){
console.log(res);
if (res.code == 200) {
window.location.href = '/download_file?path=' + res.data.path + '&file_name=' + res.data.file_name ;
} else {
alert(res.msg);
}
}
});
}
}
function hidepop() {
$(".video-popup").hide();
$(".transparent").hide();
}
$(function() {
if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
var wow = new WOW({
boxClass: 'wow',
animateClass: 'animated',
offset: 0,
mobile: true,
live: true
});
wow.init();
};
});