| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/blog/components/com_kunena/template/crypsis/assets/js/ |
Upload File : |
/**
* Kunena Component
* @package Kunena.Template.Crypsis
*
* @copyright (C) 2008 - 2018 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
jQuery(document).ready(function ($) {
/* To hide or open spoiler on click */
$('.kspoiler').each(function( index ) {
$( this ).click(function() {
if ( !$(this).find('.kspoiler-content').is(':visible') ) {
$(this).find('.kspoiler-content').show();
$(this).find('.kspoiler-expand').hide();
$(this).find('.kspoiler-hide').show();
} else {
$(this).find('.kspoiler-content').hide();
$(this).find('.kspoiler-expand').show();
$(this).find('.kspoiler-hide').hide();
}
});
});
/* To allow to close or open the quick-reply modal box */
$('.openmodal').click(function () {
var boxToOpen = $(this).attr('href');
$(boxToOpen).css('visibility', 'visible');
});
$('[id^="login-link"]').click(function() {
$(this).ready(function () {
if ($('#userdropdown').is(":visible")) {
$(this).addClass('kdelay');
}
else {
$('#userdropdown').css('display', 'inline-block');
$('#userdropdown').css('visibility', 'visible').delay(500).queue(function () {
$(this).addClass('kdelay');
});
}
});
});
$(document).click(function() {
$('.kdelay').css('display', 'none').removeClass('kdelay');
});
$('#userdropdown').click(function(e){
e.stopPropagation();
});
/* Button to show more info on profilebox */
$(".heading").click(function () {
if (!$(this).hasClass('heading-less')) {
$(this).prev(".heading").show();
$(this).hide();
$(this).next(".content").slideToggle(500);
} else {
var content = $(this).next(".heading").show();
$(this).hide();
content.next(".content").slideToggle(500);
}
});
/* On moderate page display subject or field to enter manually the topic ID */
$('#kmod_topics').change(function () {
var id_item_selected = $(this).val();
if (id_item_selected != 0) {
$('#kmod_subject').hide();
} else {
$('#kmod_subject').show();
}
if (id_item_selected == -1) {
$('#kmod_targetid').show();
} else {
$('#kmod_targetid').hide();
}
});
if ($.fn.jsSocials != undefined) {
$("#share").jsSocials({
showCount: true,
showLabel: true,
shares: [
{
share: "email",
label: Joomla.JText._('COM_KUNENA_SOCIAL_EMAIL_LABEL')
},
{
share: "twitter",
label: Joomla.JText._('COM_KUNENA_SOCIAL_TWITTER_LABEL')
},
{
share: "facebook",
label: Joomla.JText._('COM_KUNENA_SOCIAL_FACEBOOK_LABEL')
},
{
share: "googleplus",
label: Joomla.JText._('COM_KUNENA_SOCIAL_GOOGLEPLUS_LABEL')
},
{
share: "linkedin",
label: Joomla.JText._('COM_KUNENA_SOCIAL_LINKEDIN_LABEL')
}, {
share: "pinterest",
label: Joomla.JText._('COM_KUNENA_SOCIAL_PINTEREST_LABEL')
},
{
share: "stumbleupon",
label: Joomla.JText._('COM_KUNENA_SOCIAL_STUMBLEUPON_LABEL')
},
{
share: "whatsapp",
label: Joomla.JText._('COM_KUNENA_SOCIAL_WHATSAPP_LABEL')
}]
});
$('.jssocials-share-whatsapp').addClass('visible-phone');
}
$('#kmod_categories').change(function () {
$.getJSON(
kunena_url_ajax, {catid: $(this).val()}
).done(function (json) {
var first_item = $('#kmod_topics option:nth(0)').clone();
var second_item = $('#kmod_topics option:nth(1)').clone();
$('#kmod_topics').empty();
first_item.appendTo('#kmod_topics');
second_item.appendTo('#kmod_topics');
$.each(json, function (index, object) {
$.each(object, function (key, element) {
$('#kmod_topics').append('<option value="' + element['id'] + '">' + element['subject'] + '</option>');
});
});
});
});
});