Skip to content

Instantly share code, notes, and snippets.

@mattswann
Last active August 29, 2015 14:17
Show Gist options
  • Save mattswann/057702e3cc3a9d1564bb to your computer and use it in GitHub Desktop.
Save mattswann/057702e3cc3a9d1564bb to your computer and use it in GitHub Desktop.
PaddyWarmup

##Talk to paddy


#####Setup

  1. Create a paddy.js file
  2. Create a paddy.css file
  3. Create a paddy.html file

#####Paddy

You're out enjoying a few green beers when you bump into Paddy in a bar. Write a JS program in paddy.js that takes input from an id='question' input box and returns Paddy's reply in a new <div>

Say 'Happy St Patrick's' and Paddy replies 'tildlely de, potatoes'

Ask him 'Do you want a pint of Guinness?' Paddy's had a pint or two and the Irish band is really loud so you might need to shout twice and he'll reply 'Just the luck of the Irish.'

Then say to him 'Paddy, it's your round.' and he'll reply 'Look, Leprechaun!'

####Extension


Use your CSS file to make it look pretty and add some animation to a shamrock image you've found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment