8 lines
186 B
CoffeeScript
8 lines
186 B
CoffeeScript
Flowerbox =
|
|
baseUrl: '/'
|
|
contact: (url, data...) ->
|
|
xhr = new XMLHttpRequest()
|
|
xhr.open("POST", Flowerbox.baseUrl + url, false)
|
|
xhr.send(JSON.stringify(data))
|
|
fail: ->
|