Added the project's files to the repo
This commit is contained in:
9
assets/coffee/bit.coffee
Executable file
9
assets/coffee/bit.coffee
Executable file
@ -0,0 +1,9 @@
|
||||
$ ->
|
||||
$.get 'https://api.bandsintown.com/artists/Skrillex/events.json?', {
|
||||
'api_version': '2.0'
|
||||
'app_id': 'shows_halftoneband.com'
|
||||
}, (data) ->
|
||||
alert data
|
||||
return
|
||||
|
||||
return
|
2
assets/coffee/main.coffee
Executable file
2
assets/coffee/main.coffee
Executable file
@ -0,0 +1,2 @@
|
||||
$(document).ready ->
|
||||
console.log 'Hey there, lad!'
|
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