����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.20.240.115
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/greatlifehub.ng/glfiles.name.ng/app/assets/admin/vendors/starrr/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/greatlifehub.ng/glfiles.name.ng/app/assets/admin/vendors/starrr/src/starrr.coffee
(($, window) ->

  window.Starrr = class Starrr
    defaults:
      rating: undefined
      max: 5
      readOnly: false
      emptyClass: 'fa fa-star-o'
      fullClass: 'fa fa-star'
      change: (e, value) ->

    constructor: ($el, options) ->
      @options = $.extend({}, @defaults, options)
      @$el = $el
      @createStars()
      @syncRating()

      return if @options.readOnly

      @$el.on 'mouseover.starrr', 'a', (e) =>
        @syncRating(@getStars().index(e.currentTarget) + 1)

      @$el.on 'mouseout.starrr', =>
        @syncRating()

      @$el.on 'click.starrr', 'a', (e) =>
        e.preventDefault()
        @setRating(@getStars().index(e.currentTarget) + 1)

      @$el.on 'starrr:change', @options.change

    getStars: ->
      @$el.find('a')

    createStars: ->
      @$el.append("<a href='#' />") for [1..@options.max]

    setRating: (rating) ->
      rating = undefined if @options.rating == rating
      @options.rating = rating
      @syncRating()
      @$el.trigger('starrr:change', rating)

    getRating: ->
      @options.rating

    syncRating: (rating) ->
      rating ||= @options.rating
      $stars = @getStars()
      for i in [1..@options.max]
        $stars.
          eq(i - 1).
          removeClass(if rating >= i then @options.emptyClass else @options.fullClass).
          addClass(if rating >= i then @options.fullClass else @options.emptyClass)

  # Define the plugin
  $.fn.extend starrr: (option, args...) ->
    @each ->
      data = $(@).data('starrr')

      if !data
        $(@).data 'starrr', (data = new Starrr($(@), option))
      if typeof option == 'string'
        data[option].apply(data, args)

) window.jQuery, window

Youez - 2016 - github.com/yon3zu
LinuXploit