dr Hubert Czerniak o Konopiach i Medycznej Marihuanie
Rzad w UK i tak jest w 70% panstw na tym globie. o Polsce nie wspomne Tu nie trzeba pytac kto rzadzi. Kazdy rzad na zdjeciach ma eskimosow co wydaja polecenia.
");
$('.app-offer-alert').find('.alert-success').fadeIn(300);
setTimeout(function (argument) {
$('.app-offer-alert').find('.alert-success').fadeOut(300);
window.location.reload(true);
},3000);
} else {
$('#create-offer-modal').animate({
scrollTop: $('html, body').offset().top //#DIV_ID is an example. Use the id of your destination on the page
});
$('.app-offer-alert').html('
' + data.error + '
');
$('.alert-danger').fadeIn(300);
setTimeout(function (argument) {
$('.alert-danger').fadeOut(300);
},3000);
}
$('.wo_settings_page').find('.last-sett-btn .ball-pulse').fadeOut(100);
}
});
var create_bar = $('.create-product-bar');
var create_percent = $('.create-product-percent');
$('form.edit-job-form').ajaxForm({
url: Wo_Ajax_Requests_File() + '?f=job&s=edit_job',
beforeSend: function() {
var percentVal = '0%';
create_bar.width(percentVal);
create_percent.html(percentVal);
$('.edit-job-form').find('.last-sett-btn .ball-pulse').fadeIn(100);
},
uploadProgress: function (event, position, total, percentComplete) {
var percentVal = percentComplete + '%';
create_bar.width(percentVal);
$('.edit-job-form').find('.create-product-progress').slideDown(200);
create_percent.html(percentVal);
},
success: function(data) {
if (data.status == 200) {
$('.edit-job-form').find('.app-general-alert').html("
Żądanie pracy zostało pomyślnie zaktualizowane.
");
$('.edit-job-form').find('.alert-success').fadeIn(300);
setTimeout(function (argument) {
$('.edit-job-form').find('.alert-success').fadeOut(300);
window.location.reload(true);
},3000);
} else {
$('.edit-job-form').find('#create-job-modal').animate({
scrollTop: $('html, body').offset().top //#DIV_ID is an example. Use the id of your destination on the page
});
$('.edit-job-form').find('.app-general-alert').html('
' + data.error + '
');
$('.edit-job-form').find('.alert-danger').fadeIn(300);
setTimeout(function (argument) {
$('.edit-job-form').find('.alert-danger').fadeOut(300);
},3000);
}
$('.edit-job-form').find('.last-sett-btn .ball-pulse').fadeOut(100);
}
});
});
function Wo_LoadMoreApplyJobs(){
var after_id = ($(".job_apply").length > 0) ? $(".job_apply").last().attr('data-job-apply') : 0;
var job_id = $('.apply_job_info').attr('data_apply_job');
if (!after_id) { return false;}
Wo_progressIconLoader($('#load_more_nearby_users'));
$.ajax({
url: Wo_Ajax_Requests_File(),
type: 'GET',
dataType: 'json',
data: {
f:'job',
s:'load',
offset:after_id,
job_id:job_id
},
})
.done(function(data) {
if (data['status'] == 200){
$(".apply_job_container").append(data.html);
$("[data-toggle]").tooltip();
$("#load_more_nearby_users").html('
Załaduj więcej');
}
else{
$("#load_more_nearby_users").html('Brak wyników do pokazania');
}
})
.fail(function() {
console.log("error");
})
}
function OpenCreateJobModal() {
$('#create-job-modal').modal('show');
}
$(function () {
if($(window).width() > 600) {
$(".user-avatar").hover(function () {
$('.profile-avatar-changer').fadeIn(100);
}, function () {
$('.profile-avatar-changer').fadeOut(100);
});
}
if($(window).width() > 600) {
$(".user-cover").hover(function () {
$('.profile-cover-changer').fadeIn(100);
}, function () {
$('.profile-cover-changer').fadeOut(100);
});
}
$('form.profile-avatar-changer').ajaxForm({
url: Wo_Ajax_Requests_File() + '?f=update_page_avatar_picture',
beforeSend: function () {
$('.profile_avatar').fadeOut(100);
$('.user-avatar-uploading-container,.user-avatar-uploading-progress').fadeIn(200);
},
success: function (data) {
$('.profile_avatar').fadeIn(100);
if(data.status == 200) {
$('[id^=page-avatar-image]').attr("src", data.img);
}
$('.user-avatar-uploading-container, .user-avatar-uploading-progress').fadeOut(200);
}
});
$('form.profile-cover-changer').ajaxForm({
url: Wo_Ajax_Requests_File() + '?f=update_page_cover_picture',
beforeSend: function () {
$('.profile_cover').fadeOut(100);
$('.user-cover-uploading-container,.user-cover-uploading-progress').fadeIn(200);
},
success: function (data) {
$('.profile_cover').fadeIn(100);
if(data.status == 200) {
$('.user-cover').find('img').attr("src", data.img);
//$('[id^=cover-image]').attr("src", data.img);
}
$('.user-cover-uploading-container,.user-cover-uploading-progress').fadeOut(200);
}
});
});
function Wo_ReportPage(id = false,report = true){
var report_text = $("#report-page-text-4").val();
if (!id) {return false;}
else if(report == true){
if (!report_text) {return false;}
}
$('#report_page').find('.modal-footer .ball-pulse').fadeIn(100);
$.ajax({
url: Wo_Ajax_Requests_File() + '?f=reports&s=report_page',
type: 'POST',
dataType: 'json',
data: {text:report_text,page:id}
})
.done(function(data) {
if(data.status == 200 && data.code == 0){
$('#report_status').replaceWith('\
\
\
');
}
else if (data.status == 200 && data.code == 1) {
$("#report-page-text-4").val('');
$("#report_page").modal('hide');
$('#report_status').replaceWith('\
\
\
');
}
$('#report_page').find('.modal-footer .ball-pulse').fadeOut(100);
})
.fail(function() {
console.log("error");
})
}
function Wo_UpdateProfileAvatar() {
$("form.profile-avatar-changer").submit();
}
function Wo_UpdateProfileCover() {
$("form.profile-cover-changer").submit();
}
function Wo_RatePage(self){
$.ajax({
url: Wo_Ajax_Requests_File() + '?f=pages&s=rate_page',
type: 'POST',
dataType: 'json',
data: {text: $("#rating_review").val(),page_id:'4',val:$("#rating_value").val()},
})
.done(function(data) {
if (data.status == 200) {
$("#rate_page").modal('hide');
location.reload();
}
Wo_progressIconLoader($("#rate-page-button"));
})
.fail(function() {
console.log("error");
})
}
function Wo_LoadPageReviews(self = false){
if (!self) {
return false;
}
var preview_id = ($('[data-user-review]').length > 0) ? $('[data-user-review]').last().attr('data-user-review') : 0;
$.ajax({
url: Wo_Ajax_Requests_File(),
type: 'GET',
dataType: 'json',
data: {f: 'pages',s:'load_reviews',page:'4',after_id:preview_id},
})
.done(function(data) {
if (data.status == 200) {
$("#page_reviews_cont").append(data.html);
}
else{
$(self).fadeIn('fast', function() {
$(this).remove();
});
}
})
.fail(function() {
console.log("error");
})
}