| 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/awebpaca/blog/media/system/js/ |
Upload File : |
/**
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Keepalive javascript behavior
*
* Used for keeping the session alive
*
* @package Joomla
* @since 3.7.0
*/
!(function(){
'use strict';
document.addEventListener('DOMContentLoaded', function() {
var keepaliveOptions = Joomla.getOptions('system.keepalive'),
keepaliveUri = keepaliveOptions && keepaliveOptions.uri ? keepaliveOptions.uri.replace(/&/g, '&') : '',
keepaliveInterval = keepaliveOptions && keepaliveOptions.interval ? keepaliveOptions.interval : 45 * 1000;
// Fallback in case no keepalive uri was found.
if (keepaliveUri === '')
{
var systemPaths = Joomla.getOptions('system.paths');
keepaliveUri = (systemPaths ? systemPaths.root + '/index.php' : window.location.pathname) + '?option=com_ajax&format=json';
}
window.setInterval(function() {
Joomla.request({
url: keepaliveUri,
onSuccess: function(response, xhr)
{
// Do nothing
},
onError: function(xhr)
{
// Do nothing
}
});
}, keepaliveInterval);
});
})(window, document, Joomla);