Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/ecom1.picotech.app/public_html_ecom1/public/frontend/assets/js/ drwxr-xr-x |
Viewing file: Select action/file-type: 'use strict'; /*Toggle dropdown list*/ /*https://gist.github.com/slavapas/593e8e50cf4cc16ac972afcbad4f70c8*/ var userMenuDiv = document.getElementById("userMenu"); var userMenu = document.getElementById("userButton"); document.onclick = check; function check(e) { var target = (e && e.target) || (event && event.srcElement); //User Menu if (!checkParent(target, userMenuDiv) && userMenuDiv != null) { // click NOT on the menu if (checkParent(target, userMenu)) { // click on the link if (userMenuDiv.classList.contains("invisible")) { userMenuDiv.classList.remove("invisible"); } else { userMenuDiv.classList.add("invisible"); } } else { // click both outside link and outside menu, hide menu userMenuDiv.classList.add("invisible"); } } } function checkParent(t, elm) { while (t.parentNode) { if (t == elm) { return true; } t = t.parentNode; } return false; } /*Dropdown Menu*/ $(document).on('click', '.dropdown', function() { $(this).attr('tabindex', 1).focus(); $(this).toggleClass('active'); $(this).find('.dropdown-menu').slideToggle(300); }); $(document).on('focusout', '.dropdown', function() { $(this).removeClass('active'); $(this).find('.dropdown-menu').slideUp(300); }); $(document).on('click', '.dropdown .dropdown-menu li', function() { $(this).parents('.dropdown').find('').text($(this).text()); $(this).parents('.dropdown').find('input').attr('value', $(this).attr('id')); }); /*End Dropdown Menu*/ $(document).on('click', '.dropdown-menu li', function() { let parent = getDropdoenParent(this) var input = '' + $(parent).find('input').val() + '', msg = '<span class="msg"> '; $(parent).find(".msg").html(msg + input + '</span>'); }); function getDropdoenParent(child){ return child.closest(".dropdown") } if ($('.main-body .page-wrapper').find('#checkout-container').length){ $(".payment-product").click(function () { $(".payment-product").removeClass("unselected"); $(".payment-product").removeClass("selected"); $(this).addClass("selected").siblings().addClass("unselected"); }); // accordion js document.addEventListener('alpine:init', () => { Alpine.store('accordion', { tab: 0 }); Alpine.data('accordion', (idx) => ({ init() { this.idx = idx; }, idx: -1, handleClick() { this.$store.accordion.tab = this.$store.accordion.tab === this.idx ? 0 : this.idx; }, handleRotate() { return this.$store.accordion.tab === this.idx ? 'rotate-180' : ''; }, handleToggle() { return this.$store.accordion.tab === this.idx ? `max-height: ${this.$refs.tab.scrollHeight}px` : ''; } })); }) } $(document).ready(function(){ $('.test-click').click(function(event){ event.stopPropagation(); $(".test-drop").slideToggle(200); }); $(".test-drop").on("click", function (event) { event.stopPropagation(); }); }); $(document).on("click", function () { $(".test-drop").hide(); }); if (language_direction == 'rtl'){ document.documentElement.dir = 'rtl'; } |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0037 ]-- |