Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hoodie.js Introduction – Salzburg Web Dev Meetup

Hoodie.js Introduction – Salzburg Web Dev Meetup

These are the slides for a Hoodie.js Introduction I gave at the Salzburg Web Dev Meetup.

http://hood.ie/
http://www.meetup.com/salzburgwebdev/events/176014522/
http://lanyrd.com/2014/barcamp-salzburg-june/sczxqg/

Stephan Bönnemann

June 17, 2014
Tweet

More Decks by Stephan Bönnemann

Other Decks in Programming

Transcript

  1. $('#signUpForm').submit(function (event) { event.preventDefault() var username = $('#signUpUsername').val() var password

    = $('#signUpPassword').val() hoodie.account.signUp(username, password) .done(sayThanks) .fail(showError) })
  2. /*$('#signUpForm').submit(function (event) { event.preventDefault() var username = $('#signUpUsername').val() var password

    = $('#signUpPassword').val()*/ hoodie.account.signUp(username, password) /*.done(sayThanks) .fail(showError) })*/
  3. $('#shareBtn').click(function () { var recipient = prompt('Who would you like

    to send your drawing to?') if (recipient) { hoodie.email.send({ to: recipient, subject: 'I drew a thing!', body: 'Made with hoodie-drawing', attachments: [ getDrawing('drawing.png') ] }) } })
  4. /*$('#shareBtn').click(function () { var recipient = prompt('Who would you like

    to send your drawing to?') if (recipient) {*/ hoodie.email.send({ to: recipient, subject: 'I drew a thing!', body: 'Made with hoodie-drawing', attachments: [ getDrawing('drawing.png') ] }) /*} })*/