116
errors pending
9
confirmed errors
New! (ver. 3)
For every 50 confirmed abuses, the upload limit for 11th 35AWARDS will be increased
Select a claim by photo:
Submitting an error ...

Main award results are not available yet

At the moment, the author has no published works within the main 35AWARDS photo award. The author may be participating in the current season, and the results will appear after the final results are announced.

Already there is a reception of photos on competition 11th 35AWARDS

Participate
* Free
Catalogue 10TH 35AWARDS
More than 1500 best works of the 10TH photo award, more than 1000 authors
More
Keep abreast of all the news about the competition
awards@35awards.com
You can always unsubscribe from this mailing list by clicking on the link "Unsubscribe" at the bottom of the letter
 
CATALOGUE 10TH 35AWARDS
BEST PHOTOS AND PHOTOGRAPHERS
The catalog contains more than 1500 photos from 25 nominations from more than 1000 authors of the 10th 35AWARDS
More
function loadModalContent(variable, additionalParams = {}) { $('#modal_ajax .modal-title').text(''); $('#modal_ajax .modal-body').html('

Loading...

'); $('#modal_ajax .more-btn').html(''); var url = 'https://35awards.com/page/modal/' + variable + '/'; if (Object.keys(additionalParams).length > 0) { url += '?' + $.param(additionalParams); } $.ajax({ url: url, type: 'GET', dataType: 'json', success: function(data) { $('#modal_ajax .modal-title').html(data.title); $('#modal_ajax .modal-body').html(data.text); $('#modal_ajax .more-btn').html(data.button); }, error: function() { $('#modal_ajax .modal-body').html('

Error loading content. Please try again later.

'); } }); } function consentGrantedAll() { gtag('consent', 'update', { 'ad_storage': 'granted', 'ad_user_data': 'granted', 'ad_personalization': 'granted', 'analytics_storage': 'granted' }); } function declineAll() { gtag('consent', 'update', { 'ad_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied', 'analytics_storage': 'denied' }); } $(document).ready(function() { if (!localStorage.getItem("cookieConsent")) { $('#cookieConsent').fadeIn(); } $('#acceptCookies').click(function() { localStorage.setItem("cookieConsent", "accepted"); $('#cookieConsent').alert('close'); consentGrantedAll() }); $('#declineCookies').click(function() { localStorage.setItem("cookieConsent", "declined"); $('#cookieConsent').alert('close'); declineAll() }); }); var observer; $(document).ready(function() { observer = lozad(".lozadGridItem", { rootMargin: '100px 0px', threshold: 0.05, enableAutoReload: false, load: function(el) { $( el ).find(".lozadGridPhoto").each(function() { var loadImage = $(this); var image = new Image(); var newSrc = loadImage.attr("data-src"); image.onload = function() { loadImage.attr("src", newSrc ); } image.src = newSrc; }); $( el ).find(".lozadBackground").each(function() { $( this ).css("background-image", "url(" + $( this ).attr("background-url") + ")" ); }); } }); observer.observe(); }); var ver = 2; var myData = {user_id:0, user_name:"", user_login:""}; var token35 = ""; var res = { "unfollow_btn" : "Unfollow", "follow_btn" : "Follow", "alertMessage": "Photo added to favorites!", "leave_comment": "Leave a comment here", "send_btn" : "Send", } var allow_follow = false; var allow_vote = false; var allow_comment = false; var moderEdit = false; option_main = {allow_follow:allow_follow, allow_vote:allow_vote, allow_comment:allow_comment} function showFollowBtn( followbtn, status ){ if( status == "follow"){ followbtn.html( res.unfollow_btn ).removeClass("follow").addClass("unfollow"); }else{ followbtn.html( res.follow_btn ).removeClass("unfollow").addClass("follow"); } } function showFollowBtnDom( user_id, status ){ if( status == "follow"){ return '' + res.unfollow_btn + ''; }else{ return '' + res.follow_btn + ''; } } function clickFollowBtn( btn ){ btn = $( btn ); var user_id = btn.attr("user_id"); var src = ""; if( $( btn ).hasClass('follow') ){ showFollowBtn( btn, 'follow' ); src = "https://35photo.pro/api/?method=user.follow&ver=" + ver + "&userId=" + user_id + "&token35="+token35; }else{ showFollowBtn( btn, 'unfollow' ); src = "https://35photo.pro/api/?method=user.follow&ver=" + ver + "&userId=" + user_id + "&unfollow=true" + "&token35="+token35; } console.log( src ); $.getJSON( src ) .done(function( json ) { console.log( "JSON Data Follow: " + json['response'] + ', method: ' + json['data']['method'] ); }) .fail(function( jqxhr, textStatus, error ) { var err = textStatus + ", " + error; console.log( "Request Failed FollowBtn: " + err ); }) } var setLikeDelay = false; function markLike( parent, var_vote ){ var heartBtn = parent.find('.heartBtn'); $( heartBtn ).removeClass( "bi-heart-fill bi-heart" ); if( var_vote && var_vote != 0 ) $( heartBtn ).addClass( "bi-heart-fill" ); else $( heartBtn ).addClass( "bi-heart" ); } function setLike( thisBlock ){ var parent = $(thisBlock).closest('.parentPhoto'); var photo_id = parent.attr('photo-id'); var heartBtn = parent.find('.heartBtn'); var countLikes = parent.find('.countLikes'); if( setLikeDelay == true ){ return false; } if( heartBtn.hasClass( 'bi-heart' ) ){ heartBtn.removeClass( 'bi-heart' ); heartBtn.addClass('bi-heart-fill animate__animated animate__heartBeat animate__repeat-1').on('animationend', function() { $(this).removeClass('animate__animated animate__heartBeat animate__repeat-1'); }); countLikes.html( parseInt( countLikes.html() ) + 1 ); setLikeDelay = true; var src = "https://35photo.pro/api/?method=photo.setLike&photoId=" + photo_id + "&ver=" + ver + "&vote=1&awards=true&token35="+token35; $.getJSON( src ) .done(function( json ) { if( json.data && json.data.err ){ alert( 'Err: ' + data.data.err ); } }) .fail(function( jqxhr, textStatus, error ) { console.log( "Request Failed: " + err ); }) setTimeout(function(){ setLikeDelay = false; }, 1000); }else{ heartBtn.removeClass( 'bi-heart-fill' ); heartBtn.addClass( 'bi-heart' ); countLikes.html( parseInt( countLikes.html() ) - 1 ); setLikeDelay = true; var src = "https://35photo.pro/api/?method=photo.removeLike&photoId=" + photo_id + "&ver=" + ver + "&awards=true&token35="+token35; $.getJSON( src ).done(function( json ) { console.log('- like removed: ' + photo_id ); }); setTimeout(function(){ setLikeDelay = false; }, 1000); } } function getAvatar( user_id ){ return "https://c1.35photo.ru/profile/photos/" + user_id + "_48.jpg"; } function openUserPageLogin( commentLine ){ var user_login = $( commentLine ).closest(".commentLine").attr("user_login"); window.location.href = "https://35awards.com/author/" + user_login + "/"; } function showCommentsPage_item( comm_id, user_id, user_login, user_name, text, timeAdd, can_del, answers = false ){ var src_avatar = getAvatar( user_id ); var comment_html = "
" + "
" + "
" + "" + user_name + " " + timeAdd + " " + "" + text + ""; if(answers && Object.keys(answers).length > 0){ comment_html += "
"; $.each(answers, function(key, answer){ comment_html += showCommentsPage_item(answer.comm_id, answer.user_id, answer.user_login, answer.user_name, answer.text, answer.timeAdd, can_del); }); comment_html += "
"; } comment_html += "
" + "
"; return comment_html; } function createAnswerForm(myData) { var answerForm = $("#commentsPage .answerForm").first().clone(); answerForm.find(".avatarZone img").attr("src", getAvatar(myData.user_id)); answerForm.find(".comment_to_send").attr("placeholder", res.leave_comment); answerForm.find(".btn_send").val(res.send_btn); answerForm.show(); answerForm.css("display","flex"); answerForm.find(".btn_send").on("click", function() { sendComment(this); return false; }); return answerForm; } function delComm( del_el ){ var comm_id = $( del_el ).closest("#actionDropdownComm").attr("comm-id"); // $("#actionDropdownComm").removeClass("open"); $("#actionDropdownComm .dropdown-menu").removeClass("show"); var userConfirmed = confirm("Are you sure?"); if (!userConfirmed) { return; } var src = "https://35photo.pro/api/?method=photo.delComment&commId=" + comm_id + "&ver=" + ver + "&token35="+token35; $.getJSON( src ) .done(function( json ) { }); $("#comm" + comm_id).addClass("animate__animated animate__fadeOutLeft"); setTimeout( function(){ $("#comm" + comm_id).remove(); },500); } var setPhotoFavDelay = false; function markPhotoFav( parent, var_fav ){ var starBtn = parent.find('.starBtn'); $( starBtn ).removeClass( "bi-star-fill bi-star" ); if( var_fav && var_fav != 0 ) $( starBtn ).addClass( "bi-star-fill" ); else $( starBtn ).addClass( "bi-star" ); } function setPhotoFav( thisBlock ){ var parent = $(thisBlock).closest('.parentPhoto'); var photo_id = parent.attr('photo-id'); var pcp_id = parent.attr('pcp-id'); var starBtn = parent.find('.starBtn'); var countPhotoFav = parent.find('.countPhotoFav'); if( setPhotoFavDelay == true ){ return false; } if( starBtn.hasClass( 'bi-star' ) ){ starBtn.removeClass( 'bi-star' ); // starBtn.addClass( 'bi-star-fill' ); $(starBtn).addClass("bi-star-fill animate__animated animate__bounce").on("animationend", function() { $(this).removeClass("animate__animated animate__bounce"); }); countPhotoFav.html( parseInt( countPhotoFav.html() ) + 1 ); setPhotoFavDelay = true; var src = "https://35photo.pro/api/?method=photo.awardsAddFav&photoId=" + photo_id + "&pcpId=" + pcp_id + "&ver=" + ver + "&token35="+token35; $.getJSON( src ) .done(function( json ) { if( json.data && json.data.err ){ alert( 'Err: ' + data.data.err ); } }) .fail(function( jqxhr, textStatus, error ) { console.log( "Request Failed: " + err ); }) setTimeout(function(){ setPhotoFavDelay = false; }, 1000); }else{ starBtn.removeClass( 'bi-star-fill' ); starBtn.addClass( 'bi-star' ); countPhotoFav.html( parseInt( countPhotoFav.html() ) - 1 ); setPhotoFavDelay = true; var src = "https://35photo.pro/api/?method=photo.awardsRemoveFav&photoId=" + photo_id + "&pcpId=" + pcp_id + "&ver=" + ver + "&token35="+token35; $.getJSON( src ).done(function( json ) { console.log('- like removed: ' + photo_id ); }); setTimeout(function(){ setPhotoFavDelay = false; }, 1000); } } function activateCommActions(){ if( option_main["allow_comment"] ){ $(".commentLine .actions:not(.activated)").on("click", function(e) { e.stopPropagation(); $(this).addClass("activated"); actionDropdownComm(this); }).addClass("activated"); } } function showCommentsPage( photo_id ){ $("#commentsPageList").attr("photo-id", photo_id); var src = "https://35photo.pro/api/?method=photo.getComments&ver=" + ver + "&photoId=" + photo_id + "&token35="+token35; $.getJSON( src ) .done(function( json ) { // console.log( "JSON Data showCommentsPage: " + json["response"] + ", method: " + json["data"]["actions"] ); $("#actionsPage").html(""); var json_data = json["data"]["comm"]; var user_photo = json["data"]["photo"]; var dom_actions = ""; $.each( json_data, function( key, value ) { var user_id = value.user_id; var can_del = user_photo.user_id == myData.user_id || user_id == myData.user_id || moderEdit == true ? 1 : 0; dom_actions+= showCommentsPage_item( value.comm_id, user_id, value.user_login, value.user_name, value.text, value.timeAdd, can_del, value.answers ); }); $("#commentsPageList").html( dom_actions ); if( option_main["allow_comment"] ){ var newAnswerForm = createAnswerForm( myData ); $("#commentsPageList").append(newAnswerForm); } activateCommActions(); $.each( $("#commentsZone").find(".commentLine"), function( key, value ){ $( value ).bind("touchstart", function(){ touchComments.startTime = new Date().getTime(); touchComments.touchmove = false; var comm_id = $(this).attr("comm-id"); console.log( "touchstart comm_id: " + comm_id ); touchComments.timer = setTimeout("touchendComm(" + comm_id + "," + photo_id + ")",750); }); $( value ).bind("touchmove", function(){ touchComments.touchmove = true; }); $( value ).bind("touchend", function(){ if( touchComments.timer ) clearTimeout( touchComments.timer ); var comm_id = $(this).attr("comm-id"); touchendComm( comm_id, photo_id ); }); }); }) .fail(function( jqxhr, textStatus, error ) { // showSmallLoading( false ); var err = textStatus + ", " + error; console.log( "Request Failed showCommentsPage() : " + err ); // showAlertMessage("Connection error, check internet availability. #SCP24"); }); } function sendComment( form_btn ){ var form = $( form_btn ).closest(".answerForm"); var text_comment = $( form ).find(".comment_to_send").val(); var photo_id = $("#commentsPageList").attr("photo-id"); var commentTo = "photo_" + photo_id; var reply_id = $( form ).attr("reply-id"); $(".comment_to_send").prop("readonly", true); $(".answerForm .btn_send").prop("disabled", true); $.ajax({ type: "POST", url: "https://35photo.pro/api/?method=photo.sendComment&ver=" + ver + "&browser=true&token35="+token35, data: {commentTo:commentTo, comm_text: text_comment, reply: reply_id }, success: function(response){ $(".comment_to_send").prop("readonly", false); $(".answerForm .btn_send").prop("disabled", false); var data = JSON.parse(response); if( data.data.err ){ if( data.data.err == "quitAccount" ){ // quitAccount( true ); }else{ alert( "Err: " + data.data.err ); } }else{ var new_comment = showCommentsPage_item( data["data"].comm_id, myData.user_id, myData.user_login, myData.user_name, data["data"].text, "now", 1 ); if( data["data"].reply_id > 0 ){ $( form ).remove(); $("#comm" + data["data"].reply_id ).find(".answers").append( new_comment ).find(".answers").hide().fadeIn(1000); }else{ var firstAnswerForm = $("#commentsPageList").children(".answerForm").first(); $( firstAnswerForm ).find(".comment_to_send").val(""); if (firstAnswerForm.length) { firstAnswerForm.before( new_comment ).hide().fadeIn(1000); firstAnswerForm.css("display","flex"); } else { $("#commentsPageList").prepend(new_comment ).hide().fadeIn(1000); } } activateCommActions(); } }, error: function(errMsg) { // showAlertMessage("Connection error, check internet availability. #SC12"); } }); } function activateCommActions(){ if( option_main["allow_comment"] ){ $(".commentLine .actions:not(.activated)").on("click", function(e) { e.stopPropagation(); $(this).addClass("activated"); actionDropdownComm(this); }).addClass("activated"); } } function actionDropdownComm(element) { var $element = $(element); var commentLine = $element.closest(".commentLine"); var position = $( commentLine ).position(); var left = $element.position().left + $(".avatarZone").outerWidth() - $("#actionDropdownComm .dropdown-menu").outerWidth() + 20 if( left < 10 ) left = 10; if( $( commentLine ).attr("can-del") == "false" ){ $("#actionDropdownComm").find(".delete").hide(); $("#actionDropdownComm").find(".block-user").hide(); }else{ $("#actionDropdownComm").find(".delete").show(); $("#actionDropdownComm").find(".block-user").show(); } $("#actionDropdownComm").attr("comm-id", $( commentLine ).attr("comm-id")); $("#actionDropdownComm").attr("user-id", $( commentLine ).attr("user-id")); $("#actionDropdownComm").css({ "top": position.top + $element.outerHeight() + 15, "left": left }); $("#actionDropdownComm .dropdown-menu").addClass("show"); } function replyComm(reply_el) { var comm_id = $("#actionDropdownComm").attr("comm-id"); var commElement = $("#comm" + comm_id); var first_el = $( commElement ).closest(".answers").closest(".commentLine"); if( first_el.length > 0 ){ commElement = first_el; // console.log( comm_id + " -- " + $( commElement ).attr("comm-id") ) comm_id = $( commElement ).attr("comm-id") } var answersDiv = commElement.find(".answers"); if (answersDiv.length === 0) { answersDiv = $("
"); commElement.find(".commentZone:first").append(answersDiv); } var newAnswerForm = answersDiv.find(".answerForm:first") if( answersDiv.find(".answerForm").length === 0 ){ var newAnswerForm = createAnswerForm(myData); answersDiv.append(newAnswerForm); } newAnswerForm.attr("reply-id", comm_id) $(".answers .answerForm").hide(); $(newAnswerForm).show(); $("#actionDropdownComm .dropdown-menu").removeClass("show"); } function blockUser( el ){ var user_id = $( el ).closest("#actionDropdownComm").attr("user-id"); $("#actionDropdownComm .dropdown-menu").removeClass("show"); var userConfirmed = confirm("Are you sure?"); if (!userConfirmed) { return; } var user_comments = $('.row.commentLine[user-id="' + user_id + '"]'); $( user_comments ).addClass("animate__animated animate__fadeOutLeft"); setTimeout( function(){ $( user_comments ).remove(); },500); var src = "https://35photo.pro/api/?method=user.blockUser&user_id_block=" + user_id + "&ver=" + ver + "&token35="+token35; $.getJSON( src ) .done(function( json ) { }) .fail(function( jqxhr, textStatus, error ) { console.log( "Request Failed: " + err ); }) } function clickPhotoFromHash() { const hash = window.location.hash; const match = hash.match(/#lightbox-(\d+)/); if (!match) return; const photoId = match[1]; const $el = $('.openPhoto[photo-id="'+photoId+'"]'); if ($el.length) { $el.eq(0).click(); } } $(document).ready(function() { var currentIndex = -1; var mymap = L.map("mapid").setView([51.505, -0.09], 2); L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', { attribution: '© OpenTopoMap contributors, These pages are current as of 01.01.2022' }).addTo(mymap); var loaderTimeout; $( ".openPhoto" ).each(function(index) { var photo_id = $(this).attr("photo-id"); $( this ).on("click", function(){ currentIndex = index; var src = $(this).attr("href"); var img_fluid = $("#lightboxPhoto").find(".img-fluid"); $(img_fluid).animate({opacity: 0.4}, 50, function() { $( this ).one("load", function() { $( this ).animate({opacity: 1}, 300); }).attr("src", src) }); loaderTimeout = setTimeout(function() { $("#lightboxPhotoLoading").fadeIn(50); }, 500); $("#mapid").fadeOut(); $("#contestList").html( "" ); $("#badgeList").html( "" ); $("#fav_zone").html( "" ); $("#author-info-total").css({ "opacity": ".15", "pointer-events": "none" }); // $( img_fluid ).animate({opacity: 0.2}, 50); $.ajax({ type: "GET", url: "https://35awards.com/author/photodata/?photo_id=" + photo_id + "&return=text", error: function() { clearTimeout(loaderTimeout); $("#lightboxPhotoLoading").fadeOut(300); }, success: function (response) { var data = JSON.parse(response); showCommentsPage(photo_id); var parentPhoto = $("#lightboxPhoto").find(".parentPhoto"); $( parentPhoto ).attr("photo-id", data.photo_id ) $("#photo_id_show").html( "id: " + data.photo_id ); // var originalWidth = parseInt($(img_fluid).css("width"), 10); // var originalHeight = parseInt($(img_fluid).css("height"), 10); if( data.src1500 && src != data.src1500 ){ $( img_fluid ).attr("src", data.src1500); } $("#lightboxPhotoTitle").html( data.photo_title ); if( data.author_link == "#" ){ $("#lightboxPhotoAuthor").html( data.author_name ); }else{ $("#lightboxPhotoAuthor").html( "" + data.author_name + "" ); } $("#lightboxPhotoAuthorImgA").attr("src", data.author_link ); $("#followers_count").html( data.followers ); $("#lightboxPhotoAuthorAva").attr("src", data.author_src ); $("#lightboxPhotoDesc").html( data.photo_desc ); $(parentPhoto).find(".countLikes").html( data.likes ); $(parentPhoto).find(".countPhotoFav").html( data.fav_count ); $(parentPhoto).find(".countPhotoSee").html( data.see ); if( data.allow_follow == "true" && data.user_id != 0 ){ $("#fav_zone").html( showFollowBtnDom( data.user_id, data.fav_author ) ); } var abuseBtn = $("#lightboxPhoto").find(".abuseBtn"); if( data.allow_actions == "true" ){ $("#lightboxPhoto").find(".addToFav").attr("photo-id", data.photo_id ); $( abuseBtn ).attr("photo-id", data.photo_id ); $( abuseBtn ).attr("photo-img", src ); markLike( parentPhoto, data.is_voted ); markPhotoFav( parentPhoto, data.is_photo_fav ); } var badgeList = ""; $.each( data.badges, function( key, value ) { badgeList+= ""; }); $("#badgeList").html( badgeList ); var contestList = ""; var i = 0; $.each( data.contests, function( key, value ) { if( i == 0 ){ $( parentPhoto ).attr("pcp-id", value.pcp_Id ); $( abuseBtn ).attr("pcp-id", value.pcp_Id ); $( abuseBtn ).attr("community-id", value.contest_id ); $( abuseBtn ).attr("under-id", value.under_id ); } if( value.under_title ){ contestList+= "" + value.under_title + "
" + value.name + "
" + ( value.badge ? value.badge : "" ); }else{ contestList+= "" + value.name + "" + (value.badge ? value.badge : ""); } i++; }); contestList = "" + contestList + "
"; $("#contestList").html( contestList ); if( data.cor ){ $("#mapid").fadeIn(0); var marker_location = L.marker([data.cor.lat, data.cor.lng]).addTo(mymap); mymap.setView([data.cor.lat, data.cor.lng], data.cor.z); $("#mapid").off("click"); $("#mapid").on("click", function() { var href = `https://35awards.com/map/#lt=${data.cor.lat}&ln=${data.cor.lng}&z=11`; window.open(href, "_blank"); }); } $("#author-info-total").animate({opacity: 1}, 300).css({"pointer-events": "auto"}); clearTimeout(loaderTimeout); $("#lightboxPhotoLoading").fadeOut(300); } }) $("#lightboxPhoto").fadeIn(300); $("body").css("overflow", "hidden"); return false; }); }); function closeLightbox() { $("#lightboxPhoto").fadeOut(300); $("body").css("overflow", "auto"); $("#actionDropdownComm .dropdown-menu").removeClass("show"); } $("#lightboxPhoto").find(".closeGrid").on("click", closeLightbox); $("#lightboxPhoto").on("click", closeLightbox); $("#lightboxPhoto .img-container, #lightboxPhoto .info-container, .statsCollapse").parent().on("click", function(event){ if (!$(event.target).closest("#actionDropdownComm").length && !$(event.target).is(".fa-ellipsis-h.actions")) { $("#actionDropdownComm .dropdown-menu").removeClass("show"); } event.stopPropagation(); }); $(document).on("keydown", function(event) { if (event.keyCode === 27) { closeLightbox(); } }); $("#lightboxPhoto").fadeOut(0); $("#lightboxPhoto").on("hide", function () { $("body").css("overflow", "auto"); }); setTimeout(clickPhotoFromHash, 200); $(document).on("keydown", function(event) { var nextIndex = -1; if (event.keyCode === 39 || event.keyCode === 40) { nextIndex = currentIndex + 1; if (nextIndex < $(".openPhoto").length) { $(".openPhoto").eq(nextIndex).click(); } } else if (event.keyCode === 37 || event.keyCode === 38) { nextIndex = currentIndex - 1; if (nextIndex >= 0) { $(".openPhoto").eq(nextIndex).click(); } } }); }); function abuse_close_block(){ $( "#other_desc" ).val(""); $( "#other_desc_block" ).fadeOut(0); $( "#abuse_bg" ).fadeOut(0); $( "html" ).css("overflow","auto"); no_read_keyboard = false; } function abuse_show_block( thiso ){ no_read_keyboard = true; var photoId = $( thiso ).attr("photo-id"); var photoImgSrc = $( thiso ).attr("photo-img"); var pcp_Id = $( thiso ).attr("pcp-id"); var community_id = $( thiso ).attr("community-id"); var under_id = $( thiso ).attr("under-id"); $("#abuse_modal_other_img").attr("src",photoImgSrc); $("#abuse_photo_id").val(photoId); $("#abuse_pcp_id").val(pcp_Id); $("#abuse_community_id").val(community_id); $("#abuse_under_id").val(under_id); $( "#select_abuse_block_sending").fadeOut(0); $("#abuse_bg").fadeIn(500); $( "html" ).css("overflow","hidden"); } function abuse_block_send2( thiso, abuse ){ var photoId = $( "#abuse_photo_id" ).val(); var community_id = $( "#abuse_community_id" ).val(); var under_id = $( "#abuse_under_id" ).val(); var pcp_Id = $( "#abuse_pcp_id" ).val(); var other_desc = $( "#other_desc" ).val(); $( "#other_desc" ).val(""); $( "#select_abuse_block").fadeOut(0); $( "#select_abuse_block_sending").fadeIn(); $( thiso ).parents(".abuseBlock").find(".abuseResults").html( loading ).fadeIn(350); $( thiso ).parents(".abuseButtons").fadeOut(0); $.ajax({ type: "POST", url: "/show_block.php?type=photoClass&type2=abuse&abuse=" + abuse, data: {community_id:community_id, under_id:under_id, photoId:photoId, pcp_id:pcp_Id, other_desc:other_desc}, success: function (response) { var data = JSON.parse(response); showAlert( data.data.text ); $('#my_abuse_sent').html( data.data.abuse_data['var_0'] ); $('#my_abuse_confirmed').html( data.data.abuse_data['var_1']); abuse_close_block();$( "#select_abuse_block").fadeIn(0); $( "#select_abuse_block_sending").fadeOut(0); } }); } function add_to_fav2( thiso ){ var photoId = $( thiso ).attr("photo-id"); var under_id = $( thiso ).attr("under-id"); var pcp_Id = $( thiso ).attr("pcp-id"); $( thiso ).parents(".abuseBlock").find(".abuseResults").html( loading ).fadeIn(350); $( thiso ).parents(".abuseButtons").fadeOut(0); $.ajax({ type: "GET", url: "/show_block.php", data: "type=awardsClass&type2=awardsClass&under_id=" + under_id + "&photoId=" + photoId + "&pcp_id=" + pcp_Id, success: function response_under_photo(response) { $( thiso ).parents(".abuseBlock").find(".abuseResults").html( response ).fadeIn(350); } }); } $(".stopZone").click(function(e) { e.stopPropagation(); }); document.addEventListener('click', function(e){ var el = e.target.closest('.go'); if(!el) return; var url = el.getAttribute('data-href'); if(!url) return; window.location.href = url; });