⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.97
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
js
/
Edit File: stripe.js
/** * Javascript code for finding all tables with classname "striped" and * dynamically striping their row colors. * * @author Chuck Hagenbuch <chuck@horde.org> * @author Matt Warden <mwarden@gmail.com> * @copyright 2014-2015 Horde LLC * @license LGPL-2 (http://www.horde.org/licenses/lgpl) */ window.Horde = window.Horde || {}; Horde.stripeAllElements = function() { $$('.striped').each(this.stripeElement.bind(this)); }; Horde.stripeElement = function(elt) { var classes = [ 'rowEven', 'rowOdd' ], e = $(elt).childElements(), i = 0; if (elt.tagName == 'TABLE') { // Tables can have more than one tbody element; get all child // tbody tags and interate through them. e.each(function(child) { child.childElements().each(function(c) { c.removeClassName(classes[i % 2]).addClassName(classes[++i % 2]); }); }); } else { // Toggle the classname of any child node that is an element. e.each(function(c) { c.removeClassName(classes[i % 2]).addClassName(classes[++i % 2]); }); } }; /* We have to wait for the full DOM to be loaded to ensure we don't * miss anything. */ document.observe('dom:loaded', Horde.stripeAllElements.bind(Horde));
Simpan