Blog

Story from us


Duis aute irure dolor reprehenderit

Юридические консультации адвокатов

var followers_page_count=1;var following_page_count=1;var activity_stream_page_count=2;var user_activity_page_count=1;var selected_tab="";var notifications_page=1;var social_loading_gif_html=` `+pm_lang.please_wait+" ";$(document).ready(function(){var a=false;$(" notification_counter").click(function(b){if($(" notification_temporary_display_container").html().length>0){$(" notification_temporary_display_container").html("").hide();a=false;return false}$(" notification_temporary_display_container").fadeIn();notifications_page=1;notification_load_more();a=true;b.stopPropagation();return false});$(document).click(function(){if(a){$(" notification_temporary_display_container").html("").hide()}});$(`a[data-toggle="tab"]`).on("show",function(b){$.waypoints().each(function(){$(this).waypoint("destroy")})});$(`a[data-toggle="tab"]`).on("shown",function(c){var b=String(c.target);var d=b.split(" ");selected_tab=d[1];if(d[1]=="pm-pro-followers"){if(followers_page_count==1){follow_load_more("getfollowers")}else{bind_waypoint("btn_follow_load_more",{offset:"110%",triggerOnce:true},function(){follow_load_more("getfollowers");return false})}}if(d[1]=="pm-pro-following"){if(following_page_count==1){follow_load_more("getfollowing")}else{bind_waypoint("btn_follow_load_more",{offset:"110%",triggerOnce:true},function(){follow_load_more("getfollowing");return false})}}if(d[1]=="pm-pro-activity-stream"){bind_waypoint("btn_activity_stream_load_more",{offset:"110%",triggerOnce:true},function(){activity_stream_load_more()})}if(d[1]=="pm-pro-user-activity"){if(user_activity_page_count==1){user_activity_load_more()}else{bind_waypoint("btn_follow_load_more",{offset:"110%",triggerOnce:true},function(){user_activity_load_more();return false})}}});bind_follow_actions();bind_user_activity_actions();bind_waypoint("btn_activity_stream_load_more",{offset:"110%",triggerOnce:true},function(){activity_stream_load_more()})});function notification_load_more(){if(notifications_page==1){$(" notification_temporary_display_container").append(social_loading_gif_html)}else{$(" notification_temporary_display_container btn_notifications_load_more").replaceWith(social_loading_gif_html)}$.ajax({type:"GET",url:MELODYURL2+"/ajax.php",dataType:"html",data:{p:"profile","do":"load-notifications",uid:$(`input[name="profile_user_id"]`).val(),page:notifications_page},dataType:"html",success:function(a){$(" notification_temporary_display_container loading").remove();if(notifications_page==1){$(" notification_temporary_display_container").html(a)}else{$(" notification_temporary_display_container").append(a)}notifications_page++;bind_waypoint("btn_notifications_load_more",{context:" notification_temporary_display_container",offset:"110%",triggerOnce:true},function(){notification_load_more();return false})}});return false}function bind_waypoint(a,b,d){var c=false;$.waypoints().each(function(){if($(this).attr("id")==a){c=true}});if(!c){$(" "+a).waypoint(function(){if(d&&typeof(d)==="function"){d()}},b)}return false}function bind_user_activity_actions(){$(`[id^="hide-activity-"]`).unbind("click");$(`[id^="hide-activity-"]`).click(function(){var a=$(this).attr("id").match(/d+/);if(!a){return false}$.ajax({type:"GET",url:MELODYURL2+"/ajax.php",data:{p:"profile","do":"user-activity-hide",uid:$(`input[name="profile_user_id"]`).val(),activity_id:a[0]},dataType:"html",success:function(b){$(" activity-"+a[0]).fadeOut();return false}});return false})}function user_activity_load_more(){if(user_activity_page_count==1){$(" pm-pro-user-activity-content").append(social_loading_gif_html)}else{$(" pm-pro-user-activity-content btn_user_activity_load_more").replaceWith(social_loading_gif_html)}$.ajax({type:"GET",url:MELODYURL2+"/ajax.php",data:{p:"profile","do":"user-activity",uid:$(`input[name="profile_user_id"]`).val(),page:user_activity_page_count},dataType:"html",success:function(a){$(" pm-pro-user-activity-content loading").