');
},
error: function (jqXHR, textStatus, errorThrown) {
$('#custom-loader-messages .errors', parentComponent).append(errorThrown);
},
success: function (data, textStatus, jqXHR) {
if (data.status == 'success') {
if (clearMessages) {
messageTarget.empty();
}
if (data.messages.length > 0) {
messageTarget.append(data.messages);
} else {
if (clearMessages) {
messageTarget.append('No posts to display.
');
}
}
if (data.EOR == 'true') {
$('#custom-loader-button').addClass('disabled');
} else {
$('#custom-loader-button').removeClass('disabled');
}
} else {
$('#custom-loader-messages .errors', parentComponent).append(data.message);
}
},
complete: function(jqXHR, textStatus) {
$('.spinner', spinnerTarget).remove();
}
});
};
$('#community-activity-sorted-by').change(function() {
$('.tablinks[data-value="'+$(this).val()+'"]').addClass('active').siblings('.tablinks').removeClass('active');
var messageTarget = $('#custom-loader .message-list');
messageTarget.attr('data-attrib-message-list-type', $(this).val());
$(messageTarget).attr('data-attrib-current-page', '0');
getMessages($('#custom-loader'), true);
});
$('#custom-loader-button').click( function(evt) {
evt.preventDefault();
if ($(this).hasClass('disabled')) {
return;
}
var currentPage = null;
var messageTarget = $('#custom-loader .message-list');
try {
currentPage = parseInt($(messageTarget).attr('data-attrib-current-page'), 10);
} catch (e) {
currentPage = 0;
}
$(messageTarget).attr('data-attrib-current-page', (currentPage + 1));
getMessages($('#custom-loader-button'), false);
});
$('.tablinks').click(function(evt) {
evt.preventDefault();
var listType=$(this).attr('data-value');
$(this).addClass('active').siblings('.tablinks').removeClass('active');
$('#community-activity-sorted-by').val(listType);
var messageTarget = $('#custom-loader .message-list');
messageTarget.attr('data-attrib-message-list-type', listType);
$(messageTarget).attr('data-attrib-current-page', '0');
getMessages($('#custom-loader'), true);
});
});
})(LITHIUM.jQuery);
;(function ($) {
$(document).ready(function() {
var user_locale = 'en';
// Load correct language in footer language selector
var temp_lang = $('.language-dropdown').find('[data-locale="' + user_locale + '"]');
if (!$(temp_lang).hasClass('active-lang')) {
setActiveLang();
}
// Handle new language selection in footer
$('.language-dropdown > li').click(function(e) {
var new_locale = $(this).data().locale;
if (new_locale != current_locale) {
if (!true) {
$.ajax({
type: "POST",
async: false,
url: "/plugins/custom/zoom/zoom/custom.zoom-set-language" + "?language=" + new_locale ,
error: function (error) {
console.log("error", error);
},
success: function(data) {
console.log(data);
setActiveLang();
window.location.reload();
}
});
} else {
// URL parameter
var wlocation = new URL(window.location);
wlocation.searchParams.set('profile.language', new_locale);
setActiveLang();
window.location = wlocation.href;
}
}
});
function setActiveLang() {
$('.active-lang').removeClass('active-lang');
$(temp_lang).addClass('active-lang');
$('.current-lang').html($(temp_lang).html());
}
});
})(LITHIUM.jQuery);
;(function($) {
function makeid() {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i 0) {
return;
}
if (userLinkElement.hasClass("disable-hovercard")) {
return;
}
var userId = userLinkElement.attr('href').substring(userLinkElement.attr('href').lastIndexOf("/")+1, userLinkElement.attr('href').length);
var currentPage = 'CommunityPage';
var currentPageUrl = "";
if (currentPage == 'ViewProfilePage') {
currentPageUrl = $(location).attr('href');
var profilePageUserId = currentPageUrl.substring(currentPageUrl.lastIndexOf("/")+1, currentPageUrl.length);
if (userId == profilePageUserId) {
return;
}
}
evt.preventDefault();
evt.stopPropagation();
$('.hc-user-profile').removeClass('hc-animate-in hc-is-shown');
if ($('.hc-user-profile', userLinkElement).length > 0) {
$('.hc-user-profile', userLinkElement).addClass('hc-animate-in hc-is-shown');
return;
}
var unqId = makeid();
var usernameLink = userLinkElement.attr('href');
var divContainer = $('');
var divContainerDefault = '';
userLinkElement.append(divContainer);
$(divContainer).addClass('hc-animate-in hc-is-shown');
$.ajax({
url: '/plugins/custom/zoom/zoom/custom.profile-card',
type: 'post',
dataType: 'html',
data: {"userId": userId, "unqId": unqId},
beforeSend: function() {},
success: function(data) {
$('.info-container', divContainer).append(data);
},
error: function(error) {
console.log('error:', error);
$('.info-container', divContainer).append(divContainerDefault);
},
complete: function() {
$('.spinner', divContainer).remove();
}
});
}
$(document).ready(function () {
if ('CommunityPage' == 'ViewProfilePage') {
$('.custom-profile-activity').on('DOMSubtreeModified', function(e) {
if ($(e.target).is('div.lia-user-messages.custom-profile-activity-posts')) {
$('a.lia-link-navigation.lia-page-link.lia-user-name-link').on('mouseenter', function(evt) {
displayProfileCard($(this),evt);
}).on('mouseleave',function() {
$('.hc-user-profile').removeClass('hc-animate-in hc-is-shown');
});
}
});
}
$('.custom-community-activity').on('DOMSubtreeModified', function(e) {
if ($(e.target).is('div.message-list')) {
$('a.lia-link-navigation.lia-page-link.lia-user-name-link').on('mouseenter',function(evt) {
displayProfileCard($(this),evt);
}).on('mouseleave',function() {
$('.hc-user-profile').removeClass('hc-animate-in hc-is-shown');
});
}
});
$('a.lia-link-navigation.lia-page-link.lia-user-name-link, .UserAvatarName.lia-link-navigation').on('mouseenter', function(evt) {
displayProfileCard($(this),evt);
}).on('mouseleave',function() {
$('.hc-user-profile').removeClass('hc-animate-in hc-is-shown');
});
});
})(LITHIUM.jQuery);
LITHIUM.PartialRenderProxy({"limuirsComponentRenderedEvent":"LITHIUM:limuirsComponentRendered","relayEvent":"LITHIUM:partialRenderProxyRelay","listenerEvent":"LITHIUM:partialRenderProxy"});
LITHIUM.AjaxSupport({"ajaxOptionsParam":{"event":"LITHIUM:partialRenderProxyRelay","parameters":{"javascript.ignore_combine_and_minify":"true"}},"tokenId":"ajax","elementSelector":document,"action":"partialRenderProxyRelay","feedbackSelector":false,"url":"https://community.zoom.com/t5/community/page.liabase.basebody.partialrenderproxy:partialrenderproxyrelay","ajaxErrorEventName":"LITHIUM:ajaxError","token":"9TdymXyIkmM2B0iLfjghIWIIMa6h6y8m3u1XoKlwpZM."});
LITHIUM.Auth.API_URL = "/t5/util/authcheckpage";
LITHIUM.Auth.LOGIN_URL_TMPL = "https://zoom.us/community/sso?referer=https%3A%2F%2FREPLACE_TEXT";
LITHIUM.Auth.KEEP_ALIVE_URL = "/t5/status/blankpage?keepalive";
LITHIUM.Auth.KEEP_ALIVE_TIME = 300000;
LITHIUM.Auth.CHECK_SESSION_TOKEN = 'VIldMjn4fUh_keJoKJLmz38zJnI6IpplBPEj97P1lzQ.';
LITHIUM.AjaxSupport.useTickets = false;
LITHIUM.Loader.runJsAttached();
});
// -->