!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/node_modules/jsvectormap/src/js/core/   drwxrwxr-x
Free 13.02 GB of 57.97 GB (22.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     handleElementEvents.js (2.57 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import { getElement } from '../util/index'
import EventHandler from '../eventHandler'

function parseEvent(map, selector, isTooltip) {
  var ele = getElement(selector),
    elClassList = ele.getAttribute('class'),
    type = elClassList.indexOf('jvm-region') === -1 ? 'marker' : 'region',
    code = type === 'region' ? ele.getAttribute('data-code') : ele.getAttribute('data-index'),
    event = `${type}:selected`

  // Init tooltip event
  if (isTooltip) {
    event = `${type}.tooltip:show`
  }

  return {
    event,
    type,
    code,
    element: type === 'region' ? map.regions[code].element : map.markers[code].element,
    tooltipText: type === 'region' ? map.mapData.paths[code].name || '' : (map.markers[code].config.name || '')
  }
}

export default function handleElementEvents() {
  const map = this, container = this.container

  // When the mouse is pressed
  EventHandler.delegate(container, 'mousedown', '.jvm-element', () => {
    this.isBeingDragged = false
  })

  // When the mouse is over the region/marker | When the mouse is out the region/marker
  EventHandler.delegate(container, 'mouseover mouseout', '.jvm-element', function (event) {
    const data = parseEvent(map, this, true)
    const showTooltip = map.params.showTooltip

    if (event.type === 'mouseover') {
      const defaultPrevented = event.defaultPrevented

      if (!defaultPrevented) {
        data.element.hover(true)

        if (showTooltip) {
          map.tooltip.text(data.tooltipText)
          map.tooltip.show()
          map.emit(data.event, [map.tooltip, data.code])
        }
      }
    } else {
      data.element.hover(false)

      if (showTooltip) {
        map.tooltip.hide()
      }
    }
  })

  // When the click is released
  EventHandler.delegate(container, 'mouseup', '.jvm-element', function (event) {
    const data = parseEvent(map, this)

    if (map.isBeingDragged || event.defaultPrevented) {
      return
    }

    if (
      (data.type === 'region' && map.params.regionsSelectable) ||
      (data.type === 'marker' && map.params.markersSelectable)
    ) {
      const ele = data.element

      // We're checking if regions/markers|SelectableOne option is presented
      if (map.params[`${data.type}sSelectableOne`]) {
        map.clearSelected(`${data.type}s`)
      }

      if (data.element.isSelected) {
        ele.select(false)
      } else {
        ele.select(true)
      }

      map.emit(data.event, [
        data.code,
        ele.isSelected,
        map.getSelected(`${data.type}s`)
      ])
    }
  })
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--