Skip to content

Instantly share code, notes, and snippets.

Instructions

When a user enters text in the input fields, update the corresponding chat bubble.

Update the left chat

  • Add a click handler for the left chat button (id="buttonLeft")
  • When the button is clicked, save the value of the left input field to a variable (id="inputLeft")
  • Update the chat bubble text to display the saved value (id="chatLeft")

Update the right chat

Instructions

When a user enters text in the input fields, update the corresponding chat bubble.

Update the left chat

  • Add a click handler for the left chat button (id="buttonLeft")
  • When the button is clicked, save the value of the left input field to a variable (id="inputLeft")
  • Update the chat bubble text to display the saved value (id="chatLeft")

Update the right chat

@becsegal
becsegal / multiple-github.md
Last active April 18, 2019 01:40
Setting up multiple github accounts on one machine

If you are using your work and personal github accounts locally, you'll need a little more setup to have both ssh keys playing nicely together.

Let's say you already have 2 keys configured as follows:

~/.ssh/id_rsa       # personal
~/.ssh/id_rsa_work  # work

And they're both loaded in the ssh-agent

$ ssh-add -l
@becsegal
becsegal / testing
Created October 30, 2018 16:58
just checking
1
2
3
4
5
576asd67fasdfasdfj;adkf
j
jsdakl;jas
aksdjf
sald;kjf

SOLUTION

Step 1:

Get the input value from the input field and assign it to the variable named searchTerm

You'll know it works if when you search for 'dog' it says 'Results for dog' instead of 'Results for undefined'

Step 2:

In this exercise, we'll build a page where users can search giphy and see all the results.

Check out the slides for this lesson: // http://goo.gl/WXk5WU

Step 1:

Get the input value from the input field and assign it to the variable named searchTerm

You'll know it works if when you search for 'dog' it says 'Results for dog' instead of 'Results for undefined'

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p id='artist'></p>
<p id='title'></p>
<script
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p id='artist'></p>
<p id='title'></p>
<script
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p id='artist'></p>
<p id='title'></p>
<script
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>