Kategoria
Inne

  • Super!
  • HaHa
  • Smutne
  • Hura
  • Nie lubie
  • Piwko
  • Kawusia

  • Super!
  • HaHa
  • Smutne
  • Hura
  • Nie lubie
  • Piwko
  • Kawusia
"); $('.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-6").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('\
  • \ \ Zgłoś tę stronę\
  • '); } else if (data.status == 200 && data.code == 1) { $("#report-page-text-6").val(''); $("#report_page").modal('hide'); $('#report_status').replaceWith('\
  • \ \ Anuluj Zgłoszenie\
  • '); } $('#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:'6',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:'6',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 question_two = '

    Pytanie drugie
    '; var question_three = '

    Pytanie trzecie
    '; function HideQuestion(type) { $('#question_'+type+'_block').remove(); $('#add_new_question').css('display', 'block'); } $(document).ready(function() { if (navigator.geolocation) { var location = navigator.geolocation.getCurrentPosition(function (position) { $("#lng-job").val(position.coords.longitude); $("#lat-job").val(position.coords.latitude); }); } $('form.create-job-form').on('keyup keypress', function(e) { var keyCode = e.keyCode || e.which; if (keyCode === 13) { e.preventDefault(); return false; } }); $('form.create-offer-form').on('keyup keypress', function(e) { var keyCode = e.keyCode || e.which; if (keyCode === 13) { e.preventDefault(); return false; } }); $('#add_new_question').click(function(event) { if ($('#question_one_block').is(":visible")) { if ($('#question_two_block').is(":visible")) { if ($('#question_three_block').is(":visible")) { $(this).css('display', 'none'); } else{ $('#question_three_parent').html(question_three); setTimeout(function (argument) { $("#question_three_answers").tagsinput({ maxTags: 10, }); },1000); } } else{ $('#question_two_parent').html(question_two); setTimeout(function (argument) { $("#question_two_answers").tagsinput({ maxTags: 10, }); },1000); } } else{ $('#question_one_parent').html(question_one); setTimeout(function (argument) { $("#question_one_answers").tagsinput({ maxTags: 10, }); },1000); } }); $(document).on('change', '#question_one_type', function(event) { if ($(this).val() == 'multiple_choice_question') { $('#question_one_answers_div').css('display', 'block'); } else{ $('#question_one_answers_div').css('display', 'none'); } }); $(document).on('change', '#question_two_type', function(event) { if ($(this).val() == 'multiple_choice_question') { $('#question_two_answers_div').css('display', 'block'); } else{ $('#question_two_answers_div').css('display', 'none'); } }); $(document).on('change', '#question_three_type', function(event) { if ($(this).val() == 'multiple_choice_question') { $('#question_three_answers_div').css('display', 'block'); } else{ $('#question_three_answers_div').css('display', 'none'); } }); $("#select-img").click(function(event) { $("#thumbnail").click() }); $("#use_upload_photo").click(function(event) { $("#thumbnail").click() }); $("#thumbnail").change(function(event) { $(".prv-img").html("Picture"); $('#image_type').val('upload'); }); $("#use_cover_photo").click(function(event) { $(".prv-img").html("Picture"); $('#image_type').val('cover'); }); var create_bar = $('.create-product-bar'); var create_percent = $('.create-product-percent'); $('form.create-job-form').ajaxForm({ url: Wo_Ajax_Requests_File() + '?f=job&s=create_job', beforeSend: function() { var percentVal = '0%'; create_bar.width(percentVal); create_percent.html(percentVal); $('.wo_settings_page').find('.last-sett-btn .ball-pulse').fadeIn(100); }, uploadProgress: function (event, position, total, percentComplete) { var percentVal = percentComplete + '%'; create_bar.width(percentVal); $('.create-product-progress').slideDown(200); create_percent.html(percentVal); }, success: function(data) { if (data.status == 200) { $('.app-general-alert').html("
    Żądanie pracy zostało utworzone pomyślnie.
    "); $('.app-general-alert').find('.alert-success').fadeIn(300); setTimeout(function (argument) { $('.app-general-alert').find('.alert-success').fadeOut(300); window.location.reload(true); },3000); } else { $('#create-job-modal').animate({ scrollTop: $('html, body').offset().top //#DIV_ID is an example. Use the id of your destination on the page }); $('.app-general-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_pac_input = document.getElementById('location'); (function pacSelectFirst(input) { // store the original event binding function var _addEventListenerProduct = (input.addEventListener) ? input.addEventListener : input.attachEvent; function addEventListenerWrapper(type, listener) { // Simulate a 'down arrow' keypress on hitting 'return' when no pac suggestion is selected, // and then trigger the original listener. if(type == "keydown") { var orig_listener_product = listener; listener = function (event) { var suggestion_selected_product = $(".pac-item-selected").length > 0; if(event.which == 13 && !suggestion_selected_product) { var simulated_downarrow_product = $.Event("keydown", { keyCode: 40, which: 40 }); orig_listener_product.apply(input, [simulated_downarrow_product]); } orig_listener_product.apply(input, [event]); }; } // add the modified listener _addEventListenerProduct.apply(input, [type, listener]); } if(input.addEventListener) input.addEventListener = addEventListenerWrapper; else if(input.attachEvent) input.attachEvent = addEventListenerWrapper; })(create_pac_input); $(function () { var autocompleteproduct = new google.maps.places.Autocomplete(create_pac_input); });
    Standard
    Kwadro