Added the project's files to the repo
This commit is contained in:
16
assets/coffee/modules/alert-box.coffee
Executable file
16
assets/coffee/modules/alert-box.coffee
Executable file
@ -0,0 +1,16 @@
|
||||
(($) ->
|
||||
|
||||
$.fn.alert = ->
|
||||
@each ->
|
||||
self = $(this)
|
||||
self.on 'click', '.close-button', (e) ->
|
||||
e.preventDefault()
|
||||
self.addClass 'close'
|
||||
return
|
||||
self.on 'transitionEnd webkitTransitionEnd oTransitionEnd', ->
|
||||
self.remove()
|
||||
return
|
||||
return
|
||||
|
||||
return
|
||||
) jQuery
|
20
assets/coffee/modules/awesome-form.coffee
Executable file
20
assets/coffee/modules/awesome-form.coffee
Executable file
@ -0,0 +1,20 @@
|
||||
$ ->
|
||||
awesomeInput = '.awesome-form .input-group input'
|
||||
|
||||
checkInput = (elem) ->
|
||||
text_val = $(elem).val()
|
||||
if text_val == ''
|
||||
$(elem).removeClass 'has-value'
|
||||
else
|
||||
$(elem).addClass 'has-value'
|
||||
return
|
||||
|
||||
$(awesomeInput).focusout ->
|
||||
checkInput(@)
|
||||
return
|
||||
|
||||
$(awesomeInput).on 'change', ->
|
||||
checkInput(@)
|
||||
return
|
||||
|
||||
return
|
Reference in New Issue
Block a user