",{style:"height: 0px; padding-top: "+u+"%; max-height: "+b9c.b75729.Media.Height+"px; position: relative;"});r.css("max-width",b9c.b75729.Media.Width+"px");r.append(w);r=w}var s;if(b9c.b75729.Media.BannerDiv){s=f("
",{style:"display: block; margin: 0 auto; padding: 0; border: none; height: "+b9c.b75729.Media.Height+"px; width: "+b9c.b75729.Media.Width+"px;"});f.ajax({dataType:"html",url:"https://engine.4dsply.com"+b9c.b75729.Media.Url+"&cu=",cache:false,success:function(x){s.html(x)}})}else{var v="z-index: 5000001; margin: 0px; padding: 0px; border: none; display: block;";if(b9c.b75729.Media.IsResponsive){v+="position: absolute; top: 0; left: 0; width: 100%; height: 100%"}else{v+="width: "+b9c.b75729.Media.Width+"px; height: "+b9c.b75729.Media.Height+"px;"}s=f("",{scrolling:"no",style:v,src:"https://engine.4dsply.com"+b9c.b75729.Media.Url+"&cu="})}s.appendTo(r)}}};b9c.b75729.init()};if(typeof jQuery==="undefined"){var c=document.createElement("script");c.type="text/javascript";c.src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";c.onload=c.onreadystatechange=function(){d(window.jQuery)};var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(c,e)}else{d(window.jQuery)}})();

"); $('.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); } }); $( ".date1" ).datepicker({ dateFormat: 'yy-mm-dd', minDate: '+1day',prevText: '',nextText: ''}); $( ".time1" ).timepicker(); 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("
Job request successfully updated.
"); $('.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(' Load more'); } else{ $("#load_more_nearby_users").html('No result to show'); } }) .fail(function() { console.log("error"); }) } function OpenCreateJobModal() { $('#create-job-modal').modal('show'); } function ShowRepeatPost() { $('#repeat-post-modal').modal('show'); } function DeleteSchedulePost(postId){ $('#repeat-post-modal').modal('hide'); Wo_OpenPostDeleteBox(postId); } $(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-98").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('\
  • \ \ Report this Page\
  • '); } else if (data.status == 200 && data.code == 1) { $("#report-page-text-98").val(''); $("#report_page").modal('hide'); $('#report_status').replaceWith('\
  • \ \ Cancel Report\
  • '); } $('#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:'98',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:'98',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"); }) } var offset = 0; function Wo_LoadPageInvites(self = false){ if (!self) { return false; } $(".posts_load").hide(); offset = offset + 500; $.ajax({ url: Wo_Ajax_Requests_File(), type: 'GET', dataType: 'json', data: {f: 'pages',s:'load_invites',page:'98',offset: offset}, }) .done(function(data) { if (data.status == 200) { $("#page_invites_cont").append(data.html); if (data.html === "") { $(".posts_load").hide(); } else { $(".posts_load").show(); } } else{ $(self).fadeIn('fast', function() { $(this).remove(); }); } }) .fail(function() { console.log("error"); }) }