Tieni presente che se hai meno di 18 anni, non sarai in grado di accedere a questo sito.
Hai 18 anni o più?
function PT_RVReply(text,comm_id,event,video_id){
if (!text || !comm_id || !event || !video_id) {
return false;
}
else if(event.keyCode == 13 && event.shiftKey == 0){
var reply_id = 0;
if($("#comm-reply-"+comm_id).attr('data-reply-id')){
reply_id = $("#comm-reply-"+comm_id).attr('data-reply-id');
}
$.ajax({
url: "https://newartistsource.com/aj/add-reply/video",
type: 'POST',
dataType: 'json',
data: {text:text,id:comm_id,video_id:video_id,reply:reply_id},
})
.done(function(data) {
if (data.status == 200) {
$("#pt-comment-replies-cont-" + comm_id).append(data.html)
$("#comm-reply-"+comm_id).find('input').val('').blur();
}
$("#comment-reply-loading-renderer-"+comm_id).addClass('hidden');
})
.fail(function() {
alert('Sorry, something went wrong: Please try again later ...');
})
}
}
function PT_RPReply(text,comm_id,event,post_id){
if (!text || !comm_id || !event || !post_id) {
return false;
}
else if(event.keyCode == 13 && event.shiftKey == 0){
var reply_id = 0;
if($("#comm-reply-"+comm_id).attr('data-reply-id')){
reply_id = $("#comm-reply-"+comm_id).attr('data-reply-id');
}
$.ajax({
url: "https://newartistsource.com/aj/add-reply/article",
type: 'POST',
dataType: 'json',
data: {text:text,id:comm_id,post_id:post_id,reply:reply_id},
})
.done(function(data) {
if (data.status == 200) {
$("#pt-comment-replies-cont-" + comm_id).append(data.html)
$("#comm-reply-"+comm_id).find('input').val('').blur();
}
$("#comment-reply-loading-renderer-"+comm_id).addClass('hidden');
})
.fail(function() {
alert('Sorry, something went wrong: Please try again later ...');
})
}
}
function PT_RAReply(text,comm_id,event,post_id){
if (!text || !comm_id || !event || !post_id) {
return false;
}
else if(event.keyCode == 13 && event.shiftKey == 0){
var reply_id = 0;
if($("#comm-reply-"+comm_id).attr('data-reply-id')){
reply_id = $("#comm-reply-"+comm_id).attr('data-reply-id');
}
$.ajax({
url: "https://newartistsource.com/aj/add-reply/activity",
type: 'POST',
dataType: 'json',
data: {text:text,id:comm_id,post_id:post_id,reply:reply_id},
})
.done(function(data) {
if (data.status == 200) {
$("#pt-comment-replies-cont-" + comm_id).append(data.html)
$("#comm-reply-"+comm_id).find('input').val('').blur();
}
$("#comment-reply-loading-renderer-"+comm_id).addClass('hidden');
})
.fail(function() {
alert('Sorry, something went wrong: Please try again later ...');
})
}
}
function PT_DeleteReply(id) {
if (!id) { return false; }
if (!confirm('Sei sicuro di voler eliminare il tuo commento?')) { return false; }
$('#reply-' + id).slideUp('fast');
$.post('https://newartistsource.com/aj/delete-reply', {id: id});
}
function PT_LikeComments(self,type,comment_id){
if (!self || (type != 'up' && type != 'down') || !comment_id){
return false;
}
else if (!$('#main-container').attr('data-logged') && $('#main-url').val()) {
window.location.href = PT_Ajax_Requests_File() + 'login?to=' + $('#main-url').val();
return false;
}
var self = $(self);
$.ajax({
url: 'https://newartistsource.com/aj/comment-like-system/' + type,
type: 'POST',
dataType: 'json',
data: {id:comment_id}
})
.done(function(data) {
if (data.status == 200 && type == 'up' && data.type == 'added_like'){
self.find('span').text((data.up));
$('[data-comment-dislikes="'+comment_id+'"]').find('span').text((data.down));
self.find('svg.feather').addClass('active');
self.siblings().find('svg.feather').removeClass('active');
}
else if (data.status == 200 && type == 'up' && data.type == 'deleted_like'){
self.find('span').text((data.up));
$('[data-comment-dislikes="'+comment_id+'"]').find('span').text((data.down));
self.find('svg.feather').removeClass('active');
self.siblings().find('svg.feather').removeClass('active');
}
else if (data.status == 200 && type == 'down' && data.type == 'added_dislike'){
self.find('span').text((data.down));
self.find('svg.feather').addClass('active');
$('[data-comment-likes="'+comment_id+'"]').find('span').text((data.up));
self.siblings().find('svg.feather').removeClass('active');
}
else if (data.status == 200 && type == 'down' && data.type == 'deleted_dislike'){
self.find('span').text((data.down));
self.find('svg.feather').removeClass('active');
$('[data-comment-likes="'+comment_id+'"]').find('span').text((data.up));
self.siblings().find('svg.feather').removeClass('active');
}
else{
swal(
'Error!',
'Something went wrong.Please try again later!',
'error'
);
}
})
.fail(function() {
console.log("error");
})
}
function PT_LikeReplies(self,type,reply_id){
if (!self || (type != 'up' && type != 'down') || !reply_id){
return false;
}
else if (!$('#main-container').attr('data-logged') && $('#main-url').val()) {
window.location.href = PT_Ajax_Requests_File() + 'login?to=' + $('#main-url').val();
return false;
}
var self = $(self);
$.ajax({
url: 'https://newartistsource.com/aj/reply-like-system/' + type,
type: 'POST',
dataType: 'json',
data: {id:reply_id}
})
.done(function(data) {
if (data.status == 200 && type == 'up' && data.type == 'added_like'){
self.find('span').text((data.up));
$('[data-reply-dislikes="'+reply_id+'"]').find('span').text((data.down));
self.find('svg.feather').addClass('active');
self.siblings().find('svg.feather').removeClass('active');
}
else if (data.status == 200 && type == 'up' && data.type == 'deleted_like'){
self.find('span').text((data.up));
$('[data-reply-dislikes="'+reply_id+'"]').find('span').text((data.down));
self.find('svg.feather').removeClass('active');
self.siblings().find('svg.feather').removeClass('active');
}
else if (data.status == 200 && type == 'down' && data.type == 'added_dislike'){
self.find('span').text((data.down));
self.find('svg.feather').addClass('active');
$('[data-reply-likes="'+reply_id+'"]').find('span').text((data.up));
self.siblings().find('svg.feather').removeClass('active');
}
else if (data.status == 200 && type == 'down' && data.type == 'deleted_dislike'){
self.find('span').text((data.down));
self.find('svg.feather').removeClass('active');
$('[data-reply-likes="'+reply_id+'"]').find('span').text((data.up));
self.siblings().find('svg.feather').removeClass('active');
}
else{
swal(
'Error!',
'Something went wrong.Please try again later!',
'error'
);
}
})
.fail(function() {
console.log("error");
})
}
function pt_hide_announcement(id){
if (!id) { return false; }
$("#announcement-"+id).slideUp('fast',function(){
$(this).remove();
$.post('https://newartistsource.com/aj/main/hide-announcement', {id: id}, function(data, textStatus, xhr) { /* pass */ });
})
}
function pay_to_see(video_id,price,type = 'buy') {
PayUsingWallet(type,'show',video_id,price);
return false;
$('.p_t_show_btn_').attr('disabled', 'true');
if (type == 'rent') {
$('.p_t_show_btn_rent').text("Attendere prego..");
$('.p_t_show_btn_rent').text("Affitto $"+price);
PT_ShowMethods('rent',video_id,price);
}
else{
$('.p_t_show_btn_buy').text("Attendere prego..");
$('.p_t_show_btn_buy').text("Acquistare $"+price);
PT_ShowMethods('pay',video_id,price);
}
$('.p_t_show_btn_').removeAttr('disabled');
}
function PT_ShowMethods(type,video_id = 0,price = 0,user_id = 0) {
$.post('https://newartistsource.com/aj/wallet/get_modal',{type:type,video_id:video_id,price:price,user_id:user_id}, function(data, textStatus, xhr) {
if (data.status == 200) {
$('.payment_method').html(data.html);
$('#pay-go-pro').modal({
show: true
});
}
if (type == 'subscribe') {
$('.subscribe-id-'+user_id).find('span').text("sottoscrivi");
$('.subscribe-id-'+user_id).removeAttr('disabled');
}
});
}
function PT_PurchasePkg(pkg,self,video_id,price,user_id = 0){
if (!pkg || !self) {
return false;
}
$(self).text("Attendere prego..").attr('disabled', 'true');
if (pkg == 'wallet') {
amount = $("#wallet_amount").val();
$.ajax({
url: 'https://newartistsource.com/aj/wallet/replenish',
type: 'POST',
dataType: 'json',
data: {amount:amount},
})
.done(function(data) {
if (data.status == 200) {
window.location.href = data.url;
}
else{
swal({
title:"Errore!",
text:"Qualcosa è andato storto. Riprova più tardi!",
type:"error"
});
}
})
.fail(function() {
swal({
title:"Errore!",
text:"Qualcosa è andato storto. Riprova più tardi!",
type:"error"
});
});
}
}
function pay_using_iyzipay(pkg,self,video_id,price,user_id = 0) {
$('.btn-iyzipay').attr('disabled','true');
$('.btn-iyzipay').find('span').text("Attendere prego..");
pay_type = '';
if (pkg == 'pro') {
path = '/go_pro/iyzipay';
}
else if (pkg == 'wallet') {
path = '/wallet/iyzipay';
price = $("#wallet_amount").val();
}
else if (pkg == 'pay') {
path = '/go_pro/iyzipay_pay_to_see';
}
else if (pkg == 'rent') {
path = '/go_pro/iyzipay_pay_to_see';
pay_type = 'rent';
}
else if (pkg == 'subscribe') {
path = '/go_pro/subscribe';
}
$.post('https://newartistsource.com/aj'+path, {video_id:video_id,amount:price,user_id:user_id,pay_type:pay_type,type:'iyzipay'}, function(data) {
if (data.status == 200) {
$('#iyzipay_content').html('');
$('#iyzipay_content').html(data.html);
} else {
$('.btn-iyzipay').attr('disabled', false).html("Iyzipay App not set yet.");
}
$('.btn-iyzipay').removeAttr('disabled');
$('.btn-iyzipay').find('span').text("Iyzipay");
});
}
function pay_using_paysera(pkg,self,video_id,price,user_id = 0) {
$('.btn-paysera').attr('disabled','true');
$('.btn-paysera').find('span').text("Attendere prego..");
pay_type = '';
if (pkg == 'pro') {
path = '/go_pro/paysera';
}
else if (pkg == 'wallet') {
path = '/wallet/paysera';
price = $("#wallet_amount").val();
}
else if (pkg == 'pay') {
path = '/go_pro/paysera_pay_to_see';
}
else if (pkg == 'rent') {
path = '/go_pro/paysera_pay_to_see';
pay_type = 'rent';
}
else if (pkg == 'subscribe') {
path = '/go_pro/subscribe';
}
$.post('https://newartistsource.com/aj'+path, {video_id:video_id,amount:price * 100,user_id:user_id,pay_type:pay_type,type:'paysera'}, function(data) {
if (data.status == 200) {
window.location.href = data.url;
} else {
$('.btn-paysera').attr('disabled', false).html("Paysera App not set yet.");
}
$('.btn-paysera').removeAttr('disabled');
$('.btn-paysera').find('span').text("Paysera");
});
}
function pay_using_razorpay(pkg,self,video_id,price,user_id = 0) {
$('#razorpay_type').val(pkg);
$('#razorpay_video_id').val(video_id);
$('#razorpay_price').val(price);
$('#razorpay_user_id').val(user_id);
$("#razorpay_alert").html('');
$('#pay-go-pro').modal('hide');
$('#razorpay_modal_box').modal({
show: true
});
}
function SignatureRazorpay() {
$('#razorpay_button').html("Attendere prego..");
$('#razorpay_button').attr('disabled','true');
var merchant_order_id = "111111";
var card_holder_name_id = $('#razorpay_name').val();
var email = $('#razorpay_email').val();
var phone = $('#razorpay_phone').val();
var currency_code_id = "INR";
if (!email || !phone || !card_holder_name_id) {
$('#razorpay_alert').html("Si prega di controllare i dettagli
");
$('#razorpay_button').html("Acquistare");
$('#razorpay_button').removeAttr('disabled');
setTimeout(function () {
$('#razorpay_alert').html("");
},3000);
return false;
}
video_id = $('#razorpay_video_id').val();
amount = $('#razorpay_price').val();
user_id = $('#razorpay_user_id').val();
pay_type = '';
pkg = $('#razorpay_type').val();
if (pkg == 'pro') {
path = '/go_pro/razorpay';
}
else if (pkg == 'wallet') {
path = '/wallet/razorpay';
amount = $("#wallet_amount").val();
}
else if (pkg == 'pay') {
path = '/go_pro/razorpay_pay_to_see';
}
else if (pkg == 'rent') {
path = '/go_pro/razorpay_pay_to_see';
pay_type = 'rent';
}
else if (pkg == 'subscribe') {
path = '/go_pro/subscribe_razorpay';
}
var merchant_total = Number(amount) * 100;
var razorpay_options = {
key: "",
amount: merchant_total,
name: "New Artist Source",
description: "",
image: 'https://newartistsource.com/themes/youplay/img/logo-light.png?cache=753',
netbanking: true,
currency: currency_code_id,
prefill: {
name: card_holder_name_id,
email: email,
contact: phone
},
notes: {
soolegal_order_id: merchant_order_id,
},
handler: function (transaction) {
$.post('https://newartistsource.com/aj'+path, {payment_id: transaction.razorpay_payment_id, order_id: merchant_order_id, card_holder_name_id: card_holder_name_id, merchant_amount: merchant_total, currency: currency_code_id,video_id:video_id,user_id:user_id,pay_type:pay_type,type:'razorpay',name:name,phone:phone}, function(data) {
if (data.status == 200) {
window.location = data.url;
} else {
$('#razorpay_alert').html(""+data.message+"
");
setTimeout(function () {
$('#razorpay_alert').html("");
},3000);
}
$('#razorpay_button').html("Acquistare");
$('#razorpay_button').removeAttr('disabled');
});
},
"modal": {
"ondismiss": function () {
// code here
}
}
};
// obj
var objrzpv1 = new Razorpay(razorpay_options);
objrzpv1.open();
}
function pay_using_cashfree(pkg,self,video_id,price,user_id = 0) {
$('#cashfree_type').val(pkg);
$('#cashfree_video_id').val(video_id);
$('#cashfree_price').val(price);
$('#cashfree_user_id').val(user_id);
$("#cashfree_alert").html('');
$('#pay-go-pro').modal('hide');
$('#cashfree_modal_box').modal({
show: true
});
}
function InitializeCashfree() {
$('#cashfree_button').html("Attendere prego..");
$('#cashfree_button').attr('disabled','true');
name = $('#cashfree_name').val();
phone = $('#cashfree_phone').val();
email = $('#cashfree_email').val();
video_id = $('#cashfree_video_id').val();
amount = $('#cashfree_price').val();
user_id = $('#cashfree_user_id').val();
cashfree_card_number = $('#cashfree_card_number').val();
cashfree_card_expiry_mm = $('#cashfree_card_expiry_mm').val();
cashfree_card_expiry_yy = $('#cashfree_card_expiry_yy').val();
cashfree_card_cvv = $('#cashfree_card_cvv').val();
pay_type = '';
pkg = $('#cashfree_type').val();
if (pkg == 'pro') {
path = '/go_pro/cashfree';
}
else if (pkg == 'wallet') {
path = '/wallet/cashfree';
amount = $("#wallet_amount").val();
}
else if (pkg == 'pay') {
path = '/go_pro/cashfree_pay_to_see';
}
else if (pkg == 'rent') {
path = '/go_pro/cashfree_pay_to_see';
pay_type = 'rent';
}
else if (pkg == 'subscribe') {
path = '/go_pro/subscribe';
}
$.post('https://newartistsource.com/aj'+path, {email:email,video_id:video_id,amount:amount,user_id:user_id,pay_type:pay_type,type:'cashfree',name:name,phone:phone,cashfree_card_number:cashfree_card_number,cashfree_card_expiry_mm:cashfree_card_expiry_mm,cashfree_card_expiry_yy:cashfree_card_expiry_yy,cashfree_card_cvv:cashfree_card_cvv}, function(data) {
if (data.status == 200) {
window.location.href = data.url;
} else {
$('#cashfree_alert').html(""+data.message+"
");
setTimeout(function () {
$('#cashfree_alert').html("");
},3000);
}
$('#cashfree_button').html("Acquistare");
$('#cashfree_button').removeAttr('disabled');
});
}
function pay_using_paystack(pkg,self,video_id,price,user_id = 0) {
$('#paystack_type').val(pkg);
$('#paystack_video_id').val(video_id);
$('#paystack_price').val(price);
$('#paystack_user_id').val(user_id);
$("#paystack_wallet_alert").html('');
$('#pay-go-pro').modal('hide');
$('#paystack_wallet_modal').modal({
show: true
});
}
function InitializeWalletPaystack() {
$('#paystack_btn').html("Attendere prego..");
$('#paystack_btn').attr('disabled','true');
email = $('#paystack_wallet_email').val();
video_id = $('#paystack_video_id').val();
amount = $('#paystack_price').val();
user_id = $('#paystack_user_id').val();
pay_type = '';
pkg = $('#paystack_type').val();
if (pkg == 'pro') {
path = '/go_pro/paystack';
}
else if (pkg == 'wallet') {
path = '/wallet/paystack';
amount = $("#wallet_amount").val();
}
else if (pkg == 'pay') {
path = '/go_pro/paystack_pay_to_see';
}
else if (pkg == 'rent') {
path = '/go_pro/paystack_pay_to_see';
pay_type = 'rent';
}
else if (pkg == 'subscribe') {
path = '/go_pro/subscribe';
}
$.post('https://newartistsource.com/aj'+path, {email:email,video_id:video_id,amount:amount,user_id:user_id,pay_type:pay_type,type:'paystack'}, function(data) {
if (data.status == 200) {
window.location.href = data.url;
} else {
$('#paystack_wallet_alert').html(""+data.message+"
");
setTimeout(function () {
$('#paystack_wallet_alert').html("");
},3000);
}
$('#paystack_btn').html("Acquistare");
$('#paystack_btn').removeAttr('disabled');
});
}
function PT_OpenCheckOut(pkg,self,video_id = 0,price = 0,user_id = 0){
if (!pkg || !self) {
return false;
}
if (video_id) {
$('#checkout_video_'+video_id).val(video_id);
}
if (price) {
$('#checkout_price_'+video_id).val(price);
}
$('#checkout_user_id').val(user_id);
$(self).text("Attendere prego..").attr('disabled', 'true');
$("#2checkout_alert").html('');
$('#pay-go-pro').modal('hide');
$('#2checkout_modal').modal({
show: true
});
if (pkg == 'rent') {
$('.checkout_pay_type').val('rent');
}
else{
$('.checkout_pay_type').val('');
}
}
function PT_PaySubscribe(user_id,self,type = '',price=0) {
if (!user_id || !self) { return false; }
var text = $(self).find('span').text();
if (type == 'subscribe') {
PayUsingWallet(type,'show',user_id,price);
return;
$(self).find('span').text("Attendere prego..");
$(self).attr('disabled', 'true');
PT_ShowMethods('subscribe',0,0,user_id);
}
else{
var html = "Sei sicuro che vuoi annullare l'iscrizione? Questa azione non può essere annullata.";
swal({
title: "",
type: "",
html:html,
showCancelButton: true,
cancelButtonText: "No",
customClass: 'sweetalert-lg pt_add_to_list_vid',
confirmButtonText:'sì'
}).then(function(){
$(self).removeClass('btn-subscribed').addClass('btn-subscribe');
$(self).find('span').text("sottoscrivi");
$(self).find('svg').remove();
$(self).prepend('');
$(self).attr('onclick', 'PT_PaySubscribe(' + user_id + ',this,"subscribe")');
$.post('https://newartistsource.com/aj/subscribe', {user_id: user_id});
},function(){
});
}
$(self).removeAttr('disabled');
$(self).find('span').text(text);
}
function notifyUser(user_id,self) {
$.post('https://newartistsource.com/aj/user/notify', {user_id:user_id}, function(data) {
if (data.status == 200) {
$(self).replaceWith(data.html);
} else {
Snackbar.show({text: ''+ data.message +'
'});
}
});
}
Lingua